]> 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)
commit3f4ac95e814f88b08b7a7c4635f4873ac787b084
treebefc53d79958834fbd3751c444cf98786dde5188
parent0c1e49dfe38066324eae54322ae45733eec06073
ipv4: convert fib_num_tclassid_users to atomic_t

Before commit fffe6e0e5011 ("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: fffe6e0e5011 ("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