]> git.baikalelectronics.ru Git - kernel.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)
commit574448798fb03da2ed083481ab0cbd4d90294cdc
tree47bcb86c44bec1819a8581e88745b2812f2487b3
parent8de01e8e70b1a24d3648999cf1c3cb7d0568f591
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