]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ip6tables: Split ip6t_unregister_table() into pre_exit and exit helpers.
authorDavid Wilder <dwilder@us.ibm.com>
Mon, 22 Jun 2020 17:10:13 +0000 (10:10 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 24 Jun 2020 22:50:31 +0000 (00:50 +0200)
commit471e9f97ce48581bd0e7da20b5960fcc990c5b9f
treeff378c1e49efa8e4841348c6c32e8e2e6d834bfc
parent5515fba94946e23ec49d62023cd2ca578df03c2b
netfilter: ip6tables: Split ip6t_unregister_table() into pre_exit and exit helpers.

The pre_exit will un-register the underlying hook and .exit will do
the table freeing. The netns core does an unconditional synchronize_rcu
after the pre_exit hooks insuring no packets are in flight that have
picked up the pointer before completing the un-register.

Fixes: d19b9b05b8e4 ("netfilter: xtables: don't hook tables by default")
Signed-off-by: David Wilder <dwilder@us.ibm.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter_ipv6/ip6_tables.h
net/ipv6/netfilter/ip6_tables.c