From owner-freebsd-current@FreeBSD.ORG Tue May 10 09:53:50 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 051CB16A4E0; Tue, 10 May 2005 09:53:50 +0000 (GMT) Received: from orb.pobox.com (orb.pobox.com [207.8.226.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9082143D75; Tue, 10 May 2005 09:53:49 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from orb (localhost [127.0.0.1]) by orb.pobox.com (Postfix) with ESMTP id 4EBC890D; Tue, 10 May 2005 05:53:45 -0400 (EDT) Received: from thinkdog.local.linnet.org (host217-40-157-153.in-addr.btopenworld.com [217.40.157.153]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by orb.sasl.smtp.pobox.com (Postfix) with ESMTP id E87538C; Tue, 10 May 2005 05:53:42 -0400 (EDT) Received: from brian by thinkdog.local.linnet.org with local (Exim 4.43 (FreeBSD)) id 1DVRQr-0001xi-MB; Tue, 10 May 2005 10:53:41 +0100 Date: Tue, 10 May 2005 10:53:41 +0100 From: Brian Candler To: Bill Paul Message-ID: <20050510095341.GA7507@uk.tiscali.com> References: <20050509164944.GA7041@uk.tiscali.com> <20050510032532.B08BE16A4EE@hub.freebsd.org> <20050510091354.GB7269@uk.tiscali.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050510091354.GB7269@uk.tiscali.com> User-Agent: Mutt/1.4.2.1i cc: sam@errno.com cc: freebsd-current@freebsd.org Subject: Re: wpa_supplicant causes panic in ieee80211_newstate X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 09:53:50 -0000 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 @ .... 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.