linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Bob Copeland <bcopeland@gmail.com>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>,
	linux-wireless@vger.kernel.org, Jiri Slaby <jirislaby@gmail.com>,
	ath5k-devel@venema.h4ckr.net
Subject: Re: [ath5k-devel] ath5k_tasklet_rx BUG_ON(bf->skb == NULL)
Date: Thu, 8 Jan 2009 17:55:13 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0901081740350.19523@blonde.anvils> (raw)
In-Reply-To: <b6c5339f0901080910x3d3b5758mae4e81411dcf1405@mail.gmail.com>

On Thu, 8 Jan 2009, Bob Copeland wrote:
> On Thu, Jan 8, 2009 at 11:18 AM, Hugh Dickins <hugh@veritas.com> wrote:
> >> > 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!
> 
> Thanks for the report... I guess the error paths haven't been tested
> much when rx buf setup fails.
> 
> > (Of course, just removing the BUG_ON, and making sure there's
> > no oops on the NULL pointer, would fix my immediate issue:
> > but I doubt the right fix will be as simple as that.)
> 
> Are your memory load testing scripts available somewhere?

No.  They're little more than repeatedly running a "make -j20"
kernel build in a tmpfs, and another in an ext2 on /dev/loop0
backed by large tmpfs file.  But most of that will be irrelevant
to the ath5k issue, and it can be tricky when setting up to get
memory and swap and tmpfs sizes right to do plenty of swapping,
without the test just collapsing in out-of-memory kills.

Let me see if I can reproduce the ath5k BUG with a straightforward
memhog, repeatedly dirtying more anon memory than RAM can provide.
Is there something suitable I could run to exercise that wireless
path concurrently?  It was just idling when I hit the BUGs before.

Hugh

  reply	other threads:[~2009-01-08 17:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-08 13:49 ath5k_tasklet_rx BUG_ON(bf->skb == NULL) Hugh Dickins
2009-01-08 14:46 ` [ath5k-devel] " Maxim Levitsky
2009-01-08 16:18   ` Hugh Dickins
2009-01-08 17:10     ` Bob Copeland
2009-01-08 17:55       ` Hugh Dickins [this message]
2009-01-08 18:41         ` Bob Copeland
2009-01-09 13:41           ` Bob Copeland
2009-01-09 14:10             ` Hugh Dickins
2009-01-10 16:47               ` Bob Copeland
2009-01-10 20:15                 ` Bob Copeland
2009-01-13 15:35                   ` Hugh Dickins
2009-01-13 15:56                     ` Bob Copeland
2009-01-13 16:40                       ` Hugh Dickins
2009-01-13 17:45                         ` Luis R. Rodriguez
2009-02-06 13:12                       ` Hugh Dickins
2009-02-06 18:37                         ` Bob Copeland
2009-02-06 18:44                           ` John W. Linville
2009-02-06 19:01                             ` Hugh Dickins
2009-02-06 20:58                               ` Bob Copeland
2009-02-09  2:30                             ` Bob Copeland

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=Pine.LNX.4.64.0901081740350.19523@blonde.anvils \
    --to=hugh@veritas.com \
    --cc=ath5k-devel@venema.h4ckr.net \
    --cc=bcopeland@gmail.com \
    --cc=jirislaby@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=maximlevitsky@gmail.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;
as well as URLs for NNTP newsgroup(s).