diff options
author | Florian Westphal <[email protected]> | 2017-09-26 11:57:54 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <[email protected]> | 2017-09-26 20:15:17 +0200 |
commit | e23ed762db7ed1950a6408c3be80bc56909ab3d4 (patch) | |
tree | 1cb49a23e81377df67a3909cf45d139c7a197b82 /lib/netdev-notifier-error-inject.c | |
parent | 48596a8ddc46f96afb6a2cd72787cb15d6bb01fc (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 <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Acked-by: Jozsef Kadlecsik <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions