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)
Sep 30 2024, 3:41 AM
Unknown Object (File)
Sep 27 2024, 7:00 AM
Unknown Object (File)
Sep 25 2024, 2:55 PM
Unknown Object (File)
Sep 25 2024, 2:55 PM
Unknown Object (File)
Sep 25 2024, 2:54 PM
Unknown Object (File)
Sep 25 2024, 2:44 PM
Unknown Object (File)
Sep 23 2024, 2:34 PM
Unknown Object (File)
Sep 23 2024, 12:22 PM
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 Skipped
Unit
Tests Skipped