From owner-freebsd-net@FreeBSD.ORG Sun Jun 22 23:16:31 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 816D6F1; Sun, 22 Jun 2014 23:16:31 +0000 (UTC) Received: from zimbra.nitronet.pl (zimbra.nitronet.pl [79.98.150.2]) by mx1.freebsd.org (Postfix) with ESMTP id 392372F70; Sun, 22 Jun 2014 23:16:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.nitronet.pl (Postfix) with ESMTP id B53D660E7F; Mon, 23 Jun 2014 01:21:02 +0200 (CEST) Received: from zimbra.nitronet.pl ([127.0.0.1]) by localhost (zimbra.nitronet.pl [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0s0DV5HJJgwd; Mon, 23 Jun 2014 01:21:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.nitronet.pl (Postfix) with ESMTP id 5B42C63583; Mon, 23 Jun 2014 01:21:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.nitronet.pl Received: from zimbra.nitronet.pl ([127.0.0.1]) by localhost (zimbra.nitronet.pl [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CQ7jrtgmdSfd; Mon, 23 Jun 2014 01:21:00 +0200 (CEST) Received: from hC35A6B23.cli.nitronet.pl (hC35A6B23.cli.nitronet.pl [195.90.107.35]) by zimbra.nitronet.pl (Postfix) with ESMTPSA id 3322B60E7F; Mon, 23 Jun 2014 01:21:00 +0200 (CEST) Date: Mon, 23 Jun 2014 01:16:20 +0200 From: =?windows-1250?Q?Pawe=B3_Tyll?= X-Priority: 3 (Normal) Message-ID: <2510165566.20140623011620@ofca.me> To: Adrian Chadd Subject: Re: FreeBSD 9 as PPPoE BRAS(mpd 5.7) kernel panic In-Reply-To: References: <53A719C3.3040002@hostelnet.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: FreeBSD Net , noc@hostelnet.ru X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2014 23:16:31 -0000 Hello Adrian, Sunday, June 22, 2014, 8:14:22 PM, you wrote: > They're NULL pointer derferences, so it's likely a race condition with > some other thread destroying something and setting the pointer value > to NULL somewhere. > I thought this was a reasonably well known problem? Was it ever fixed > in 10/head? It probably wasn't, since I had similar issues on 10-STABLE r266523. It's caused (most often) by packet returning from traffic shaping queues, when in the meantime ng interface got destroyed by mpd. That's why the sleep hack works; mpd destroys interface 1s later that usual. Curious though, that hostelnet uses ng_car for traffic shaping, yet things still panic, even though whole ordeal happens inside netgraph. Lots of entry-points for a fix :)