[LTP] [PATCH] syscalls/setrlimit: add setrlimit04

Li Wang liwang@redhat.com
Mon Jul 17 09:50:33 CEST 2017


On Mon, Jul 17, 2017 at 2:50 PM, Jan Stancek <jstancek@redhat.com> wrote:
>
>
> ----- Original Message -----
>> On Fri, Jul 14, 2017 at 7:12 PM, Jan Stancek <jstancek@redhat.com> wrote:
>> > Early patches for stack guard gap caused that gap size was contributing
>> > towards stack limit. This caused failures for new processes (E2BIG) when
>> > ulimit was set to anything lower than size of gap.
> ...
>> > +static struct tst_test test = {
>> > +       .test_all     = test_setrlimit,
>> > +       .forks_child  = 1,
>> > +       .needs_root = 1,
>>
>> seems we need to filter out the suitable kernel:
>>
>> .min_kver = "4.12.0",
>
> Why, shouldn't this work on any kernel version?

My bad. The "Early patches" has been reverted. I mistook this issue in versions.

You are right. please ignore my comments in last mail. :)


Another question come to my mind is that, if a system reboot with
kernel parameter "stack_guard_gap=xxx", this case setrlimit04 still
runs well and getting PASS, right?

-- 
Li Wang
liwang@redhat.com


More information about the ltp mailing list