svn commit: r187530 - in stable/6/sys: . vm
Ed Maste
emaste at FreeBSD.org
Wed Jan 21 07:04:10 PST 2009
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)
More information about the svn-src-stable-6
mailing list