From hsu@clinet.fi  Sun Apr 28 22:18:27 1996
Received: from hauki.clinet.fi (root@hauki.clinet.fi [194.100.0.1])
          by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id WAA22141
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Apr 1996 22:18:23 -0700 (PDT)
Received: from katiska.clinet.fi (root@katiska.clinet.fi [194.100.0.4]) by hauki.clinet.fi (8.7.5/8.6.4) with ESMTP id IAA23498 for <FreeBSD-gnats-submit@freebsd.org>; Mon, 29 Apr 1996 08:17:40 +0300 (EET DST)
Received: (root@localhost) by katiska.clinet.fi (8.7.5/8.6.4) id IAA06816; Mon, 29 Apr 1996 08:17:38 +0300 (EET DST)
Message-Id: <199604290517.IAA06816@katiska.clinet.fi>
Date: Mon, 29 Apr 1996 08:17:38 +0300 (EET DST)
From: Heikki Suonsivu <hsu@clinet.fi>
Reply-To: hsu@clinet.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: -current panic on boot if DIAGNOSTIC option is used
X-Send-Pr-Version: 3.2

>Number:         1161
>Category:       kern
>Synopsis:       -current panic on boot if DIAGNOSTIC option is used
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 28 22:20:01 PDT 1996
>Closed-Date:    Fri Aug 23 20:44:19 PDT 1996
>Last-Modified:  Fri Aug 23 20:45:38 PDT 1996
>Originator:     Heikki Suonsivu
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
Clinet, Espoo, Finland
>Environment:

	-current from sups 28th and 29th april.  This did not happen with
	-current from 22th april sup.

	kernel config file is

	ftp://ftp.clinet.fi/pub/FreeBSD/crashdumps/CLINETHIDAS 
	(diagnostic option off, turn it on to reproduce this.  The config
	should match a common ide system, and has couple of scsi
	controllers included)

>Description:

	If DIAGNOSTIC option is used, the resulting kernel panics before
	it gets filesystems mounted.  It seems that this happens in pmap
	code.  The fault address is address 0xdeadc142 (something
	uninitialized is accessed?).

>How-To-Repeat:

	Turn DIAGNOSTIC on in your kernel config file. 

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Fri Aug 23 20:44:19 PDT 1996 
State-Changed-Why:  
This was found by Poul-Henning kamp a few weeks ago, the kmem_free() 
code when configured with DIAGNOSTIC was trashing innocent memory.. 
>Unformatted:
