Re: Panic _at_r251745; i386, early in boot sequence

From: David Wolfskill <david_at_catwhisker.org>
Date: Fri, 14 Jun 2013 10:24:16 -0700
On Fri, Jun 14, 2013 at 09:35:20AM -0700, David Wolfskill wrote:
> Here's a hand-transcribed copy of the backtrace:
> 
> ...
> Timecounters tick every 1.000 msec
> panic: curvnet is NULL
> cpuid = 0
> ....

From 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:

...
Modified: head/sys/kern/kern_hhook.c
==============================================================================
--- 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)
...
_at__at_ -270,14 +264,15 _at__at_ hhook_head_register(int32_t hhook_type, 
 	} else
 		refcount_init(&tmphhh->hhh_refcount, 0);
 
+	HHHLIST_LOCK();
 	if (flags & HHOOK_HEADISINVNET) {
 		tmphhh->hhh_flags |= 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 != NULL, ("curvnet is NULL"));
+		tmphhh->hhh_vid = (uintptr_t)curvnet;
+		LIST_INSERT_HEAD(&V_hhook_vhead_list, tmphhh, hhh_vnext);
 	}
+	LIST_INSERT_HEAD(&hhook_head_list, tmphhh, hhh_next);
+	HHHLIST_UNLOCK();
 
 	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
-- 
David H. Wolfskill				david_at_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.

Received on Fri Jun 14 2013 - 15:24:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:38 UTC