[LTP] [PATCH] syscalls/bpf: auto bump RLIMIT_MEMLOCK

Jan Stancek jstancek@redhat.com
Thu Sep 26 14:29:10 CEST 2019



----- Original Message -----
> Hi!
> > eBPF tests may fail (-EPERM) if max locked memory limit is too low.
> > User-space tools such as perf started increasing MELOCK limit to
> > avoid this problem.
> > 
> > LTP follows same approach and will attempt to raise RLIMIT_MEMLOCK
> > if possible, otherwise prints an info message.
> > 
> > Link: http://lists.linux.it/pipermail/ltp/2019-August/013349.html
> > Link: https://lkml.org/lkml/2019/7/17/714
> > Signed-off-by: Jan Stancek <jstancek@redhat.com>
> 
> Looks good, acked.

Thanks, pushed with typo above fixed: s/MELOCK/MEMLOCK/.

> 
> Also have you had a look at the eBPF regression test?
> 
> Do you mind if I push that before the release (with added call to adjust
> the memlock limit)?

If you mean "Regression test for 64bit arithmetic", I think that's OK for release.

> 
> --
> Cyril Hrubis
> chrubis@suse.cz
> 


More information about the ltp mailing list