]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Drop unhelpful "program too large" guess
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 26 Apr 2022 00:45:03 +0000 (17:45 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 26 Apr 2022 22:41:45 +0000 (15:41 -0700)
commite76f9f4a4d6b497891a0b6a8875d279e9a63d94a
tree4decce1af3e2f15077de5a15097e4153dae7cc87
parentd80de6dc2d95bc7b3bf70ceab7242c599855c57a
libbpf: Drop unhelpful "program too large" guess

libbpf pretends it knows actual limit of BPF program instructions based
on UAPI headers it compiled with. There is neither any guarantee that
UAPI headers match host kernel, nor BPF verifier actually uses
BPF_MAXINSNS constant anymore. Just drop unhelpful "guess", BPF verifier
will emit actual reason for failure in its logs anyways.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220426004511.2691730-3-andrii@kernel.org
tools/lib/bpf/libbpf.c