Re: [mmotm 2009-10-09-01-07] b43/wireless possible circular locking

From: Larry Finger
Date: Sun Oct 11 2009 - 10:32:10 EST


On 10/11/2009 04:51 AM, Johannes Berg wrote:
> On Sun, 2009-10-11 at 17:41 +0800, Dave Young wrote:
>> Hi,
>>
>> I got lockdep warnings about possible circular lock with
>> b43 interface startup. It looks like a real problem.
>>
>> [ 71.974542] wlan0: deauthenticating from 00:19:e0:db:24:de by local choice (reason=3)
>> [ 72.004352] b43-phy0 debug: Removing Interface type 2
>> [ 72.005431]
>> [ 72.005435] =======================================================
>> [ 72.006168] [ INFO: possible circular locking dependency detected ]
>> [ 72.006759] 2.6.32-rc3-mm1 #4
>> [ 72.007047] -------------------------------------------------------
>> [ 72.007617] ifconfig/2175 is trying to acquire lock:
>> [ 72.007617] (&(&rfkill->poll_work)->work){+.+...}, at: [<c0239375>] __cancel_work_timer+0x8c/0x18e
>> [ 72.007617]
>> [ 72.007617] but task is already holding lock:
>> [ 72.007617] (&wl->mutex){+.+.+.}, at: [<f8fa5359>] b43_op_stop+0x28/0x6a [b43]
>
> I believe this is already taken care of by Larry.

Yes, I introduced this bug and fixed it. The latest wireless-testing
should have the fix. In addition, it is on its way to Linus through
DameM. Unfortunately, that fix has another bug that will not show up
in the logs. With it, it is impossible to turn the radio back on after
it is killed via the rfkill switch. A "final" (And I hope that is
true!) fix is out for testing; however, the OP for the bug that
started this whole chain only has limited access to the machine in
question.

Larry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/