]> granicus.if.org Git - ipset/commit
netfilter: ipset: Null pointer exception in ipset list:set
authorVishwanath Pai <vpai@akamai.com>
Thu, 16 Feb 2017 19:55:45 +0000 (20:55 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 16 Feb 2017 19:55:45 +0000 (20:55 +0100)
commit4d0d11e63493ddc126324e59f2840105dbeba725
tree10b65d06001f332722b90e7544d2e84e23611d91
parent414d819ebee11b52374f566434220887eb8246b7
netfilter: ipset: Null pointer exception in ipset list:set

If we use before/after to add an element to an empty list it will cause
a kernel panic.

$> cat crash.restore
create a hash:ip
create b hash:ip
create test list:set timeout 5 size 4
add test b before a

$> ipset -R < crash.restore

Executing the above will crash the kernel.

Signed-off-by: Vishwanath Pai <vpai@akamai.com>
Reviewed-by: Josh Hunt <johunt@akamai.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
kernel/net/netfilter/ipset/ip_set_list_set.c