Page MenuHomeFreeBSD

t_setrlimit: Adjust resource limit to 20M.
Needs ReviewPublic

Authored by dgr_semihalf.com on Thu, Nov 25, 9:00 AM.

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
R10 FreeBSD src repository
Lint
Lint Skipped
Unit
Unit Tests Skipped