panic: if_attach called without if_alloc'd input()

Wojciech A. Koszek dunstan at freebsd.czest.pl
Tue Aug 16 11:03:05 GMT 2005


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 at FreeBSD.czest.pl


More information about the freebsd-net mailing list