19059a13ed
processes under 64-bit kernels). Previously, each 32-bit process overwrote its resource limits at exec() time. The problem with this approach is that the new limits affect all child processes of the 32-bit process, including if the child process forks and execs a 64-bit process. To fix this, don't ovewrite the resource limits during exec(). Instead, sv_fixlimits() is now replaced with a different function sv_fixlimit() which asks the ABI to sanitize a single resource limit. We then use this when querying and setting resource limits. Thus, if a 32-bit process sets a limit, then that new limit will be inherited by future children. However, if the 32-bit process doesn't change a limit, then a future 64-bit child will see the "full" 64-bit limit rather than the 32-bit limit. MFC is tentative since it will break the ABI of old linux.ko modules (no other modules are affected). MFC after: 1 week |
||
---|---|---|
.. | ||
linux32_dummy.c | ||
linux32_genassym.c | ||
linux32_ipc64.h | ||
linux32_locore.s | ||
linux32_machdep.c | ||
linux32_proto.h | ||
linux32_syscall.h | ||
linux32_sysent.c | ||
linux32_sysvec.c | ||
linux.h | ||
Makefile | ||
syscalls.conf | ||
syscalls.master |