From: Eric Dumazet Date: Tue, 11 Nov 2008 05:43:08 +0000 (-0800) Subject: net: fix /proc/net/snmp as memory corruptor X-Git-Tag: v2.6.27.7~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=861ea9ffa58a2c2cd55bc87b59e8eb77fb635b28;p=pandora-kernel.git net: fix /proc/net/snmp as memory corruptor commit b971e7ac834e9f4bda96d5a96ae9abccd01c1dd8 upstream. icmpmsg_put() can happily corrupt kernel memory, using a static table and forgetting to reset an array index in a loop. Remove the static array since its not safe without proper locking. Signed-off-by: Alexey Dobriyan Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed