Re: LOR if_ath.c:842 ieee80211_node.c:1490

From: Sam Leffler <sam_at_errno.com>
Date: Tue, 17 May 2005 12:23:50 -0700
Jiri Mikulas wrote:
> Hello, FYI
> FreeBSD 6.0-CURRENT #1: Wed May 11 18:38:12 CEST 2005
> 
> lock order reversal
>  1st 0xc15d4f1c ath0 (network driver) _at_ /usr/src/sys/dev/ath/if_ath.c:842
>  2nd 0xc15d4c64 ath0 (802.11 scangen) _at_ 
> /usr/src/sys/net80211/ieee80211_node.c:1490
> KDB: stack backtrace:
> kdb_backtrace(0,ffffffff,c0797bd0,c0797ab8,c075c9c8) at kdb_backtrace+0x29
> witness_checkorder(c15d4c64,9,c072d520,5d2) at witness_checkorder+0x55c
> _mtx_lock_flags(c15d4c64,0,c072d520,5d2,c15d4000) at _mtx_lock_flags+0x5b
> ieee80211_iterate_nodes(c15d4bb0,c04a9540,c15d4000) at 
> ieee80211_iterate_nodes+0x21
> ath_rate_newstate(c15d4000,4) at ath_rate_newstate+0x2f
> ath_newstate(c15d4404,4,ffffffff) at ath_newstate+0x1bf
> ieee80211_sta_join(c15d4404,c1a4d000,1,0,c15d4404) at 
> ieee80211_sta_join+0xcf
> ieee80211_create_ibss(c15d4404,c15d4862) at ieee80211_create_ibss+0x23b
> ieee80211_newstate(c15d4404,1,ffffffff,d148bb4c,c06f7b40) at 
> ieee80211_newstate+0x2b8
> ath_newstate(c15d4404,1,ffffffff) at ath_newstate+0x2b3
> ath_init(c15d4000) at ath_init+0x167
> ath_media_change(c15d4000,c15d4f1c,10080,c15bb920,0) at 
> ath_media_change+0x26
> ifmedia_ioctl(c15d4000,c1888ba0,c15d4cac,c0206937,0) at ifmedia_ioctl+0x93
> ieee80211_ioctl(c15d4404,c0206937,c1888ba0,c1888ba0,c15d4404) at 
> ieee80211_ioctl+0xc1
> ath_ioctl(c15d4000,c0206937,c1888ba0,d148bc38,c0539b90) at ath_ioctl+0x174
> ifhwioctl(c0206937,c15d4000,c1888ba0,c1a80900,1) at ifhwioctl+0x998
> ifioctl(c182de44,c0206937,c1888ba0,c1a80900,0) at ifioctl+0xc3
> soo_ioctl(c1800630,c0206937,c1888ba0,c16da680,c1a80900) at soo_ioctl+0x2db
> ioctl(c1a80900,d148bd04,3,2,246) at ioctl+0x370
> syscall(3b,3b,3b,80553a0,1) at syscall+0x227
> Xint0x80_syscall() at Xint0x80_syscall+0x1f
> --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x280c527f, esp = 
> 0xbfbfe35c, ebp = 0xbfbfe378 ---
> 
> 
> Could it be reason, why 'wicontrol wi0 -l' doesn't show associated 
> clients ?

No.  The LOR is a longstanding issue with holding the driver lock over 
net80211 ioctls.  I've delayed dealing with it because I think the best 
solution involves exposing the driver's lock to the net80211 layer and 
that is a significant change that needs to be thought through.

ifconfig ath0 list sta

should show you the set of associated stations.  wicontrol is dead.  If 
there's something you can do with wicontrol that you cannot do with 
ifconfig please speak up.

> I have 2 ath cards and one wi card in this router.
> Thanks for reply
> Jiri
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
Received on Tue May 17 2005 - 17:20:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:34 UTC