diff options
author | 2025-02-07 13:58:39 +0000 | |
---|---|---|
committer | 2025-02-10 18:09:10 -0800 | |
commit | ed6ae1f325d3c43966ec1b62ac1459e2b8e45640 (patch) | |
tree | 7811577d8c7988e92c0095ef6ea27cd02a6b0f2b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | vrf: use RCU protection in l3mdev_l3_out() (diff) | |
download | wireguard-linux-ed6ae1f325d3c43966ec1b62ac1459e2b8e45640.tar.xz wireguard-linux-ed6ae1f325d3c43966ec1b62ac1459e2b8e45640.zip |
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 '')
0 files changed, 0 insertions, 0 deletions