netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fix-slab-corruption-running-ip6sic.patch
@ 2007-04-26 21:11 Andrew Morton
  2007-04-26 21:59 ` fix-slab-corruption-running-ip6sic.patch David Miller
  2007-04-27  7:18 ` fix-slab-corruption-running-ip6sic.patch Jarek Poplawski
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Morton @ 2007-04-26 21:11 UTC (permalink / raw)
  To: Herbert Xu, Jarek Poplawski; +Cc: netdev


I have this floating about in my tree.  Is it of any interest?



From: Jarek Poplawski <jarkao2@o2.pl>

* Herbert Xu (herbert@gondor.apana.org.au) wrote:
> Jarek Poplawski <jarkao2@o2.pl> wrote:
> >
> > My proposal is: maybe Eric could change this in
> > xfrm6_tunnel_rcv() from xfrm6_tunnel.c e.g. like this:
> >
> > return xfrm6_rcv_spi(skb, spi) > 0 ? : 0;
> >
> > and, if no errors in testing, he could resubmit this patch?
>
> I agree, this is the right fix.

The fix proposed by Jarek indeed fixes the problem, tested on two boxes,
with an -rc5 kernel and a yesterdays git

Acked-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 net/ipv6/xfrm6_tunnel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN net/ipv6/xfrm6_tunnel.c~fix-slab-corruption-running-ip6sic net/ipv6/xfrm6_tunnel.c
--- a/net/ipv6/xfrm6_tunnel.c~fix-slab-corruption-running-ip6sic
+++ a/net/ipv6/xfrm6_tunnel.c
@@ -261,7 +261,7 @@ static int xfrm6_tunnel_rcv(struct sk_bu
 	__be32 spi;
 
 	spi = xfrm6_tunnel_spi_lookup((xfrm_address_t *)&iph->saddr);
-	return xfrm6_rcv_spi(skb, spi);
+	return xfrm6_rcv_spi(skb, spi) > 0 ? : 0;
 }
 
 static int xfrm6_tunnel_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
_


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-29  4:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26 21:11 fix-slab-corruption-running-ip6sic.patch Andrew Morton
2007-04-26 21:59 ` fix-slab-corruption-running-ip6sic.patch David Miller
2007-04-27  7:18 ` fix-slab-corruption-running-ip6sic.patch Jarek Poplawski
2007-04-29  4:26   ` fix-slab-corruption-running-ip6sic.patch David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).