Subject: Re: [PATCH] netfilter: nf_tables: always synchronize with readers before releasing tables

From: Florian Westphal <[email-masked]>
Date: Tue, 28 Feb 2023 00:31:55 +0100

Alexander Atanasov <[email-masked]> wrote:
> As i said i am still trying to figure out the basechain place,
> where is that synchronize_rcu() call done?

cleanup_net() in net/core/net_namespace.c.

pre_exit handlers run, then synchronize_rcu, then the
normal exit handlers, then exit_batch.

> > Do you see this with current kernels or did the splat happen with
> > an older version?
> 
> It's with a bit older kernel but there is no significant difference
> wrt nf_tables_api code.
> I will prepare a more detailed report for you.

Thanks.