From nobody@FreeBSD.ORG  Wed Dec 29 09:38:32 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 3434215668; Wed, 29 Dec 1999 09:38:32 -0800 (PST)
Message-Id: <19991229173832.3434215668@hub.freebsd.org>
Date: Wed, 29 Dec 1999 09:38:32 -0800 (PST)
From: rik@cronyx.ru
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: free() fails on contigmalloc() memory
X-Send-Pr-Version: www-1.0

>Number:         15763
>Category:       kern
>Synopsis:       free() fails on contigmalloc() memory
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 29 09:40:00 PST 1999
>Closed-Date:    Mon May 8 19:34:32 PDT 2000
>Last-Modified:  Mon May 08 19:38:21 PDT 2000
>Originator:     Kurakin Roman
>Release:        FreeBSD 3.4-STABLE
>Organization:
Cronyx
>Environment:
FreeBSD hi.cronyx.ru 3.4-STABLE FreeBSD 3.4-STABLE #2: Tue Dec 21
20:05:19 GMT 1999    root@hi.cronyx.ru:/usr/src/sys/compile/RIK i386
>Description:
Memory that was allocated by contigmalloc() causes kernel fault
when attempting to free()
>How-To-Repeat:
void *f;
f = contigmalloc (...);
...
free (f);
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Mon May 8 19:34:32 PDT 2000 
State-Changed-Why:  
Don't do that.  The contigmalloc() function is only meant for limited 
use, typically by drivers at boot time.  The free() function is meant 
to work with malloc() not contigmalloc(). 
>Unformatted:
