From owner-freebsd-current@FreeBSD.ORG Thu Jul 2 18:13:39 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E225E1065677; Thu, 2 Jul 2009 18:13:39 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id BCE2D8FC28; Thu, 2 Jul 2009 18:13:39 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id 58A4C46B29; Thu, 2 Jul 2009 14:13:39 -0400 (EDT) Date: Thu, 2 Jul 2009 19:13:39 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Jung-uk Kim In-Reply-To: <200907011842.01710.jkim@FreeBSD.org> Message-ID: References: <20090701162108.GA33681@regency.nsu.ru> <200907011737.15525.jkim@FreeBSD.org> <200907011842.01710.jkim@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Alexey Dokuchaev , freebsd-current@FreeBSD.org Subject: Re: Kernel panic with if_sf.ko X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 02 Jul 2009 18:13:40 -0000 On Wed, 1 Jul 2009, Jung-uk Kim wrote: > I cannot reproduce it any more. It must be fixed already. FYI, when it > happened, I traced it down to: > > shutdown -> > dhclient closing fd -> > bpf_dtor() -> > mac_bpfdesc_destroy() -> > mac_bpfdesc_label_free() -> d->bd_label corrupt! > bpfmac_labelzone_free() -> > uma_zfree() -> > ... -> page fault! > > Any way, sorry for the noise and thanks for fixing this, whoever that is. This is almost certainly an ifnet-related race condition that has been fixed in 8.x, and that MAC is panicking is just a symptom that it picked up on a double free (or the like) since it has internal validation. It may still existing in 7.x as there's a lot of ifnet/ifaddr work I haven't MFC'd yet (and won't for a few weeks at least). Thanks, Robert N M Watson Computer Laboratory University of Cambridge