Larry Finger | 1 Jun 19:55
Favicon

Locking problem in bcm43xx-mac80211

When a 'modprobe -r bcm43xx-mac80211' command is given with the interface up, the following kernel 
BUG is issued:

ssb: Switching to ChipCommon core, index 0
ssb: Switching to IEEE 802.11 core, index 1
bcm43xx_mac80211: Radio turned off
BUG: sleeping function called from invalid context at kernel/mutex.c:86
in_atomic():1, irqs_disabled():0
2 locks held by modprobe/6053:
  #0:  (rtnl_mutex){--..}, at: [<ffffffff803f0d63>] mutex_lock+0x2a/0x2e
  #1:  (&local->sta_lock){-+..}, at: [<ffffffff882622a5>] sta_info_flush+0x20/0x77 [mac80211]

Call Trace:
  [<ffffffff8024c830>] debug_show_held_locks+0x22/0x24
  [<ffffffff8022ab32>] __might_sleep+0xd9/0xdb
  [<ffffffff803f0d56>] mutex_lock+0x1d/0x2e
  [<ffffffff8829dc3a>] :bcm43xx_mac80211:bcm43xx_dev_set_key+0xc3/0x2e4
  [<ffffffff8028eea5>] __kmalloc+0x17e/0x18e
  [<ffffffff882621bf>] :mac80211:sta_info_free+0xec/0x1b2
  [<ffffffff882622cf>] :mac80211:sta_info_flush+0x4a/0x77
  [<ffffffff8826c5bf>] :mac80211:ieee80211_if_reinit+0x29c/0x2c7
  [<ffffffff80398de0>] unregister_netdevice+0x17e/0x201
  [<ffffffff8826bd06>] :mac80211:__ieee80211_if_del+0x1d/0x21
  [<ffffffff8825a985>] :mac80211:ieee80211_unregister_hw+0xbc/0x216
  [<ffffffff8829cf95>] :bcm43xx_mac80211:bcm43xx_remove+0x53/0x7f
  [<ffffffff8828f23b>] :ssb:ssb_device_remove+0x2b/0x39
  [<ffffffff8036cab5>] __device_release_driver+0x93/0xb3
  [<ffffffff8036d03d>] driver_detach+0xdb/0x11e
  [<ffffffff8036c529>] bus_remove_driver+0x75/0x97
  [<ffffffff8036d0b1>] driver_unregister+0x9/0xb
(Continue reading)

Michael Buesch | 1 Jun 22:38
Picon
Favicon

Re: Locking problem in bcm43xx-mac80211

On Friday 01 June 2007 19:55:24 Larry Finger wrote:
> When a 'modprobe -r bcm43xx-mac80211' command is given with the interface up, the following kernel 
> BUG is issued:

Known. Ignore it for now.

I sent out a patch to Jiri to fix this, but it hasn't
been acked (yet?). Jiri thinks it introduces a race. I think
it doesn't. ;)

--

-- 
Greetings Michael.

Gmane