Skip to contentSkip to conversation

fix-slab-corruption-running-ip6sic.patch

PATCH Andrew Morton 3 participants 4 messages Apr 26, 2007 – Apr 29, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

From: Jarek Poplawski <[email protected]>

Quoted 10 lines · * Herbert Xu ([email protected]) wrote:
Quoted 7 lines · Jarek Poplawski

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

---

 net/ipv6/xfrm6_tunnel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv6/xfrm6_tunnel.c renamed from net/ipv6/xfrm6_tunnel.c~fix-slab-corruption-running-ip6sic +1 -1
diff -puN net/ipv6/xfrm6_tunnel.c~fix-slab-corruption-running-ip6sic 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,

_

maintainer
#1 lore raw

From: Andrew Morton <[email protected]>
Date: Thu, 26 Apr 2007 14:11:33 -0700

Quoted 2 lines

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

I have it too, it's in my backlog which I'm not processing because I'm trying to fix up how we screwed up both networking "security" fixes by adding a new regression with each one :-)

#2 lore raw
In reply to Andrew Morton
Quoted 6 lines · Andrew Morton

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

From: Jarek Poplawski <[email protected]>

I know you've more interesting problems, but I'd like to straighten something: this is not my patch!

Please, change this to:

From: Eric Sesterhenn <[email protected]>

Quoted 11 lines · * Herbert Xu ([email protected]) wrote:
Quoted 9 lines
Quoted 7 lines · Jarek Poplawski

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?

Quoted 8 lines
Quoted 1 line

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

---

Thanks,
Jarek P.

PS: And this one time it's not a joke... I really mean it.

maintainer
#3 lore raw

From: Jarek Poplawski <[email protected]>
Date: Fri, 27 Apr 2007 09:18:59 +0200

Quoted 6 lines · Andrew Morton
Quoted 5 lines

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

Quoted 8 lines
Quoted 1 line

From: Jarek Poplawski <[email protected]>

I know you've more interesting problems, but I'd like to straighten something: this is not my patch!

Please, change this to:

From: Eric Sesterhenn <[email protected]>

Patch applied, thanks everyone.