summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2025-02-07 16:58:39 +0300
committerJakub Kicinski <kuba@kernel.org>2025-02-11 05:09:10 +0300
commited6ae1f325d3c43966ec1b62ac1459e2b8e45640 (patch)
tree7811577d8c7988e92c0095ef6ea27cd02a6b0f2b /lib/mpi/mpi-inline.c
parent6d0ce46a93135d96b7fa075a94a88fe0da8e8773 (diff)
downloadlinux-ed6ae1f325d3c43966ec1b62ac1459e2b8e45640.tar.xz
ndisc: extend RCU protection in ndisc_send_skb()
ndisc_send_skb() can be called without RTNL or RCU held. Acquire rcu_read_lock() earlier, so that we can use dev_net_rcu() and avoid a potential UAF. Fixes: 1762f7e88eb3 ("[NETNS][IPV6] ndisc - make socket control per namespace") Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: David Ahern <dsahern@kernel.org> Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com> Link: https://patch.msgid.link/20250207135841.1948589-8-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions