diff --git a/[refs] b/[refs] index a6eb2b09b890..7275f55abe45 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5d8c0aa9433b09387d9021358baef7939f9b32c4 +refs/heads/master: 8cf229437fd826c32a44546899412b1eb3e1db6f diff --git a/trunk/net/ipv4/icmp.c b/trunk/net/ipv4/icmp.c index a7321a82df6d..a13c074dac09 100644 --- a/trunk/net/ipv4/icmp.c +++ b/trunk/net/ipv4/icmp.c @@ -1015,7 +1015,8 @@ int icmp_rcv(struct sk_buff *skb) goto error; } - __skb_pull(skb, sizeof(*icmph)); + if (!pskb_pull(skb, sizeof(*icmph))) + goto error; icmph = icmp_hdr(skb); diff --git a/trunk/net/ipv6/icmp.c b/trunk/net/ipv6/icmp.c index cbb5b9cf84ad..121d517bf91c 100644 --- a/trunk/net/ipv6/icmp.c +++ b/trunk/net/ipv6/icmp.c @@ -683,7 +683,8 @@ static int icmpv6_rcv(struct sk_buff *skb) } } - __skb_pull(skb, sizeof(*hdr)); + if (!pskb_pull(skb, sizeof(*hdr))) + goto discard_it; hdr = icmp6_hdr(skb);