From owner-freebsd-net@FreeBSD.ORG Wed Aug 4 22:40:05 2010 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FBB71065670 for ; Wed, 4 Aug 2010 22:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D1E448FC13 for ; Wed, 4 Aug 2010 22:40:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o74Me4aG012803 for ; Wed, 4 Aug 2010 22:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o74Me42B012802; Wed, 4 Aug 2010 22:40:04 GMT (envelope-from gnats) Date: Wed, 4 Aug 2010 22:40:04 GMT Message-Id: <201008042240.o74Me42B012802@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Edwin Groothuis Cc: Subject: Re: kern/144755: [iwi] [panic] iwi panic when issuing /etc/rc.d/netif restart on 8-STABLE r205159 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Edwin Groothuis List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2010 22:40:05 -0000 The following reply was made to PR kern/144755; it has been noted by GNATS. From: Edwin Groothuis To: Bernhard Schmidt Cc: bug-followup@freebsd.org Subject: Re: kern/144755: [iwi] [panic] iwi panic when issuing /etc/rc.d/netif restart on 8-STABLE r205159 Date: Thu, 5 Aug 2010 08:31:27 +1000 Hello Bernhard! On Wed, Jul 28, 2010 at 12:11:17PM +0200, Bernhard Schmidt wrote: > Can you check if wpa_supplicant gets started twice after > "/etc/rc.d/netif restart"? According to core.txt there are two wpa_supplicant processes, but I don't know if it is caused by a fork of itself or if it is caused by something started twice: 0 7084 1 0 56 0 5192 0 select Ds ?? 3686:38.00 [wpa_suppli 0 7085 1 0 57 0 5192 0 select Ds ?? 2617:11.00 [wpa_suppli Based on the PPID of 1 for both, I would say it gets started twice. root wpa_supplicant 7085 root / 2 drwxr-xr-x 512 r root wpa_supplicant 7085 wd / 2 drwxr-xr-x 512 r root wpa_supplicant 7085 text /usr 4526084 -r-xr-xr-x 295932 r root wpa_supplicant 7085 0 /dev 7 crw-rw-rw- null rw root wpa_supplicant 7085 1 /dev 7 crw-rw-rw- null rw root wpa_supplicant 7085 2 /dev 7 crw-rw-rw- null rw root wpa_supplicant 7085 3* internet dgram udp c52b1000 root wpa_supplicant 7085 4* route raw 0 c527f4d4 root wpa_supplicant 7085 5 /dev 15 crw------- bpf rw root wpa_supplicant 7084 root / 2 drwxr-xr-x 512 r root wpa_supplicant 7084 wd / 2 drwxr-xr-x 512 r root wpa_supplicant 7084 text /usr 4526084 -r-xr-xr-x 295932 r root wpa_supplicant 7084 0 /dev 7 crw-rw-rw- null rw root wpa_supplicant 7084 1 /dev 7 crw-rw-rw- null rw root wpa_supplicant 7084 2 /dev 7 crw-rw-rw- null rw root wpa_supplicant 7084 3* internet dgram udp c4f520dc root wpa_supplicant 7084 4* route raw 0 c527f670 root wpa_supplicant 7084 5* local stream c4f508bc root wpa_supplicant 7084 6 /var 23622 -rw------- 4 w root wpa_supplicant 7084 7* local stream c4f5035c <-> c4f50408 root wpa_supplicant 7084 8 /dev 15 crw------- bpf rw > I have the feeling that this is a more or less known issue, a race > between devd (/etc/pccard_ether) and /etc/rc.d/netif. There is a small > window (a few ms) where this can happen and our net80211 isn't capable > of handling two running wpa_supplicants on the same interface. Which > leads to all kind of weird issues, .e.g. panics. Nice! Is there a workaround or patch available for testing? Edwin -- Edwin Groothuis Website: http://www.mavetju.org/ edwin@mavetju.org Weblog: http://www.mavetju.org/weblog/