From owner-freebsd-net@FreeBSD.ORG Thu Aug 5 08:10:11 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 10FC51065673 for ; Thu, 5 Aug 2010 08:10:11 +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 D958A8FC1B for ; Thu, 5 Aug 2010 08:10:10 +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 o758AAY4098091 for ; Thu, 5 Aug 2010 08:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o758AAo4098090; Thu, 5 Aug 2010 08:10:10 GMT (envelope-from gnats) Date: Thu, 5 Aug 2010 08:10:10 GMT Message-Id: <201008050810.o758AAo4098090@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Bernhard Schmidt 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: Bernhard Schmidt List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2010 08:10:11 -0000 The following reply was made to PR kern/144755; it has been noted by GNATS. From: Bernhard Schmidt To: Edwin Groothuis , bug-followup@freebsd.org Cc: Subject: Re: kern/144755: [iwi] [panic] iwi panic when issuing /etc/rc.d/netif restart on 8-STABLE r205159 Date: Thu, 5 Aug 2010 10:08:42 +0200 On Thu, Aug 5, 2010 at 00:31, Edwin Groothuis wrote: > 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: > > =A0 =A00 =A07084 =A0 =A0 1 =A0 0 =A056 =A00 =A05192 =A0 =A0 0 select Ds = =A0 =A0?? =A03686:38.00 [wpa_suppli > =A0 =A00 =A07085 =A0 =A0 1 =A0 0 =A057 =A00 =A05192 =A0 =A0 0 select Ds = =A0 =A0?? =A02617:11.00 [wpa_suppli > > Based on the PPID of 1 for both, I would say it gets started twice. Indeed. > > [..] >> 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? A temporary workaround is to add a "sleep 1" in /etc/pccard_ether, something I'd rather not commit. I haven't yet found a clean solution for this.. any pointers welcome. :) --=20 Bernhard