aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2023-05-16 18:04:09 +0000
committerAlexei Starovoitov <[email protected]>2023-05-17 05:34:50 +0000
commitcff36398bd4c7d322d424433db437f3c3391c491 (patch)
tree6f55e8e563f8fd60529100561da0d0a8308a63e0 /tools/bpf/bpftool/prog.c
parentMerge branch 'seltests/xsk: prepare for AF_XDP multi-buffer testing' (diff)
downloadkernel-cff36398bd4c7d322d424433db437f3c3391c491.tar.gz
kernel-cff36398bd4c7d322d424433db437f3c3391c491.zip
bpf: drop unnecessary user-triggerable WARN_ONCE in verifierl log
It's trivial for user to trigger "verifier log line truncated" warning, as verifier has a fixed-sized buffer of 1024 bytes (as of now), and there are at least two pieces of user-provided information that can be output through this buffer, and both can be arbitrarily sized by user: - BTF names; - BTF.ext source code lines strings. Verifier log buffer should be properly sized for typical verifier state output. But it's sort-of expected that this buffer won't be long enough in some circumstances. So let's drop the check. In any case code will work correctly, at worst truncating a part of a single line output. Reported-by: [email protected] Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions