Re: [PATCH bpf-next v2] libbpf: fix probe code to return EPERM if encountered

2020-05-06 Thread Eelco Chaudron
On 4 May 2020, at 20:43, Andrii Nakryiko wrote: On Mon, May 4, 2020 at 2:13 AM Eelco Chaudron wrote: When the probe code was failing for any reason ENOTSUP was returned, even if this was due to no having enough lock space. This patch fixes this by returning EPERM to the user application,

Re: [PATCH bpf-next v2] libbpf: fix probe code to return EPERM if encountered

2020-05-05 Thread Andrii Nakryiko
On Tue, May 5, 2020 at 3:07 AM Toke Høiland-Jørgensen wrote: > > Andrii Nakryiko writes: > > > On Mon, May 4, 2020 at 2:13 AM Eelco Chaudron wrote: > >> > >> When the probe code was failing for any reason ENOTSUP was returned, even > >> if this was due to no having enough lock space. This patch

Re: [PATCH bpf-next v2] libbpf: fix probe code to return EPERM if encountered

2020-05-05 Thread Toke Høiland-Jørgensen
Andrii Nakryiko writes: > On Mon, May 4, 2020 at 2:13 AM Eelco Chaudron wrote: >> >> When the probe code was failing for any reason ENOTSUP was returned, even >> if this was due to no having enough lock space. This patch fixes this by >> returning EPERM to the user application, so it can respond

Re: [PATCH bpf-next v2] libbpf: fix probe code to return EPERM if encountered

2020-05-04 Thread Andrii Nakryiko
On Mon, May 4, 2020 at 2:13 AM Eelco Chaudron wrote: > > When the probe code was failing for any reason ENOTSUP was returned, even > if this was due to no having enough lock space. This patch fixes this by > returning EPERM to the user application, so it can respond and increase > the RLIMIT_MEMLO

[PATCH bpf-next v2] libbpf: fix probe code to return EPERM if encountered

2020-05-04 Thread Eelco Chaudron
When the probe code was failing for any reason ENOTSUP was returned, even if this was due to no having enough lock space. This patch fixes this by returning EPERM to the user application, so it can respond and increase the RLIMIT_MEMLOCK size. Signed-off-by: Eelco Chaudron --- v2: Split bpf_objec