From owner-freebsd-current@FreeBSD.ORG Fri Jun 14 17:24:17 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A7B8148E; Fri, 14 Jun 2013 17:24:17 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (m209-73.dsl.rawbw.com [198.144.209.73]) by mx1.freebsd.org (Postfix) with ESMTP id 6AD351DE2; Fri, 14 Jun 2013 17:24:16 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.7/8.14.7) with ESMTP id r5EHOGrf045481; Fri, 14 Jun 2013 10:24:16 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.7/8.14.7/Submit) id r5EHOGPE045480; Fri, 14 Jun 2013 10:24:16 -0700 (PDT) (envelope-from david) Date: Fri, 14 Jun 2013 10:24:16 -0700 From: David Wolfskill To: current@freebsd.org Subject: Re: Panic @r251745; i386, early in boot sequence Message-ID: <20130614172416.GM1369@albert.catwhisker.org> References: <20130614163520.GL1369@albert.catwhisker.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ki8osN6LALoCW/78" Content-Disposition: inline In-Reply-To: <20130614163520.GL1369@albert.catwhisker.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 14 Jun 2013 17:24:17 -0000 --ki8osN6LALoCW/78 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 14, 2013 at 09:35:20AM -0700, David Wolfskill wrote: > Here's a hand-transcribed copy of the backtrace: >=20 > ... > Timecounters tick every 1.000 msec > panic: curvnet is NULL > cpuid =3D 0 > .... =46rom looking at code in commits since yesterday's (successful) build/boot/smoke-test, it appears that the above is something that was exposed by r251732: =2E.. Modified: head/sys/kern/kern_hhook.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- head/sys/kern/kern_hhook.c Fri Jun 14 03:58:52 2013 (r251731) +++ head/sys/kern/kern_hhook.c Fri Jun 14 04:10:34 2013 (r251732) =2E.. @@ -270,14 +264,15 @@ hhook_head_register(int32_t hhook_type,=20 } else refcount_init(&tmphhh->hhh_refcount, 0); =20 + HHHLIST_LOCK(); if (flags & HHOOK_HEADISINVNET) { tmphhh->hhh_flags |=3D HHH_ISINVNET; - HHHLIST_LOCK(); - LIST_INSERT_HEAD(&V_hhook_head_list, tmphhh, hhh_next); - HHHLIST_UNLOCK(); - } else { - /* XXXLAS: Add tmphhh to the non-virtualised list. */ + KASSERT(curvnet !=3D NULL, ("curvnet is NULL")); + tmphhh->hhh_vid =3D (uintptr_t)curvnet; + LIST_INSERT_HEAD(&V_hhook_vhead_list, tmphhh, hhh_vnext); } + LIST_INSERT_HEAD(&hhook_head_list, tmphhh, hhh_next); + HHHLIST_UNLOCK(); =20 return (0); } which is useful to know... but I'm at a bit of a loss to know what to actually *do* about it. It appears that the panic occurs sufficiently early that I don't have a dump device specified. Peace, david --=20 David H. Wolfskill david@catwhisker.org Taliban: Evil men with guns afraid of truth from a 14-year old girl. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --ki8osN6LALoCW/78 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iEYEARECAAYFAlG7Ub8ACgkQmprOCmdXAD3YdgCeJqroPm+3J7xC7FR5kt9h/Dzg EyEAn0rwThRWtS6ua6rINR6bpZIV0EpO =Axs1 -----END PGP SIGNATURE----- --ki8osN6LALoCW/78--