Files
linux/net
Kuniyuki Iwashima accb46b56b ipv6: Defer fib6_purge_rt() in fib6_add_rt2node() to fib6_add().
The next patch adds per-nexthop spinlock which protects nh->f6i_list.

When rt->nh is not NULL, fib6_add_rt2node() will be called under the lock.
fib6_add_rt2node() could call fib6_purge_rt() for another route, which
could holds another nexthop lock.

Then, deadlock could happen between two nexthops.

Let's defer fib6_purge_rt() after fib6_add_rt2node().

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Link: https://patch.msgid.link/20250418000443.43734-14-kuniyu@amazon.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2025-04-24 09:29:56 +02:00
..
2025-03-23 06:20:48 +09:00
2025-04-22 07:04:02 -07:00
2025-04-22 07:04:02 -07:00
2025-04-04 11:31:42 -07:00
2025-04-11 18:42:34 -07:00
2025-04-15 13:37:14 +02:00
2025-04-10 17:32:57 -07:00
2025-04-11 18:58:10 -07:00
2025-04-11 18:58:10 -07:00