]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
t_setrlimit: Adjust resource limit to 20M
authorDawid Gorecki <dgr@semihalf.com>
Mon, 20 Dec 2021 05:27:12 +0000 (06:27 +0100)
committerWojciech Macek <wma@FreeBSD.org>
Mon, 20 Dec 2021 05:28:20 +0000 (06:28 +0100)
commit4f741801d86089a1c5d631ba1e0f1421cdcf7a7e
tree761f60311983a17db2ebc7f0cc303bf1a23c1120
parent18048b6e3cb647f2a18e1e51df1cf86a90fc6802
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
contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c