[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0369c4e8-e19d-d376-06f1-3742da0cc003@gmail.com>
Date: Wed, 1 Dec 2021 19:42:17 -0700
From: David Ahern <dsahern@...il.com>
To: Eric Dumazet <eric.dumazet@...il.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
Cc: netdev <netdev@...r.kernel.org>,
Eric Dumazet <edumazet@...gle.com>,
David Ahern <dsahern@...nel.org>
Subject: Re: [PATCH net] ipv4: convert fib_num_tclassid_users to atomic_t
On 12/1/21 7:26 PM, Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@...gle.com>
>
> Before commit faa041a40b9f ("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: faa041a40b9f ("ipv4: Create cleanup helper for fib_nh")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Cc: David Ahern <dsahern@...nel.org>
> ---
> include/net/ip_fib.h | 2 +-
> include/net/netns/ipv4.h | 2 +-
> net/ipv4/fib_frontend.c | 2 +-
> net/ipv4/fib_rules.c | 4 ++--
> net/ipv4/fib_semantics.c | 4 ++--
> 5 files changed, 7 insertions(+), 7 deletions(-)
>
Thanks, Eric. Was this found by syzbot or code inspection?
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists