]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitf0a70e902f483295a8b6d74ef4393bc577b703d7
tree900ea41b4306d7bdca7e1ff6db23e36e889a6073
parent065f5f9749202cf91dae6f39ad7e9fe8801023b5
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