Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2009 15:04:06 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org
Subject:   svn commit: r187530 - in stable/6/sys: . vm
Message-ID:  <200901211504.n0LF46BP081009@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed Jan 21 15:04:06 2009
New Revision: 187530
URL: http://svn.freebsd.org/changeset/base/187530

Log:
  MFC r181693:
  
    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.
  
  PR:     kern/128744

Modified:
  stable/6/sys/   (props changed)
  stable/6/sys/vm/redzone.c

Modified: stable/6/sys/vm/redzone.c
==============================================================================
--- stable/6/sys/vm/redzone.c	Wed Jan 21 15:01:36 2009	(r187529)
+++ stable/6/sys/vm/redzone.c	Wed Jan 21 15:04:06 2009	(r187530)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901211504.n0LF46BP081009>