Re: [PATCH net 7/8] ndisc: extend RCU protection in ndisc_send_skb()

From
Kuniyuki Iwashima <hidden>
Date
2025-02-10 01:29:48
Reply to
Eric Dumazet, 2025-02-07
From: Eric Dumazet <redacted>
Date: Fri,  7 Feb 2025 13:58:39 +0000
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 <redacted>
Reviewed-by: Kuniyuki Iwashima <redacted>
Thread (25 messages) 25 messages, 4 authors, last reply 2025-02-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help