aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_IDLETIMER.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-03-06 12:44:17 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2019-03-08 16:41:09 +0100
commit46f7487e161b195a1bd7ddbd9c6aba9c93ec881a (patch)
tree542d44f0ab0003a0cc3e785f6c75215d87886cf5 /net/netfilter/xt_IDLETIMER.c
parentnet/hsr: fix possible crash in add_timer() (diff)
downloadlinux-dev-46f7487e161b195a1bd7ddbd9c6aba9c93ec881a.tar.xz
linux-dev-46f7487e161b195a1bd7ddbd9c6aba9c93ec881a.zip
netfilter: nat: don't register device notifier twice
Otherwise, we get notifier list corruption. This is the most simple fix: remove the device notifier call chain from the ipv6 masquerade register function and handle it only in the ipv4 version. The better fix is merge nf_nat_masquerade_ipv4/6_(un)register_notifier into a single nf_nat_masquerade_(un)register_notifiers but to do this its needed to first merge the two masquerade modules into a single xt_MASQUERADE. Furthermore, we need to use different refcounts for ipv4/ipv6 until we can merge MASQUERADE. Fixes: d1aca8ab3104a ("netfilter: nat: merge ipv4 and ipv6 masquerade functionality") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_IDLETIMER.c')
0 files changed, 0 insertions, 0 deletions