netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Rankin <rankincj@yahoo.com>
To: linux-kernel@vger.kernel.org
Cc: netdev@vger.kernel.org
Subject: [BUG] Sleeping function called from invalid context (2.6.18.6)
Date: Sat, 20 Jan 2007 23:06:57 +0000 (GMT)	[thread overview]
Message-ID: <957323.87386.qm@web52909.mail.yahoo.com> (raw)

Hi,

I have been testing my wireless zd1211rw driver with kismet, but have noticed my logs filling up
with these messages instead:

BUG: sleeping function called from invalid context at kernel/mutex.c:86
in_atomic():0, irqs_disabled():1
 [<c029688e>] mutex_lock+0x12/0x1a
 [<c02496ae>] netdev_run_todo+0x10/0x1f1
 [<c024a148>] dev_ioctl+0x465/0x497
 [<c01626ff>] d_rehash+0x47/0x78
 [<c0240379>] sock_attach_fd+0x6c/0xcb
 [<c023fc9d>] sock_ioctl+0x0/0x1b3
 [<c015e508>] do_ioctl+0x1c/0x5d
 [<c015e78a>] vfs_ioctl+0x241/0x254
 [<c015e7c9>] sys_ioctl+0x2c/0x43
 [<c0102c3f>] syscall_call+0x7/0xb

According to the comment in linux/net/core/dev.c

 * 2) Since we run with the RTNL semaphore not held, we can sleep
 *    safely in order to wait for the netdev refcnt to drop to zero.

Well, apparently we can't sleep safely after all because IRQs have been disabled.

Cheers,
Chris



	
	
		
___________________________________________________________ 
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 

             reply	other threads:[~2007-01-20 23:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-20 23:06 Chris Rankin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-01-21  0:43 [BUG] Sleeping function called from invalid context (2.6.18.6) Chris Rankin

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=957323.87386.qm@web52909.mail.yahoo.com \
    --to=rankincj@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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).