]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Put proper checks into icmp_socket_deliver().
authorDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2012 15:06:04 +0000 (08:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2012 15:06:04 +0000 (08:06 -0700)
commitfb6ccd752341c5c12145d0dbbe4133ccfccbfe85
tree900ea41b4306d7bdca7e1ff6db23e36e889a6073
parentfe36b7705d249a2725a73b6fd329d51955bb875b
ipv4: Put proper checks into icmp_socket_deliver().

All handler->err() routines expect that we've done a pskb_may_pull()
test to make sure that IP header length + 8 bytes can be safely
pulled.

Reported-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c