HomeFreeBSD

t_setrlimit: Adjust resource limit to 20M

Description

t_setrlimit: Adjust resource limit to 20M

With ASLR enabled by default, RLIMIT_STACK test fails due to the fact
that default stack gap can be as big as 15M. Because of that the
resource limit of 4M results in test program receiving SIGSEGV
immediately after exiting the setrlimit syscall. Since the idea of this
test is to check if rlim_cur does not extend past rlim_max, adjusting
the resource limit to 20M should not invalidate the test results.

Obtained from: Semihalf
Sponsored by: Alstom Group
Differential revision: https://reviews.freebsd.org/D33116

(cherry picked from commit 4f741801d86089a1c5d631ba1e0f1421cdcf7a7e)

Details

Provenance
dgr_semihalf.comAuthored on Dec 20 2021, 5:27 AM
mwCommitted on Jan 23 2022, 10:09 AM
Differential Revision
D33116: t_setrlimit: Adjust resource limit to 20M.
Parents
rG5b042fcbdff8: Disable PIE for powerpc bootloaders.
Branches
Unknown
Tags
Unknown