From owner-freebsd-current@FreeBSD.ORG Wed Aug 10 08:35:01 2005 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 393EE16A41F; Wed, 10 Aug 2005 08:35:01 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A29843D45; Wed, 10 Aug 2005 08:35:00 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:RXRf91iBpGZDbkijyCTY5d5oMRFOcIkKXgnlM4G4JsIWiaecQWf1jXKqb1CfpQuP@localhost [IPv6:::1]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.3/8.13.3) with ESMTP/inet6 id j7A8Ytx5041926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 10 Aug 2005 17:34:56 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Wed, 10 Aug 2005 17:34:55 +0900 Message-ID: From: Hajimu UMEMOTO To: "Bjoern A. Zeeb" In-Reply-To: References: <200508091657.12032.jhb@FreeBSD.org> User-Agent: xcite1.38> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 5.4-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0 (ameno.mahoroba.org [IPv6:::1]); Wed, 10 Aug 2005 17:34:56 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on ameno.mahoroba.org Cc: FreeBSD current mailing list , John Baldwin Subject: Re: LOR + panic in scope6.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2005 08:35:01 -0000 Hi, >>>>> On Tue, 9 Aug 2005 21:22:35 +0000 (UTC) >>>>> "Bjoern A. Zeeb" said: bzeeb> The code goes about like this: bzeeb> ... bzeeb> SK_UNLOCK(sc); bzeeb> ether_ifattach(ifp, eaddr); bzeeb> SK_LOCK(sc); bzeeb> ... bzeeb> SK_UNLOCK(sc); bzeeb> if (mii_phy_probe(dev, &sc_if->sk_miibus, bzeeb> sk_ifmedia_upd, sk_ifmedia_sts)) { bzeeb> printf("skc%d: no PHY found!\n", sc_if->sk_unit); bzeeb> boom ==>> ether_ifdetach(ifp); bzeeb> if_free(ifp); bzeeb> error = ENXIO; bzeeb> goto fail; bzeeb> } bzeeb> I guess I should check tomorrow that if_attachdomain1 really calls bzeeb> the routines for AF_INET6 and what they do... ether_ifattach() is called, and ether_ifattach() calls if_attach(). if_attachdomain1() is called from if_attach(). So, ifp->if_afdata[AF_INET6] should be initialized. However, domain_init_status was introduced, and it may prevent if_attachdomain1() from initializing ifp->if_afdata. So, I suspect the state of domain_init_status. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/