diff options
author | jhb <jhb@FreeBSD.org> | 2007-07-12 18:01:31 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-07-12 18:01:31 +0000 |
commit | ef42e8706be34f667d7c85b11f408bec22cb3b77 (patch) | |
tree | c78cff16168bf26e653ac32e1c954ba6ed15af12 /contrib/diff/lib/prepargs.h | |
parent | 77c677502e8fa12be84a874b37a001e2ee7f53a4 (diff) | |
download | FreeBSD-src-ef42e8706be34f667d7c85b11f408bec22cb3b77.zip FreeBSD-src-ef42e8706be34f667d7c85b11f408bec22cb3b77.tar.gz |
Fix a couple of issues with the stack limit for 32-bit processes on 64-bit
kernels exposed by the recent fixes to resource limits for 32-bit processes
on 64-bit kernels:
- Let ABIs expose their maximum stack size via a new pointer in sysentvec
and use that in preference to maxssiz during exec() rather than always
using maxssiz for all processses.
- Apply the ABI's limit fixup to the previous stack size when adjusting
RLIMIT_STACK to determine if the existing mapping for the stack needs to
be grown or shrunk (as well as how much it should be grown or shrunk).
Approved by: re (kensmith)
Diffstat (limited to 'contrib/diff/lib/prepargs.h')
0 files changed, 0 insertions, 0 deletions