From owner-svn-src-all@freebsd.org Tue Dec 15 22:58:15 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 928E9A48A7A; Tue, 15 Dec 2015 22:58:15 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 60F5E1637; Tue, 15 Dec 2015 22:58:15 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [IPv6:2a02:1811:2419:4e02:584e:4e41:54fa:aebf] (unknown [IPv6:2a02:1811:2419:4e02:584e:4e41:54fa:aebf]) by venus.codepro.be (Postfix) with ESMTPSA id 440998662; Tue, 15 Dec 2015 23:58:11 +0100 (CET) Subject: Re: svn commit: r292275 - in head/sys: net netinet netinet6 Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: text/plain; charset=utf-8 From: Kristof Provost X-Checked-By-Nsa: Probably In-Reply-To: <8CEE530E-C08D-4BD1-B908-8EBBCEEAD1CD@FreeBSD.org> Date: Tue, 15 Dec 2015 23:58:09 +0100 Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <1016D8B2-F850-44B9-B773-632BD9ABC95D@FreeBSD.org> References: <201512151602.tBFG2BTX089543@repo.freebsd.org> <8CEE530E-C08D-4BD1-B908-8EBBCEEAD1CD@FreeBSD.org> To: Steven Hartland X-Mailer: Apple Mail (2.3112) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2015 22:58:15 -0000 > On 15 Dec 2015, at 23:15, Kristof Provost wrote: > Based on the arp_announce() in the backtrace this commit looks like a = possible cause. I see this in arp_announce():=20 KP: arp_announce() ifp->if_addr =3D 0 So that explains why we panic in 'lladdr =3D IF_LLADDR(ifp);=E2=80=99. I=E2=80=99ve done a very quick hack: diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 2214542..9b25356 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1246,9 +1246,15 @@ arp_announce(struct ifnet *ifp) } IF_ADDR_RUNLOCK(ifp); - lladdr =3D IF_LLADDR(ifp); - for (i =3D 0; i < cnt; i++) { - arp_announce_addr(ifp, head + i, lladdr); + printf("KP: %s() ifp =3D %p\n", __FUNCTION__, ifp); + printf("KP: %s() ifp->if_addr =3D %p\n", __FUNCTION__, = ifp->if_addr); + + if (ifp->if_addr) { + printf("KP: %s() ifp->if_addr->ifa_addr =3D %p\n", = __FUNCTION__, ifp->if_addr->ifa_addr); + lladdr =3D IF_LLADDR(ifp); + for (i =3D 0; i < cnt; i++) { + arp_announce_addr(ifp, head + i, lladdr); + } } free(head, M_TEMP); } With this patch the device boots. I haven=E2=80=99t been able to verify = if everything works because of a different issue ("Shared object = "lib80211.so.1" not found, required by =E2=80=9Cifconfig=E2=80=9D=E2=80=9D= , no doubt just a small problem with the freebsd-wifi-build scripts). Regards, Kristof=