]> Gentwo Git Trees - linux/.git/commit
bpf: Add missing checks to avoid verbose verifier log
authorEduard Zingerman <eddyz87@gmail.com>
Fri, 14 Nov 2025 20:05:42 +0000 (12:05 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 14 Nov 2025 21:29:12 +0000 (13:29 -0800)
commite5d2e34e726bb657f56f9374ade194828c7d379a
tree2e33419301c8cf79b95b03ee9c13b894fa319068
parentc1da3df7191f1b4df9256bcd30d78f78201e1d17
bpf: Add missing checks to avoid verbose verifier log

There are a few places where log level is not checked before calling
"verbose()". This forces programs working only at
BPF_LOG_LEVEL_STATS (e.g. veristat) to allocate unnecessarily large
log buffers. Add missing checks.

Reported-by: Emil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20251114200542.912386-1-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c