Return-path: Received: from mail-pz0-f194.google.com ([209.85.222.194]:57504 "EHLO mail-pz0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754115AbZJKObT (ORCPT ); Sun, 11 Oct 2009 10:31:19 -0400 Message-ID: <4AD1EA65.3070805@lwfinger.net> Date: Sun, 11 Oct 2009 09:23:33 -0500 From: Larry Finger MIME-Version: 1.0 To: Johannes Berg CC: Dave Young , akpm@linux-foundation.org, bcm43xx-dev@lists.berlios.de, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [mmotm 2009-10-09-01-07] b43/wireless possible circular locking References: <20091011094139.GA2778@darkstar> <1255254687.4095.46.camel@johannes.local> In-Reply-To: <1255254687.4095.46.camel@johannes.local> Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: 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: [] __cancel_work_timer+0x8c/0x18e >> [ 72.007617] >> [ 72.007617] but task is already holding lock: >> [ 72.007617] (&wl->mutex){+.+.+.}, at: [] 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