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)
Thu, Sep 14, 8:07 PM
Unknown Object (File)
Aug 24 2023, 6:08 PM
Unknown Object (File)
Jul 8 2023, 10:43 PM
Unknown Object (File)
Jul 8 2023, 10:42 PM
Unknown Object (File)
Jul 8 2023, 10:41 PM
Unknown Object (File)
Jul 4 2023, 1:41 PM
Unknown Object (File)
Jun 23 2023, 5:02 PM
Unknown Object (File)
May 16 2023, 4: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 Not Applicable
Unit
Tests Not Applicable