Date: Mon, 1 Nov 2004 23:00:41 GMT From: Stefan =?iso-8859-1?Q?E=DFer?= <se@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/73321: Reproducible Panic (LOR: I4B / INET6) Message-ID: <200411012300.iA1N0fYJ082140@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/73321; it has been noted by GNATS. From: Stefan =?iso-8859-1?Q?E=DFer?= <se@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/73321: Reproducible Panic (LOR: I4B / INET6) Date: Mon, 1 Nov 2004 23:50:02 +0100 I have identifed the cause of the panic. It seems, that it is caused by NETGRAPH calling net_add_domain() during SYSINIT(SI_SUB_PSEUDO) to add the netgraph address family and protocol. That function must not be called before phase SI_SUB_PROTO_DOMAIN, though, or incomplete initialization of network device structures will result, leading to a panic during INET6 neighbour discovery. The following work-around moves the initialization of all i4b devices before netgraph, as required: Index: i4b/include/i4b_global.h --- i4b/include/i4b_global.h 15 Jul 2004 08:26:05 -0000 1.12 +++ i4b/include/i4b_global.h 1 Nov 2004 18:48:07 -0000 @@ -67,7 +67,8 @@ name ## _modevent, \ (void *)sym \ }; \ - DECLARE_MODULE(name, name ## _mod, SI_SUB_PSEUDO, SI_ORDER_ANY) + /* XXX work-around: i4b must be initialized before netgraph! */ \ + DECLARE_MODULE(name, name ## _mod, SI_SUB_PSEUDO, SI_ORDER_MIDDLE) #endif /*---------------*/ This is only a work-around, since netgraph should really not call net_add_domain() before phase SI_SUB_PROTO_DOMAIN!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411012300.iA1N0fYJ082140>