diff options
author | emaste <emaste@FreeBSD.org> | 2008-08-13 17:32:48 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2008-08-13 17:32:48 +0000 |
commit | b30356b6341e44951a929ded0a50e3543f344e6b (patch) | |
tree | d3cdb7ee6922fa70ce4fa981ef0986b1593b888e /sys/vm | |
parent | 3c198486dc571326bb7245d03480f1f181bf367f (diff) | |
download | FreeBSD-src-b30356b6341e44951a929ded0a50e3543f344e6b.zip FreeBSD-src-b30356b6341e44951a929ded0a50e3543f344e6b.tar.gz |
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
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/redzone.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/redzone.c b/sys/vm/redzone.c index b3e5c88..fc4d955 100644 --- a/sys/vm/redzone.c +++ b/sys/vm/redzone.c @@ -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) |