netdev
[Top] [All Lists]

Re: skb_checksum_help

To: Thomas Graf <tgraf@xxxxxxx>
Subject: Re: skb_checksum_help
From: Patrick McHardy <kaber@xxxxxxxxx>
Date: Mon, 24 Jan 2005 01:49:09 +0100
Cc: David Coulson <david@xxxxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20050124003241.GJ23931@xxxxxxxxxxxxxx>
References: <41F432BD.3000300@xxxxxxxxxxxxxxxx> <20050124003241.GJ23931@xxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.5) Gecko/20050106 Debian/1.7.5-1
Thomas Graf wrote:

I CC'ed netdev, this seems more serious than I thought.

Background: David noticed the assertion csum + 2 > offset being trigged
in skb_checksum_help. I sent him a patch converting it into a warning
printing offset, len, n.raw, tail, csum, features and the whole packet
as hexdump. He uses the acenic driver which is actually capable of doing
IP checksumming. (Patch enclosed at the end)

How does the backtrace look ?

skb hdr corrupted!


The check looks bogus:

+               if (skb->h.raw < skb->data || skb->h.raw > skb->data)
+                       printk(KERN_CRIT "skb hdr corrupted!\n");
+               goto out;
+       }

Regards
Patrick


<Prev in Thread] Current Thread [Next in Thread>