mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: Mikael Pettersson <mikpe@csd.uu.se>
Cc: jgarzik@pobox.com, linux-kernel@vger.kernel.org
Subject: Re: tulip (pnic) errors in 2.6.5-rc1
Date: Thu, 18 Mar 2004 09:41:04 -0800	[thread overview]
Message-ID: <20040318094104.05af1c24.rddunlap@osdl.org> (raw)
In-Reply-To: <16473.57066.436278.252046@alkaid.it.uu.se>

On Thu, 18 Mar 2004 18:39:54 +0100 Mikael Pettersson wrote:

| Randy.Dunlap writes:
|  > On Thu, 18 Mar 2004 17:29:39 +0100 Mikael Pettersson wrote:
|  > 
|  > | Jeff Garzik writes:
|  > |  > Mikael Pettersson wrote:
|  > |  > > Jeff Garzik writes:
|  > |  > >  > er, oops... lemme find the right patch...
|  > |  > > 
|  > |  > > No change, still a flood of those tulip_rx() interrupt messages.
|  > |  > 
|  > |  > hmmm.  Well, it is something unrelated to tulip driver, then.
|  > | 
|  > | Testing older -bk versions I've found that 2.6.4-bk2
|  > | is Ok but 2.6.4-bk3 has this message flood problem.
|  > 
|  > Other than the netdev_priv() changes, I see removal of
|  > KERNEL_SYSCALLS and the addition of CONFIG_NET_POLL_CONTROLLER.
|  > Are you enabling CONFIG_NET_POLL_CONTROLLER?
|  > If so, can you test with it disabled?
| 
| No it wasn't NET_POLL_CONTROLLER (I didn't enable it).
| 
| I split the bk2->bk3 patch in pieces, and traced the bug to the
| netdev_priv() change in in loopback.c. The bug is that loopback's
| dev is static and its ->priv actually points to kmalloc:d space.
| The netdev_priv() transformation is invalid for anything not
| allocated with alloc_etherdev or alloc_netdev, so the patch
| to loopback caused it to access and clobber static memory just
| after its own dev.
| 
| It was my bad luck that tulip was the victim of that clobber.
| 
| Reverting the patch below solves the problem.
| 
| /Mikael
| 
| diff -ruN linux-2.6.4-bk2/drivers/net/loopback.c linux-2.6.4-bk3/drivers/net/loopback.c
| --- linux-2.6.4-bk2/drivers/net/loopback.c	2004-03-11 14:01:28.000000000 +0100
| +++ linux-2.6.4-bk3/drivers/net/loopback.c	2004-03-18 16:12:28.000000000 +0100
| @@ -123,7 +123,7 @@
|   */
|  static int loopback_xmit(struct sk_buff *skb, struct net_device *dev)
|  {
| -	struct net_device_stats *stats = (struct net_device_stats *)dev->priv;
| +	struct net_device_stats *stats = netdev_priv(dev);
|  
|  	skb_orphan(skb);
|  

Thanks for checking, and sorry about the trouble.

BTW, the loopback patch has already been reverted.

--
~Randy

      reply	other threads:[~2004-03-18 17:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-18  9:44 Mikael Pettersson
2004-03-18  9:51 ` Jeff Garzik
2004-03-18  9:53   ` Jeff Garzik
2004-03-18 10:42     ` Mikael Pettersson
2004-03-18 10:48       ` Jeff Garzik
2004-03-18 12:45         ` Mikael Pettersson
2004-03-18 16:29         ` Mikael Pettersson
2004-03-18 16:39           ` Randy.Dunlap
2004-03-18 17:09           ` Randy.Dunlap
2004-03-18 17:39             ` Mikael Pettersson
2004-03-18 17:41               ` Randy.Dunlap [this message]

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=20040318094104.05af1c24.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikpe@csd.uu.se \
    /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

all inboxes | Powered by JetHome®