Account for the main process stack being one page below the highest
user address when ABI uses shared page. Note that the change is no-op for correctness, since shared page does not fault. The mapping for the shared page is installed at the address space creation, the page is unmanaged and its pte/pv entry cannot be reclaimed. Submitted by: Oliver Pinter Review: https://reviews.freebsd.org/D2954 MFC after: 1 week
This commit is contained in:
parent
40fc1dffc3
commit
be930a2021
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285046
@ -3640,7 +3640,8 @@ vm_map_growstack(struct proc *p, vm_offset_t addr)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user