Page MenuHomeFreeBSD

t_setrlimit: Adjust resource limit to 20M.
ClosedPublic

Authored by dgr_semihalf.com on Nov 25 2021, 9:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 5, 2:52 AM
Unknown Object (File)
Mon, Mar 25, 5:18 PM
Unknown Object (File)
Fri, Mar 22, 7:23 AM
Unknown Object (File)
Mar 10 2024, 6:29 PM
Unknown Object (File)
Mar 7 2024, 9:01 PM
Unknown Object (File)
Mar 7 2024, 9:01 PM
Unknown Object (File)
Mar 7 2024, 8:45 PM
Unknown Object (File)
Feb 18 2024, 8:25 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable