ipv4: convert fib_num_tclassid_users to atomic_t
Before commit faa041a4 ("ipv4: Create cleanup helper for fib_nh") changes to net->ipv4.fib_num_tclassid_users were protected by RTNL. After the change, this is no longer the case, as free_fib_info_rcu() runs after rcu grace period, without rtnl being held. Fixes: faa041a4 ("ipv4: Create cleanup helper for fib_nh") Signed-off-by:Eric Dumazet <edumazet@google.com> Cc: David Ahern <dsahern@kernel.org> Reviewed-by:
David Ahern <dsahern@kernel.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ip_fib.h 1 addition, 1 deletioninclude/net/ip_fib.h
- include/net/netns/ipv4.h 1 addition, 1 deletioninclude/net/netns/ipv4.h
- net/ipv4/fib_frontend.c 1 addition, 1 deletionnet/ipv4/fib_frontend.c
- net/ipv4/fib_rules.c 2 additions, 2 deletionsnet/ipv4/fib_rules.c
- net/ipv4/fib_semantics.c 2 additions, 2 deletionsnet/ipv4/fib_semantics.c
Loading
Please register or sign in to comment