From owner-freebsd-current@FreeBSD.ORG Wed Jul 1 22:42:12 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 3A009106567F; Wed, 1 Jul 2009 22:42:12 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Robert Watson Date: Wed, 1 Jul 2009 18:42:00 -0400 User-Agent: KMail/1.6.2 References: <20090701162108.GA33681@regency.nsu.ru> <200907011737.15525.jkim@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200907011842.01710.jkim@FreeBSD.org> 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: Wed, 01 Jul 2009 22:42:13 -0000 On Wednesday 01 July 2009 05:42 pm, Robert Watson wrote: > On Wed, 1 Jul 2009, Jung-uk Kim wrote: > >>> Last time I checked, bpf(4) with MAC caused a similar problem > >>> when it is destroying bpf descriptor label. GENERIC includes > >>> MAC by default now. If you don't need MAC, try removing > >>> "options MAC" from your kernel configuration. > >> > >> I was not aware of this problem -- could you provide some more > >> details? Any panic caused by having MAC in the kernel is a > >> bug... > > > > It was about a month ago. I had funny impression that you and > > sam were working on it cause it started happening when sam added > > bpf detach event handler and MAC was enabled by default. Any > > way, I will let you know if I can reproduce the problem. > > There have been a number of tear-down related races for ifnets, > more of which are closed now than before the last few weeks, but > none MAC-related as far as I'm aware. If it recurs, please let me > know and I'm happy to help investigate (MAC-related or otherwise). 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. Jung-uk Kim