From owner-freebsd-current@FreeBSD.ORG Mon Jun 4 10:55:16 2012 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 9A7A61065676; Mon, 4 Jun 2012 10:55:16 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 86AD98FC14; Mon, 4 Jun 2012 10:55:15 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA08179; Mon, 04 Jun 2012 13:55:13 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1SbUwK-0000Ju-Uk; Mon, 04 Jun 2012 13:55:12 +0300 Message-ID: <4FCC940E.2070008@FreeBSD.org> Date: Mon, 04 Jun 2012 13:55:10 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120503 Thunderbird/12.0.1 MIME-Version: 1.0 To: "Alexander V. Chernikov" References: <4FCBCF7E.9020603@FreeBSD.org> <4FCBE3B6.1020003@FreeBSD.org> <4FCC5A46.8020007@FreeBSD.org> In-Reply-To: <4FCC5A46.8020007@FreeBSD.org> X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=x-viet-vps Content-Transfer-Encoding: 7bit Cc: freebsd-net@FreeBSD.org, FreeBSD-Current Subject: Re: null pointer panic in bpf_peers_present 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: Mon, 04 Jun 2012 10:55:16 -0000 on 04/06/2012 09:48 Alexander V. Chernikov said the following: > On 04.06.2012 02:22, Andriy Gapon wrote: >> on 03/06/2012 23:56 Andriy Gapon said the following: >>> >>> I wonder if anybody else is seeing this and if there is a fix... >>> This is very recent (today's) FreeBSD head with pretty dull network >>> configuration. During boot I run into the following panic: >>> >>> <118>Setting hostname: xxxxx >>> <118>Starting dhclient. >>> >> My current guess is that the panic occurs because of the newly added (r235745) >> bpf_ifdetach which is an ifnet_departure_event handler. My rc.conf is >> configured to do interface renaming and SIOCSIFNAME seems to post >> ifnet_departure_event followed by ifnet_arrival_event. >> >> Not sure if it's a window between ifnet_departure_event and ifnet_arrival_event >> when if_bpf is NULL, or if if_bpf is never restored in this case. > if_bpf is never restored. > > Can you please try an attached patch ? I can boot successfully with this patch. Thank you! -- Andriy Gapon