]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: convert fib_num_tclassid_users to atomic_t
authorEric Dumazet <edumazet@google.com>
Thu, 2 Dec 2021 02:26:35 +0000 (18:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2021 11:56:04 +0000 (11:56 +0000)
commitcda278cfd2950da373c986b20e8d0db35fe21aa0
treebefc53d79958834fbd3751c444cf98786dde5188
parent014c444eb9a4ee396269ff52aec6f239855d389b
ipv4: convert fib_num_tclassid_users to atomic_t

Before commit 7b42b539c204 ("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: 7b42b539c204 ("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>
include/net/ip_fib.h
include/net/netns/ipv4.h
net/ipv4/fib_frontend.c
net/ipv4/fib_rules.c
net/ipv4/fib_semantics.c