From owner-freebsd-stable@FreeBSD.ORG Wed Jul 4 15:32:45 2012 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C733E1065670 for ; Wed, 4 Jul 2012 15:32:45 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) by mx1.freebsd.org (Postfix) with ESMTP id 6AB5E8FC17 for ; Wed, 4 Jul 2012 15:32:45 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.69) (envelope-from ) id 1SmRZ2-00043I-FV for stable@freebsd.org; Wed, 04 Jul 2012 22:32:24 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id q64FT5Ie081988 for ; Wed, 4 Jul 2012 22:31:14 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id q64FSHKa081974 for stable@freebsd.org; Wed, 4 Jul 2012 22:28:17 +0700 (NOVT) (envelope-from danfe) Resent-Message-Id: <201207041528.q64FSHKa081974@regency.nsu.ru> From: Alexey Dokuchaev To: Bernhard Schmidt Message-ID: <20120619052810.GA40402@regency.nsu.ru> References: <20120507035405.GA47351@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Resent-From: danfe@nsu.ru Resent-Date: Wed, 4 Jul 2012 22:28:17 +0700 Resent-To: stable@freebsd.org Cc: stable@freebsd.org Subject: Re: panic with if_iwi(4) upon "netif restart" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Wed, 04 Jul 2012 15:32:45 -0000 X-Original-Date: Tue, 19 Jun 2012 12:28:11 +0700 X-List-Received-Date: Wed, 04 Jul 2012 15:32:45 -0000 On Mon, May 07, 2012 at 08:28:50PM +0200, Bernhard Schmidt wrote: > On Mon, May 7, 2012 at 5:54 AM, Alexey Dokuchaev wrote: > > Weird panic occurs to me here with iwi(4) based laptop when trying to hook > > up to WPA-protected network with "service netif restart". Kernel and > > userland are not strictly in sync, with the latter lagging behind couple > > of months, but presumably this fact should not matter on stable branch. > > does "ps" in kgdb reveal multiple instances of wpa_supplicant running? > If so, this seems to be the well known devd+netif+supplicant+newstate > race/missing refcount. > > Wanna try attached patch? Bernhard, Sorry it took so long to get back. With your patch applied, I haven't seen this panic for a while, however, double instances of wpa_supplicant still persist. So I think you can commit it, but underlying race remains to be fixed. ./danfe