From owner-freebsd-bugs@FreeBSD.ORG Mon Nov 1 23:00:41 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 676F016A4CF for ; Mon, 1 Nov 2004 23:00:41 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5938543D45 for ; Mon, 1 Nov 2004 23:00:41 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id iA1N0fMI082142 for ; Mon, 1 Nov 2004 23:00:41 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iA1N0fYJ082140; Mon, 1 Nov 2004 23:00:41 GMT (envelope-from gnats) Date: Mon, 1 Nov 2004 23:00:41 GMT Message-Id: <200411012300.iA1N0fYJ082140@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Stefan =?iso-8859-1?Q?E=DFer?= Subject: Re: kern/73321: Reproducible Panic (LOR: I4B / INET6) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Stefan =?iso-8859-1?Q?E=DFer?= List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2004 23:00:41 -0000 The following reply was made to PR kern/73321; it has been noted by GNATS. From: Stefan =?iso-8859-1?Q?E=DFer?= 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!