cvs commit: src/sys/amd64/linux32 linux32_sysvec.c
src/sys/compat/ia32
ia32_sysvec.c src/sys/kern kern_exec.c kern_resource.c src/sys/sys
sysent.h
John Baldwin
jhb at FreeBSD.org
Thu Jul 12 18:01:31 UTC 2007
jhb 2007-07-12 18:01:31 UTC
FreeBSD src repository
Modified files:
sys/amd64/linux32 linux32_sysvec.c
sys/compat/ia32 ia32_sysvec.c
sys/kern kern_exec.c kern_resource.c
sys/sys sysent.h
Log:
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)
Revision Changes Path
1.30 +2 -1 src/sys/amd64/linux32/linux32_sysvec.c
1.26 +9 -8 src/sys/compat/ia32/ia32_sysvec.c
1.307 +9 -4 src/sys/kern/kern_exec.c
1.179 +12 -8 src/sys/kern/kern_resource.c
1.55 +1 -0 src/sys/sys/sysent.h
More information about the cvs-src
mailing list