]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix /proc/net/snmp as memory corruptor
authorEric Dumazet <dada1@cosmosbay.com>
Tue, 11 Nov 2008 05:43:08 +0000 (21:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Nov 2008 05:43:08 +0000 (21:43 -0800)
commitb06447c3dfbcc0f94827bb04e575d91533bcb0b4
tree35c8712758f3113030da5e3a295fe9f8c4b70d25
parent9a746b03a5ac8cbf9b8f2ee60ca6653785b7dbc3
net: fix /proc/net/snmp as memory corruptor

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 <adobriyan@gmail.com>
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/proc.c