summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_map.c3
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
OpenPOWER on IntegriCloud