From owner-freebsd-net@FreeBSD.ORG Tue Aug 16 11:03:05 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0871716A41F for ; Tue, 16 Aug 2005 11:03:05 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (silver.iplus.pl [80.48.250.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FFE843D45 for ; Tue, 16 Aug 2005 11:03:04 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.12.10/8.12.9) with ESMTP id j7GBHwGW059993; Tue, 16 Aug 2005 11:17:58 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.12.10/8.12.9/Submit) id j7GBHujH059992; Tue, 16 Aug 2005 11:17:56 GMT (envelope-from dunstan) Date: Tue, 16 Aug 2005 11:17:55 +0000 From: "Wojciech A. Koszek" To: Brooks Davis Message-ID: <20050816111754.GA59968@freebsd.czest.pl> References: <200508090854.21278.darcy@wavefire.com> <20050809181601.GB20908@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050809181601.GB20908@odin.ac.hmc.edu> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: panic: if_attach called without if_alloc'd input() X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2005 11:03:05 -0000 On Tue, Aug 09, 2005 at 11:16:01AM -0700, Brooks Davis wrote: > On Tue, Aug 09, 2005 at 08:54:21AM -0700, Darcy Buskermolen wrote: > > I'm getting the following panic on my RELENG_6 test box: > > > > xl1f0: BUG: if_attach called without if_alloc'd input() > > > > Where should I be looking to track this down? I suspect it has to do with a > > custom kernel, it wasn't doing it when i was running GENERIC > > The ef(4) device is currently broken. I haven't had time to look at it > much though it seems mostly correct by inspection so I'm not sure what's > going on. > > If you could compile with debugging and get be a stack trace from the > panic, that might help be track this down. I'm assuming there's a path > through the code that I'm missing that results in using a bogus cast to > get an ifnet pointer and thus causes a panic. You might also try the > following patch which fixes a couple bugs I think are unrelated, but may > not be. Hello, As I've written earlier, I had some time to analyze it. Detailed description: kern/84987 Patch is here: http://freebsd.czest.pl/dunstan/FreeBSD/diff.0.if.c Could someone review that patch? -- * Wojciech A. Koszek && dunstan@FreeBSD.czest.pl