Search Linux Wireless

Re: [ath5k-devel] ath5k_tasklet_rx BUG_ON(bf->skb == NULL)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 6 Feb 2009, John W. Linville wrote:
> On Fri, Feb 06, 2009 at 01:37:49PM -0500, Bob Copeland wrote:
> > On Fri, 6 Feb 2009 13:12:34 +0000 (GMT), Hugh Dickins wrote
> > > Hi Bob,
> > > 
> > > On Tue, 13 Jan 2009, Bob Copeland wrote:
> > > > On Tue, 13 Jan 2009 15:35:29 +0000 (GMT), Hugh Dickins wrote
> > > > > But I haven't seen any allocation failure for several days.
> > > > > I didn't get any while trying to simplify the reproduction,
> > > > 
> > > > I'll go ahead and push this upstream then today or tomorrow; let me 
> > > > know if you run into any problems with more testing.
> > > 
> > > Just a prod: I've not seen your fix go into the 2.6.29-rc tree yet.
> > 
> > Good point, it is queued for 2.6.30.  John, would there be any problem
> > with including a8e3cd514, "ath5k: fix bf->skb==NULL panic in 
> > ath5k_tasklet_rx" for 2.6.29?
> 
> Hmmm...well it is a little big, but I guess it is OK.  Do you have
> an example of the stack trace?  Or a link to a bugzilla or somesuch
> would be even better...

Below is my original report: I didn't copy down the stacktrace,
and the kernel paniced with "Fatal exception in interrupt", so
nothing I can send you from the logs I'm afraid.

Hugh

>From hugh@xxxxxxxxxxx Thu Jan  8 13:49:47 2009
Date: Thu, 8 Jan 2009 13:49:44 +0000 (GMT)
From: Hugh Dickins <hugh@xxxxxxxxxxx>
To: Jiri Slaby <jirislaby@xxxxxxxxx>
Cc:  <linux-wireless@xxxxxxxxxxxxxxx>,  <ath5k-devel@xxxxxxxxxxxxxxx>
Subject: ath5k_tasklet_rx BUG_ON(bf->skb == NULL)

Thank you for the ath5k wireless driver,
which I've just started using on an Aspire One.

When running swapping load tests, wireless alive but not in active use,
I've now twice hit the BUG_ON(bf->skb == NULL) in ath5k_tasklet_rx().

First time was with 2.6.28 plus kdb patch,
kernel BUG at drivers/net/wireless/ath5k/base.c:1675!
and poking around the messages I could see before that an
ath5k phy0: can't alloc skbuff of size 2673, after a
swapper: page allocation failure, order:0 mode:0x4020
on a call from dev_alloc_skb(), with memory summary.

Second time was with yesterday's 2.6.28-git, no kdb,
kernel BUG at drivers/net/wireless/ath5k/base.c:1683!
running ath5k_tasklet_rx() from under do_softirq(),
Kernel panic - not syncing: Fatal exception in interrupt
so I couldn't see more; but at the top of the screen, the
last three lines of a page allocation failure memory summary.

So, that BUG_ON(bf->skb == NULL) appears to be unsafe under
memory pressure; but the fix wasn't obvious to me, so over
to you!

I'd be glad to try patches, of course, but it's not happening
often enough for me to report back success quickly - unless I
stumble on a quicker way to reproduce it, it'll need a week or
two to grow confident of a fix.

Thanks,
Hugh
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux