On Mon, Nov 19, 2018 at 4:52 PM Stanislav Fomichev <s...@google.com> wrote: > > [Recent commit 23499442c319 ("bpf: libbpf: retry map creation without > the name") fixed this issue for maps, let's do the same for programs.] > > Since commit 88cda1c9da02 ("bpf: libbpf: Provide basic API support > to specify BPF obj name"), libbpf unconditionally sets bpf_attr->name > for programs. Pre v4.14 kernels don't know about programs names and > return an error about unexpected non-zero data. Retry sys_bpf without > a program name to cover older kernels. > > Signed-off-by: Stanislav Fomichev <s...@google.com>
Acked-by: Yonghong Song <y...@fb.com>