Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[IPV6]: Fix slab corruption running ip6sic

From: Eric Sesterhenn <snakebyte@gmx.de>

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eric Sesterhenn and committed by
David S. Miller
d0772b70 65bb723c

+1 -1
+1 -1
net/ipv6/xfrm6_tunnel.c
··· 261 261 __be32 spi; 262 262 263 263 spi = xfrm6_tunnel_spi_lookup((xfrm_address_t *)&iph->saddr); 264 - return xfrm6_rcv_spi(skb, spi); 264 + return xfrm6_rcv_spi(skb, spi) > 0 ? : 0; 265 265 } 266 266 267 267 static int xfrm6_tunnel_err(struct sk_buff *skb, struct inet6_skb_parm *opt,