netfilter: ipset: Make sure listing doesn't grab a set which is just being destroyed.
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 13 Jun 2015 11:39:38 +0000 (13:39 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sun, 14 Jun 2015 08:40:15 +0000 (10:40 +0200)
commit9c1ba5c809381fb9fb779e2cc22a1c878a269ffb
tree7c61e0776aeeedb3f6fd3f26ee0ca1ae126a1804
parentc4c997839cf92cb1037e43a85cdb4cbf44ed39a5
netfilter: ipset: Make sure listing doesn't grab a set which is just being destroyed.

There was a small window when all sets are destroyed and a concurrent
listing of all sets could grab a set which is just being destroyed.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
net/netfilter/ipset/ip_set_core.c