Netdev List
 help / color / mirror / Atom feed
From: "Gautier Harmel" <Gautier.Harmel@qosmos.net>
To: <linux.nics@intel.com>, <netdev@oss.sgi.com>,
	<linux-kernel@vger.kernel.org>
Subject: TR : Bug with NIC card Adlink PCI 8214 (Intel 82559 based) under linux
Date: Thu, 26 Sep 2002 15:03:28 +0200	[thread overview]
Message-ID: <003401c2655d$1ede6350$0d02a8c0@bananier> (raw)

Hi,
 
I found bug using the Adlink PCI8214 nic card based on an Intel 82559
under Linux.
 
This bug occurs under a Linux 2.4.17 (e100 driver version 2.1.15 found
on the Intel web site) using the bridge functionality.
I didn't try using an earlier version of linux kernel.
 
I used LKCD (linux kernel crash debugger) to further investigate what
happens.
Here are my conclusions :
 
1)    the bug occurs in skb_checksum_help function (linux/net/core.dev.c
file)
2)       the disassembly code involved is:
     7c7:   0f 0b                   ud2a   
     7c9:   89 c8                   mov    %ecx,%eax
     7cb:   c1 e1 10                shl    $0x10,%ecx
     7ce:   25 00 00 ff ff          and    $0xffff0000,%eax
     7d3:   01 c8                   add    %ecx,%eax
     7d5:   15 ff ff 00 00          adc    $0xffff,%eax
     7da:   f7 d0                   not    %eax
     7dc:   c1 e8 10                shr    $0x10,%eax
     7df:   66 89 04 3e             mov    %ax,(%esi,%edi,1)
     7e3:   89 d8                   mov    %ebx,%eax
     7e5:   c6 43 6b 00             movb   $0x0,0x6b(%ebx)
 
3)    I think that this assembly code is the following line in
skb_checksum_help:
(*u16*)(skb->h.raw + skb->csum) = csum_fold(csum); (line 933)
 
 
Maybe skb->h.raw is a bad pointer ???
 
Thanks for help
 
Please CC me in your answer, while I didn't subscribe to any of the
mailing list
 
Jerome Tollet
Jerome.tollet@qosmos.net


[[HTML alternate version deleted]]

                 reply	other threads:[~2002-09-26 13:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='003401c2655d$1ede6350$0d02a8c0@bananier' \
    --to=gautier.harmel@qosmos.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux.nics@intel.com \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox