All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta.com>
To: Arjan van de Ven <arjan@linux.intel.com>,
	Francois Romieu <romieu@fr.zoreil.com>
Cc: NetDev <netdev@vger.kernel.org>
Subject: Re: bugreport: The r8169.c driver is calling netif_receive_skb from hardirq and with interrupts off
Date: Mon, 14 Apr 2008 11:22:10 -0700	[thread overview]
Message-ID: <20080414112210.3c7ab1bb@extreme> (raw)
In-Reply-To: <48039BEC.7070008@linux.intel.com>

On Mon, 14 Apr 2008 11:01:16 -0700
Arjan van de Ven <arjan@linux.intel.com> wrote:

> The r8169.c driver is calling netif_receive_skb from hardirq and with interrupts off,
> which seems to be invalid (the comments of netif_receive_skb) certainly say so.
> 
> The calltrace is like this:
> 
> packet_rcv
> netif_receive_skb
> rtl8168_rx_interrupt
> rtl8168_interrupt
> handle_IRQ_event
> handle_fasteoi_irq
> do_IRQ
> 
> 
> Which triggers a warning in packet_rcv() since that does a local_bh_enable(),
> which gives a WARN_ON if irqs are disabled (rightfully so it seems).
> 
> The code looks is in rtl8169_rx_interrupt() line 2832 and looks like
> 
>                          if (rtl8169_rx_vlan_skb(tp, desc, skb) < 0)
>                                  rtl8169_rx_skb(skb);
> 
> with
> #define rtl8169_rx_skb                  netif_receive_skb
> higher up in the file.
> 
> This is the 46th highest ranking warnon/oops report for 2.6.25-rc
> 

rtl8169_rx_skb is defined as netif_receive_skb only if NAPI is enabled.
But the backtrace has CONFIG_R8169_NAPI disabled.

I also concerned that the reset_task calls rx_interrupt with different locking
than normal interrupt. 

  reply	other threads:[~2008-04-14 18:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-14 18:01 bugreport: The r8169.c driver is calling netif_receive_skb from hardirq and with interrupts off Arjan van de Ven
2008-04-14 18:22 ` Stephen Hemminger [this message]
2008-04-14 18:24   ` Arjan van de Ven
2008-04-14 18:31     ` Stephen Hemminger
2008-04-15 16:34       ` Arjan van de Ven

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=20080414112210.3c7ab1bb@extreme \
    --to=shemminger@vyatta.com \
    --cc=arjan@linux.intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=romieu@fr.zoreil.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.