bpf: libbpf: retry loading program on EAGAIN
authorLorenz Bauer <lmb@cloudflare.com>
Tue, 8 Jan 2019 13:58:00 +0000 (13:58 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 15 Jan 2019 20:35:34 +0000 (21:35 +0100)
commit86edaed379632e216a97e6bcef9f498b64522d50
tree3ee447bf561a7a901ed4c65e11820b7c757f3c36
parent6bf3bbe1f4d4cf405e3c2bf07bbdff56d3223ec8
bpf: libbpf: retry loading program on EAGAIN

Commit c3494801cd17 ("bpf: check pending signals while
verifying programs") makes it possible for the BPF_PROG_LOAD
to fail with EAGAIN. Retry unconditionally in this case.

Fixes: c3494801cd17 ("bpf: check pending signals while verifying programs")
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/bpf.c