commit | 40b446a1d8af17274746ff7079aa0a618dffbac3 | [log] [tgz] |
---|---|---|
author | Vishwanath Pai <vpai@akamai.com> | Thu Feb 16 20:55:45 2017 +0100 |
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | Sun Feb 19 19:08:47 2017 +0100 |
tree | c54107c91855cfec21bd9e7ea9af3a6730ed527e | |
parent | 50054a9223aaf79985c55ef7dd090ced15581567 [diff] |
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>