Re: [PATCH net 3/8] neighbour: use RCU protection in __neigh_notify()

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

Use RCU protection to avoid potential UAF.

Fixes: 426b5303eb43 ("[NETNS]: Modify the neighbour table code so it handles multiple network namespaces")
Signed-off-by: Eric Dumazet <redacted>
---
 net/core/neighbour.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 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