kernel BUG at net/core/skbuff.c:1028!
Subsystems (3)
In message <[email protected]> you write:
Quoted 3 lines
It has to be from some of the skb linearization changes. I can't think of any other change we've made that would make this start to happen.
Yep, culprit is obvious stupid bug. This indicates a serious lack of testing on my part 8(
Jens, does this help?
Rusty.
net/ipv4/netfilter/ip_nat_core.c +2 -1
@@ -870,7 +870,8 @@ icmp_reply_translation(struct sk_buff **adjustment, so make sure the current checksum is correct. */ if ((*pskb)->ip_summed !=CHECKSUM_UNNECESSARY && (u16 )csum_fold (skb_checksum (*pskb, (*pskb)->nh.iph->ihl*4 , - (*pskb)->len,0 ))) + (*pskb)->len + - (*pskb)->nh.iph->ihl*4 ,0 )))return 0 ;/* Must be RELATED */
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
Quoted 7 lines · Rusty Russell
In message <[email protected]> you write:
Quoted 3 lines
It has to be from some of the skb linearization changes. I can't think of any other change we've made that would make this start to happen.
Yep, culprit is obvious stupid bug. This indicates a serious lack of testing on my part 8(
One would think so, since it doesn't even get to the login :)
Quoted 1 line
Jens, does this help?
[snip]
Nope, it still dies hard. I didn't log the oops this time (box is headless and I need to move it to do so), but it hung hard before it was done booting.
Want me to log a new oops?
Signature · 1 line
Jens Axboe
From: Rusty Russell <[email protected]>
Date: Thu, 08 May 2003 11:20:27 +1000
Yep, culprit is obvious stupid bug. This indicates a serious lack of testing on my part 8(
Jens, does this help?
There were two cases of the same bug, you fixed only one instance :-)
Jens, try this patch instead.
ipv4/netfilter/ip_nat_core.c renamed from ipv4/netfilter/ip_nat_core.c.~1~ +12 -7
@@ -861,6 +861,7 @@ } *inside;unsigned int i;struct ip_nat_info *info = &conntrack->nat.info; +int hdrlen;if (!skb_ip_make_writable (pskb,(*pskb)->nh.iph->ihl*4 +sizeof (*inside)))return 0 ;
@@ -868,10 +869,12 @@/* We're actually going to mangle it beyond trivial checksum adjustment, so make sure the current checksum is correct. */ -if ((*pskb)->ip_summed !=CHECKSUM_UNNECESSARY - && (u16 )csum_fold (skb_checksum (*pskb, (*pskb)->nh.iph->ihl*4 , - (*pskb)->len,0 ))) -return 0 ; +if ((*pskb)->ip_summed !=CHECKSUM_UNNECESSARY ) { + hdrlen = (*pskb)->nh.iph->ihl *4 ; +if ((u16 )csum_fold (skb_checksum (*pskb, hdrlen, + (*pskb)->len - hdrlen,0 ))) +return 0 ; + }/* Must be RELATED */ IP_NF_ASSERT((*pskb)->nfct
@@ -948,10 +951,12 @@ }READ_UNLOCK (&ip_nat_lock); + hdrlen = (*pskb)->nh.iph->ihl *4 ; + inside->icmp.checksum =0 ; - inside->icmp.checksum =csum_fold (skb_checksum (*pskb, - (*pskb)->nh.iph->ihl*4 , - (*pskb)->len,0 )); + inside->icmp.checksum =csum_fold (skb_checksum (*pskb, hdrlen, + (*pskb)->len - hdrlen, +0 ));return 1 ; unlock_fail:
Quoted 6 lines · David S. Miller
From: Rusty Russell <[email protected]>
Date: Thu, 08 May 2003 11:20:27 +1000Yep, culprit is obvious stupid bug. This indicates a serious lack of testing on my part 8(
Quoted 6 lines
Jens, does this help?
There were two cases of the same bug, you fixed only one instance :-)
Jens, try this patch instead.
I went to apply it to bk-current as of this morning, but I see it's already in. And bk-current does indeed boot and (appears to :) work, thanks Dave!
Signature · 1 line
Jens Axboe