]> granicus.if.org Git - ipset/commit
Fix hash size checking in kernel
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sun, 6 May 2012 20:10:52 +0000 (22:10 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sun, 6 May 2012 20:10:52 +0000 (22:10 +0200)
commit42d118b793e7fd82bde260d6635ac2ae607afdac
treece4f5bbede82821c763274ac4f7cf77b387c4dd7
parenta9dcf6937ede801effaf64f03470fa838246278b
Fix hash size checking in kernel

The hash size must fit both into u32 (jhash) and the max value of
size_t. The missing checking could lead to kernel crash, bug reported
by Seblu.
kernel/include/linux/netfilter/ipset/ip_set_ahash.h
kernel/net/netfilter/ipset/ip_set_hash_ip.c
kernel/net/netfilter/ipset/ip_set_hash_ipport.c
kernel/net/netfilter/ipset/ip_set_hash_ipportip.c
kernel/net/netfilter/ipset/ip_set_hash_ipportnet.c
kernel/net/netfilter/ipset/ip_set_hash_net.c
kernel/net/netfilter/ipset/ip_set_hash_netiface.c
kernel/net/netfilter/ipset/ip_set_hash_netport.c