]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
netfilter: ipset: dumping error triggered removing references twice
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 14 Jan 2012 15:42:13 +0000 (16:42 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 17 Jan 2012 09:52:55 +0000 (10:52 +0100)
commitbe94db9ddac0d6ea76f479b04fb3a43314654c9f
tree47bcb86c44bec1819a8581e88745b2812f2487b3
parent088067f4f14d6ee5c6a196b015a560cbe7744224
netfilter: ipset: dumping error triggered removing references twice

If there was a dumping error in the middle, the set-specific variable was
not zeroed out and thus the 'done' function of the dumping wrongly tried
to release the already released reference of the set. The already released
reference was caught by __ip_set_put and triggered a kernel BUG message.
Reported by Jean-Philippe Menil.

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