From: Johannes Berg Subject: Re: iw lockdep warning on wireless-testing Date: Tue, 24 Jun 2008 10:59:15 +0200 Message-ID: <1214297955.8967.258.camel@johannes.berg> References: <1214293174.14590.229.camel@debian.sh.intel.com> (sfid-20080624_094030_856715_6751BF69) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-1eNgOeETCc9LeyUU2YiT" Cc: linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Thomas Graf , netdev To: Zhu Yi Return-path: In-Reply-To: <1214293174.14590.229.camel-F7Q/YMNgnyhhZnBKgDE8z0EOCMrvLtNR@public.gmane.org> (sfid-20080624_094030_856715_6751BF69) Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org --=-1eNgOeETCc9LeyUU2YiT Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, > I begin to see below lockdep warning on wireless-testing when I use iw > to create a monitor interface with iwl4965. Any clues? Yeah I've seen that reported too, but I think it's in genetlink. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > [ INFO: possible circular locking dependency detected ] > 2.6.26-rc6-wl #57 > ------------------------------------------------------- > iw/2763 is trying to acquire lock: > (genl_mutex){--..}, at: [] ctrl_dumpfamily+0x31/0xf7 >=20 > but task is already holding lock: > (nlk->cb_mutex){--..}, at: [] netlink_dump+0x40/0x19d >=20 > which lock already depends on the new lock. None of those is anything nl80211 has influence over, afaict. >=20 > the existing dependency chain (in reverse order) is: >=20 > -> #1 (nlk->cb_mutex){--..}: > [] __lock_acquire+0xa4c/0xc28 > [] netlink_dump_start+0xd9/0x169 > [] lock_acquire+0x51/0x6c > [] netlink_dump_start+0xd9/0x169 > [] debug_mutex_lock_common+0x16/0x23 > [] mutex_lock_nested+0xde/0x23f > [] netlink_dump_start+0xd9/0x169 > [] genl_rcv_msg+0xae/0x14b > [] mutex_lock_nested+0x230/0x23f > [] genl_rcv_msg+0x0/0x14b > [] netlink_rcv_skb+0x34/0x7c > [] genl_rcv+0x21/0x30 > [] netlink_unicast+0x1f7/0x287 > [] __alloc_skb+0x84/0x132 > [] netlink_sendmsg+0x274/0x287 > [] sock_sendmsg+0xe2/0xff > [] autoremove_wake_function+0x0/0x2e > [] mark_held_locks+0x49/0x67 > [] sys_sendmsg+0x217/0x28a > [] __do_fault+0x35d/0x3a5 > [] tracesys+0xd5/0xda > [] 0xffffffffffffffff >=20 > -> #0 (genl_mutex){--..}: > [] print_circular_bug_header+0xc8/0xcf > [] __lock_acquire+0x951/0xc28 > [] ctrl_dumpfamily+0x31/0xf7 > [] lock_acquire+0x51/0x6c > [] ctrl_dumpfamily+0x31/0xf7 > [] debug_mutex_lock_common+0x16/0x23 > [] mutex_lock_nested+0xde/0x23f > [] trace_hardirqs_on+0xf3/0x117 > [] ctrl_dumpfamily+0x31/0xf7 > [] netlink_dump+0x5b/0x19d > [] netlink_recvmsg+0x180/0x2a8 > [] sock_recvmsg+0xf0/0x10f > [] autoremove_wake_function+0x0/0x2e > [] mark_held_locks+0x49/0x67 > [] sys_recvmsg+0x15c/0x254 > [] audit_syscall_entry+0x12d/0x160 > [] trace_hardirqs_on_thunk+0x35/0x3a > [] tracesys+0xd5/0xda > [] 0xffffffffffffffff >=20 > other info that might help us debug this: >=20 > 1 lock held by iw/2763: > #0: (nlk->cb_mutex){--..}, at: [] netlink_dump > +0x40/0x19d >=20 > stack backtrace: > Pid: 2763, comm: iw Not tainted 2.6.26-rc6-wl #57 >=20 > Call Trace: > [] print_circular_bug_tail+0x69/0x72 > [] print_circular_bug_header+0xc8/0xcf > [] __lock_acquire+0x951/0xc28 > [] ctrl_dumpfamily+0x31/0xf7 > [] lock_acquire+0x51/0x6c > [] ctrl_dumpfamily+0x31/0xf7 > [] debug_mutex_lock_common+0x16/0x23 > [] mutex_lock_nested+0xde/0x23f > [] trace_hardirqs_on+0xf3/0x117 > [] ctrl_dumpfamily+0x31/0xf7 > [] netlink_dump+0x5b/0x19d > [] netlink_recvmsg+0x180/0x2a8 > [] sock_recvmsg+0xf0/0x10f > [] autoremove_wake_function+0x0/0x2e > [] mark_held_locks+0x49/0x67 > [] sys_recvmsg+0x15c/0x254 > [] audit_syscall_entry+0x12d/0x160 > [] trace_hardirqs_on_thunk+0x35/0x3a > [] tracesys+0xd5/0xda >=20 >=20 >=20 > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless"= in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >=20 --=-1eNgOeETCc9LeyUU2YiT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Comment: Johannes Berg (powerbook) iQIcBAABAgAGBQJIYLdfAAoJEKVg1VMiehFY/64P/i3aLRylN5q9z/Aif/xf9Nw0 ToZrNvROfzG5+ChRvDFGHq7JlCYdSMflPMoj6yBYxa0bgFo9QwIbRgZEqJASFq6n Ti5KeoMD3FBwYRQZcGOtxlnkGn5gkqdpNOMqBW9iYJUjpWlPnG8ZdW2XnbJO994b nSlYTgUdNmGWKLF/7tVQ+2Kpy+qPnsM0qDXZ6CXwwsRCko2THuKk/TCd/OYyHtVu oyxtVZ4EOcnTHpoIHGadUyyZ6SYizzC9EicKPW6UjrGR6WdmWyPoNBdvpxBXHe31 G16AfkRgGNOsOzeVGJ6iVqd3LW/a18ZMyKInfnRArIE64EKCvMLxAnvm3DJgucT+ jbD5u/n1zKm6+S6BpvTT2qfGiiXet6/pbfgZv1LgaG1Rj9i9isOXUg/tXBPuMYJn b6xSEYaMr1hpvi+04EgFU0ZfEvaphKVwY4fd7VQYOSQ6nkjayqzuVf/eouYMegxB hUHSuL9S3CO1bRkVmYUZ9mCUaAOdKTxH3az0+z/Nva3yavoxZIlJV/zRLWA3Df2j eTFhZLSFnhybCM8xqWJ07QC4Ee4d/No9iLMSLfcL+6xd2Q+1mv4Cp//vZUK6MMrO e1APnTDsNDW1zFoJFe4MdFG0ytga5kCukYFVhTC77GT1B3/B/Vbz1EYW02x77xFv fMl2ZyvVYi+nCatn+F1W =BpJG -----END PGP SIGNATURE----- --=-1eNgOeETCc9LeyUU2YiT-- -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html