* Handling of EAGAIN from BPF verifier
@ 2019-01-07 15:07 Lorenz Bauer
2019-01-07 21:13 ` Alexei Starovoitov
0 siblings, 1 reply; 2+ messages in thread
From: Lorenz Bauer @ 2019-01-07 15:07 UTC (permalink / raw)
To: Alexei Starovoitov, netdev, Daniel Borkmann
Hi,
Commit "bpf: check pending signals while verifying programs" makes the
bpf syscall return EAGAIN for BPF_PROG_LOAD. How should user space
react to this? The error sounds like it should retry, but I couldn't
find the corresponding code for this in libbpf.
Best
Lorenz
--
Lorenz Bauer | Systems Engineer
25 Lavington St., London SE1 0NZ
www.cloudflare.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Handling of EAGAIN from BPF verifier
2019-01-07 15:07 Handling of EAGAIN from BPF verifier Lorenz Bauer
@ 2019-01-07 21:13 ` Alexei Starovoitov
0 siblings, 0 replies; 2+ messages in thread
From: Alexei Starovoitov @ 2019-01-07 21:13 UTC (permalink / raw)
To: Lorenz Bauer; +Cc: Alexei Starovoitov, netdev, Daniel Borkmann
On Mon, Jan 07, 2019 at 03:07:09PM +0000, Lorenz Bauer wrote:
> Hi,
>
> Commit "bpf: check pending signals while verifying programs" makes the
> bpf syscall return EAGAIN for BPF_PROG_LOAD. How should user space
> react to this? The error sounds like it should retry, but I couldn't
> find the corresponding code for this in libbpf.
since the user process was suspended while loading the loader should retry.
I think libbpf should do it unconditionally in bpf_load_program_xattr().
Patches are welcome :)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-07 21:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-07 15:07 Handling of EAGAIN from BPF verifier Lorenz Bauer
2019-01-07 21:13 ` Alexei Starovoitov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.