libbpf: Don't enforce unnecessary verifier log restrictions on libbpf side
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 6 Apr 2023 23:41:50 +0000 (16:41 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 11 Apr 2023 16:05:43 +0000 (18:05 +0200)
commite0aee1facccf9f12136600031be4ce21eb810a78
tree6f82d968fd9cad102590270fce23bc20c5751552
parent1216640938035e63bdbd32438e91c9bcc1fd8ee1
libbpf: Don't enforce unnecessary verifier log restrictions on libbpf side

This basically prevents any forward compatibility. And we either way
just return -EINVAL, which would otherwise be returned from bpf()
syscall anyways.

Similarly, drop enforcement of non-NULL log_buf when log_level > 0. This
won't be true anymore soon.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Lorenz Bauer <lmb@isovalent.com>
Link: https://lore.kernel.org/bpf/20230406234205.323208-5-andrii@kernel.org
tools/lib/bpf/bpf.c