]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: nf_tables: use list_del_rcu for netlink hooks
authorFlorian Westphal <fw@strlen.de>
Thu, 16 Apr 2026 13:14:51 +0000 (15:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 Apr 2026 10:47:47 +0000 (12:47 +0200)
commitf3224ee463f8f6f6ced7dcdf6081add4f8128527
tree7776ed714cb651e55a98e194b68e00521c109df0
parent1e8e3f449b1e73b73a843257635b9c50f0cc0f0a
netfilter: nf_tables: use list_del_rcu for netlink hooks

nft_netdev_unregister_hooks and __nft_unregister_flowtable_net_hooks need
to use list_del_rcu(), this list can be walked by concurrent dumpers.

Add a new helper and use it consistently.

Fixes: f9a43007d3f7 ("netfilter: nf_tables: double hook unregistration in netns path")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c