From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Berg Subject: Re: BUG: scheduling while atomic: ifconfig/0x00000002/4170 Date: Thu, 06 Sep 2007 14:09:35 +0200 Message-ID: <1189080575.28781.65.camel@johannes.berg> References: <20070902184439.GA14306@paradigm.rfc822.org> <6bffcb0e0709021659o3856cd06gabc054c949a84397@mail.gmail.com> <20070906082301.GB21929@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-aDhX2JYVj+qvS9HXtxEq" Cc: Satyam Sharma , Florian Lohoff , Linux Kernel Mailing List , Netdev , linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Michal Piotrowski , ipw3945-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, yi.zhu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, Michael Wu To: Herbert Xu Return-path: In-Reply-To: <20070906082301.GB21929-lOAM2aK0SrRLBo1qDEOMRrpzq4S04n8Q@public.gmane.org> Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org --=-aDhX2JYVj+qvS9HXtxEq Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2007-09-06 at 16:23 +0800, Herbert Xu wrote: > On Thu, Sep 06, 2007 at 10:32:33AM +0530, Satyam Sharma wrote: > >=20 > > > > [ 382.529041] [] dev_close+0x24/0x67 > > > > [ 382.529052] [] ieee80211_master_stop+0x4a/0x6d [mac80= 211] >=20 > This is where the bug is. You cannot call dev_close from an > atomic context as i33380211_master_stop does it within spin > locks. Hah, I suspected as much but didn't have a chance to look yet. I had plans to replace that sub_if_list with an RCU list and not require the lock there, but that's far off. Any ideas how to fix this? We can't reject the master stop so we have to walk the list, I guess we'll have to audit the other list manipulation places, I think they're all under RTNL. johannes --=-aDhX2JYVj+qvS9HXtxEq Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Comment: Johannes Berg (powerbook) iD8DBQBG3+3//ETPhpq3jKURAmSDAJ4htpfzSylRKgy7lccg8n7RghW2+gCgoJDZ IpSVWTebwTCqf7Iq44pU2gc= =u3vr -----END PGP SIGNATURE----- --=-aDhX2JYVj+qvS9HXtxEq--