Commit f8d8ce1
ipv6: fix possible infinite loop in fib6_info_uses_dev()
fib6_info_uses_dev() seems to rely on RCU without an explicit
protection.
Like the prior fix in rt6_nlmsg_size(),
we need to make sure fib6_del_route() or fib6_add_rt2node()
have not removed the anchor from the list, or we risk an infinite loop.
Fixes: d9ccb18 ("ipv6: Fix soft lockups in fib6_select_path under high next hop churn")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250725140725.3626540-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 54e6fe9 commit f8d8ce1
1 file changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5958 | 5958 | | |
5959 | 5959 | | |
5960 | 5960 | | |
5961 | | - | |
5962 | | - | |
| 5961 | + | |
| 5962 | + | |
5963 | 5963 | | |
5964 | | - | |
5965 | | - | |
5966 | | - | |
| 5964 | + | |
| 5965 | + | |
| 5966 | + | |
| 5967 | + | |
| 5968 | + | |
5967 | 5969 | | |
| 5970 | + | |
| 5971 | + | |
| 5972 | + | |
5968 | 5973 | | |
| 5974 | + | |
5969 | 5975 | | |
5970 | | - | |
5971 | 5976 | | |
5972 | 5977 | | |
5973 | 5978 | | |
| |||
0 commit comments