linux_dsm_epyc7002/include
Florian Westphal 7824d5a993 netfilter: arp_tables: add pre_exit hook for table unregister
commit d163a925ebbc6eb5b562b0f1d72c7e817aa75c40 upstream.

Same problem that also existed in iptables/ip(6)tables, when
arptable_filter is removed there is no longer a wait period before the
table/ruleset is free'd.

Unregister the hook in pre_exit, then remove the table in the exit
function.
This used to work correctly because the old nf_hook_unregister API
did unconditional synchronize_net.

The per-net hook unregister function uses call_rcu instead.

Fixes: b9e69e1273 ("netfilter: xtables: don't hook tables by default")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-21 13:00:56 +02:00
..
acpi ACPI: scan: Use unique number for instance_no 2021-03-30 14:32:06 +02:00
asm-generic static_call: Allow module use without exposing static_call_key 2021-03-30 14:31:53 +02:00
clocksource
crypto
drm
dt-bindings
keys
kunit
kvm
linux netfilter: arp_tables: add pre_exit hook for table unregister 2021-04-21 13:00:56 +02:00
math-emu
media
memory
misc
net sch_red: fix off-by-one checks in red_check_params() 2021-04-14 08:42:07 +02:00
pcmcia
ras
rdma
scsi scsi: libsas: Introduce a _gfp() variant of event notifiers 2021-03-25 09:04:11 +01:00
soc
sound
target
trace
uapi dmaengine: idxd: fix delta_rec and crc size field for completion record 2021-04-21 13:00:50 +02:00
vdso
video
xen