summaryrefslogtreecommitdiffstats
path: root/lib/ipset_hash_ipportnet.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-09-26 19:52:58 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2017-09-26 19:52:58 +0200
commita8d545d85e8aeaa420051a7c1d504a72d455e077 (patch)
tree326e0c6253133bc72c46c7a156d24e6ea00a7143 /lib/ipset_hash_ipportnet.c
parenta4212bf911026740afc7fce98d9100e2ef5dcea0 (diff)
netfilter: ipset: pernet ops must be unregistered last
Removing the ipset module leaves a small window where one cpu performs module removal while another runs a command like 'ipset flush'. ipset uses net_generic(), unregistering the pernet ops frees this storage area. Fix it by first removing the user-visible api handlers and the pernet ops last. Fixes: 1785e8f473082 ("netfiler: ipset: Add net namespace for ipset") Reported-by: Li Shuang <shuali@redhat.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'lib/ipset_hash_ipportnet.c')
0 files changed, 0 insertions, 0 deletions