Commit aa56a8b
Paolo Abeni
neighbour: use RCU protection in __neigh_notify()
JIRA: https://issues.redhat.com/browse/RHEL-87474
Conflicts: \
- different context, as rhel-9 lacks the upstream \
commit c25bdd2 ("neighbour: delete redundant judgment statements") \
- use dev_net() instead of dev_net_rcu() as rhel-9 lacks the upstream \
commit 482ad2a ("net: add dev_net_rcu() helper")
Upstream commit:
commit becbd58
Author: Eric Dumazet <edumazet@google.com>
Date: Fri Feb 7 13:58:35 2025 +0000
neighbour: use RCU protection in __neigh_notify()
__neigh_notify() can be called without RTNL or RCU protection.
Use RCU protection to avoid potential UAF.
Fixes: 426b530 ("[NETNS]: Modify the neighbour table code so it handles multiple network namespaces")
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-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent 818e414 commit aa56a8b
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3469 | 3469 | | |
3470 | 3470 | | |
3471 | 3471 | | |
3472 | | - | |
3473 | 3472 | | |
3474 | 3473 | | |
| 3474 | + | |
3475 | 3475 | | |
| 3476 | + | |
| 3477 | + | |
3476 | 3478 | | |
3477 | 3479 | | |
3478 | 3480 | | |
| |||
3485 | 3487 | | |
3486 | 3488 | | |
3487 | 3489 | | |
3488 | | - | |
| 3490 | + | |
3489 | 3491 | | |
3490 | 3492 | | |
3491 | 3493 | | |
| 3494 | + | |
| 3495 | + | |
3492 | 3496 | | |
3493 | 3497 | | |
3494 | 3498 | | |
| |||
0 commit comments