From jh@saunalahti.fi  Sun Dec 28 19:15:19 2008
Return-Path: <jh@saunalahti.fi>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 04977106564A
	for <bug-followup@FreeBSD.org>; Sun, 28 Dec 2008 19:15:19 +0000 (UTC)
	(envelope-from jh@saunalahti.fi)
Received: from emh05.mail.saunalahti.fi (emh05.mail.saunalahti.fi [62.142.5.111])
	by mx1.freebsd.org (Postfix) with ESMTP id B94698FC1D
	for <bug-followup@FreeBSD.org>; Sun, 28 Dec 2008 19:15:18 +0000 (UTC)
	(envelope-from jh@saunalahti.fi)
Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95])
	by emh05-2.mail.saunalahti.fi (Postfix) with SMTP id CC5128BDB6;
	Sun, 28 Dec 2008 21:15:17 +0200 (EET)
Received: from emh02.mail.saunalahti.fi ([62.142.5.108])
	by vs3-11.mail.saunalahti.fi ([62.142.5.95])
	with SMTP (gateway) id A07614C6F26; Sun, 28 Dec 2008 21:15:17 +0200
Received: from a91-153-125-115.elisa-laajakaista.fi (a91-153-125-115.elisa-laajakaista.fi [91.153.125.115])
	by emh02.mail.saunalahti.fi (Postfix) with SMTP id 837A42BD48;
	Sun, 28 Dec 2008 21:15:15 +0200 (EET)
Message-Id: <20081228191514.GA777@a91-153-125-115.elisa-laajakaista.fi>
Date: Sun, 28 Dec 2008 21:15:14 +0200
From: Jaakko Heinonen <jh@saunalahti.fi>
To: qj@huawei.com
Cc: bug-followup@FreeBSD.org
Subject: Re: [panic] AMD64 kernel panic if INVARIANTS and DEBUG_MEMGUARD
	DEBUG_REDZONE are enabled

>Number:         129999
>Category:       kern
>Synopsis:       Re: [panic] AMD64 kernel panic if INVARIANTS and DEBUG_MEMGUARD
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 28 19:20:00 UTC 2008
>Closed-Date:    Sun Dec 28 19:22:02 UTC 2008
>Last-Modified:  Sun Dec 28 19:22:02 UTC 2008
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Hi,
 
 This redzone(9) bug has been fixed in head (r181693) but not MFCd to
 RELENG_7.
 
 ------------------------------------------------------------------------
 r181693 | emaste | 2008-08-13 20:32:48 +0300 (Wed, 13 Aug 2008) | 6 lines
 
 Fix REDZONE(9) on amd64 and perhaps other 64 bit targets -- ensure the space
 that redzone adds to the allocation for storing its metadata is at least as
 large as the metadata that it will store there.
 
 Submitted by:   Nima Misaghian
 
 ------------------------------------------------------------------------
 
 You can use this patch on RELENG_7:
 
 --- patch begins here ---
 Index: sys/vm/redzone.c
 ===================================================================
 --- sys/vm/redzone.c	(revision 186539)
 +++ sys/vm/redzone.c	(working copy)
 @@ -54,6 +54,8 @@ static u_long
  redzone_roundup(u_long n)
  {
  
 +	if (n < REDZONE_HSIZE)
 +		n = REDZONE_HSIZE;
  	if (n <= 128)
  		return (128);
  	else if (n <= 256)
 --- patch ends here ---
 
 -- 
 Jaakko
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Dec 28 19:20:40 UTC 2008 
State-Changed-Why:  
Misfiled followup to kern/128744; content migrated. 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Dec 28 19:20:40 UTC 2008 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=129999 
>Unformatted:
 	DEBUG_REDZONE are enabled
