public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Scott Feldman <sfeldma@pobox.com>
To: Richard Fuchs <richard.fuchs@inode.info>
Cc: Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org,
	Jesse Brandeburg <jesse.brandeburg@intel.com>
Subject: Re: slab corruption in skb allocs
Date: Sun, 6 Mar 2005 21:07:26 -0800	[thread overview]
Message-ID: <bda000da0eb3b797500d90992d30a99d@pobox.com> (raw)
In-Reply-To: <422B4E97.4090303@inode.info>


On Mar 6, 2005, at 10:40 AM, Richard Fuchs wrote:

> Scott Feldman wrote:
>> A bug in the driver.  I have a hunch: please try this patch with 
>> 2.6.9 or higher:
>> http://marc.theaimsgroup.com/?l=linux-netdev&m=110726809431611&w=2
>
> bingo, that fixes it. too bad neither this patch nor the removal of 
> the NAPI config option made it into 2.6.11...

Jesse Brandeburg @ Intel found the fix for the bug but I don't think 
it's been pushed out to Jeff's tree yet, AFAIK.  Soon, I would guess.

Would you mind giving this patch a try against 2.6.11?  I think it's 
equivalent to Jesse's patch, but less intrusive to the driver.

--- linux-2.6.11/drivers/net/e100.c.orig        Sun Mar  6 20:58:15 2005
+++ linux-2.6.11/drivers/net/e100.c     Sun Mar  6 21:01:34 2005
@@ -1471,8 +1471,12 @@ static inline int e100_rx_indicate(struc

         /* If data isn't ready, nothing to indicate */
         if(unlikely(!(rfd_status & cb_complete)))
-               return -EAGAIN;
+               return -ENODATA;

+       /* This allows for a fast restart without re-enabling 
interrupts */
+       if(le16_to_cpu(rfd->command) & cb_el)
+               nic->ru_running = 0;
+
         /* Get actual data size */
         actual_size = le16_to_cpu(rfd->actual_size) & 0x3FFF;
         if(unlikely(actual_size > RFD_BUF_LEN - sizeof(struct rfd)))
@@ -1527,7 +1531,11 @@ static inline void e100_rx_clean(struct
                         break; /* Better luck next time (see watchdog) 
*/
         }

-       e100_start_receiver(nic);
+       /* NAPI: attempt to restart the receiver iff the list is
+        * totally clean otherwise we'll race between hardware and
+        * nic->rx_to_clean. */
+       if(!work_done || *work_done == 0)
+               e100_start_receiver(nic);
  }

  static void e100_rx_clean_list(struct nic *nic)


>> No.  e1000 is a totally different driver/device with very similar 
>> name.
>
> too bad, i was hoping for an explanation for some unexplainable 
> crashes i've been experiencing... ;)

Take the e1000 issue to linux-netdev.

-scott


  reply	other threads:[~2005-03-07  5:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-04  9:55 slab corruption in skb allocs Richard Fuchs
2005-03-04 11:53 ` Andrew Morton
2005-03-04 12:23   ` Richard Fuchs
2005-03-04 20:11     ` Matt Mackall
2005-03-04 21:19       ` Richard Fuchs
2005-03-04 21:27         ` Matt Mackall
2005-03-04 21:52           ` Richard Fuchs
2005-03-04 22:05             ` Matt Mackall
2005-03-04 22:51               ` Richard Fuchs
2005-03-05 18:25     ` Scott Feldman
2005-03-05 19:10       ` Richard Fuchs
2005-03-06 17:44         ` Scott Feldman
2005-03-06 18:40           ` Richard Fuchs
2005-03-07  5:07             ` Scott Feldman [this message]
2005-03-07  8:30               ` Richard Fuchs
2005-03-04 18:10 ` Dave Jones
2005-03-04 18:32   ` Richard Fuchs
2005-03-04 19:29     ` Richard Fuchs
2005-03-21 22:36 ` Andrew Morton

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=bda000da0eb3b797500d90992d30a99d@pobox.com \
    --to=sfeldma@pobox.com \
    --cc=akpm@osdl.org \
    --cc=jesse.brandeburg@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=richard.fuchs@inode.info \
    /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