Re: wpa_supplicant causes panic in ieee80211_newstate

From: Brian Candler <B.Candler_at_pobox.com>
Date: Tue, 10 May 2005 10:53:41 +0100
On Tue, May 10, 2005 at 10:13:54AM +0100, Brian Candler wrote:
> Oh well, this gives me something more to play with... I didn't realise PCI
> was so weird, thanks for the suggestion :-)

I can join a vanilla unencrypted network, but using wpa_supplicant to try to
join a WPA-PSK network has not been successful.

All those lock-reversals errors make it hard to see, but the wpa_supplicant
runs in a loop and every few seconds tries to join the network, and fails. I
then started running 'ifconfig ndis0' every few seconds in another window to
try and spot whether it was setting the correct SSID (it didn't seem to be
doing so), and managed to make it panic:

...
wpa_driver_bsd_set_drop_unencrypted: enable=1
wpa_driver_bsd_associate
ndis0: setting SSID to mytest
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
ndis0: failed to get bssid
ndis0: failed to get bssid
Authentication with 00:00:00:00:00:00 timed out.
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Sleeping on "ndissp" with the following non-sleepable locks held:
exclusive sleep mutex ndis softc lock (network driver) r = 0 (0xc1a76db4)
locaked _at_ .... src/compat/ndis/kern_ndic.c:1098
...
--- syscall (54, FreeBSD ELF32, ioctl), eip = 0x2822e26b, esp = 0xbfbfea7c,
ebp = 0xbfbfead8 ---
panic: sleeping thread (tid 100072) owns a non-sleepable lock
cpuid = 0
KDB: enter: panic
[thread pid 681 tid 100077 ]
Stopped at      kdb_enter+0x2b: nop
db> trace
Tracing pid 681 tid 1000077 td 0xc1761c00
kdb_enter...
panic...
propagate_priority(...) at propagate_priority+0x97
turnstile_waot(...) at turnstile_wait+0x2ea
_mtx_lock_sleep(...) at _mtx_lock_sleep+0x142
_mtx_lock_flags(...) at _mtx_lock_flags+0x85
ndis_get_info(...) at ndis_get_info+0x6c
ndis_80211_ioctl_get(...) at ndis_80211_ioctl_get+0xdc
ndis_ioctl(...) at ndis_ioctl+0x257
in_control(...) at in_control+0xabd
ifioctl(...) at ifioctl+0x198
soo_ioctl(...) at soo_ioctol+0x2db
ioctl(...) at ioctl+0x370
syscall(3b,3b,3b,bfbfe41c,804f8f4) at syscall+0x227
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (54, FreeBSD ELF32, ioctl), eip=0x280c626b, esp=0xbfbfe34c, ebp
= 0xbfbfe468 ---
db> ps
  pid  proc    uid ppid pgrp   flag   stat  wmesg   wchan  cmd
  681 c1a93a00  0  515  681  0004002 [LOCK ndis softc lock c175d900] ifconfig

Regards,

Brian.
Received on Tue May 10 2005 - 07:53:50 UTC

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