diff options
author | kib <kib@FreeBSD.org> | 2015-08-05 07:29:59 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-08-05 07:29:59 +0000 |
commit | 6034a6b38ac73223cc59c767070f87e29c9f06cb (patch) | |
tree | 32801814732023ca610bd8987f96d2a839426bcb | |
parent | 9428730d60c2668836c55e3ba688233695b2ddad (diff) | |
download | FreeBSD-src-6034a6b38ac73223cc59c767070f87e29c9f06cb.zip FreeBSD-src-6034a6b38ac73223cc59c767070f87e29c9f06cb.tar.gz |
MFC r285046:
Account for the main process stack being one page below the highest
user address when ABI uses shared page.
-rw-r--r-- | sys/vm/vm_map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 275036a..8493ee3 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -3657,7 +3657,8 @@ Retry: return (KERN_NO_SPACE); } - is_procstack = (addr >= (vm_offset_t)vm->vm_maxsaddr) ? 1 : 0; + is_procstack = (addr >= (vm_offset_t)vm->vm_maxsaddr && + addr < (vm_offset_t)p->p_sysent->sv_usrstack) ? 1 : 0; /* * If this is the main process stack, see if we're over the stack |