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

Jan Stancek jstancek@redhat.com
Mon Jul 17 11:43:19 CEST 2017



----- Original Message -----
> 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?

Yes.

On side note, I also want a testcase in LTP where we on purpose keep
expanding stack until it hits existing mapping. 


More information about the ltp mailing list