Re: [PATCH net 2/8] ndisc: use RCU protection in ndisc_alloc_skb()

From
David Ahern <dsahern@kernel.org>
Date
2025-02-07 20:41:39
Reply to
Eric Dumazet, 2025-02-07
On 2/7/25 6:58 AM, Eric Dumazet wrote:
ndisc_alloc_skb() can be called without RTNL or RCU being held.

Add RCU protection to avoid possible UAF.

Fixes: de09334b9326 ("ndisc: Introduce ndisc_alloc_skb() helper.")
Signed-off-by: Eric Dumazet <redacted>
---
 net/ipv6/ndisc.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
Reviewed-by: David Ahern <dsahern@kernel.org>

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