]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Warn on internal verifier errors
authorPaul Chaignon <paul.chaignon@gmail.com>
Tue, 1 Jul 2025 18:36:15 +0000 (20:36 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 1 Jul 2025 19:38:30 +0000 (12:38 -0700)
commit0df1a55afa832f463f9ad68ddc5de92230f1bc8a
treece3bce94ef1e187d6849bb85a3195db412e254d3
parent26d0e5324677dc0acce4c0fda52316154a1d689e
bpf: Warn on internal verifier errors

This patch is a follow up to commit 1cb0f56d9618 ("bpf: WARN_ONCE on
verifier bugs"). It generalizes the use of verifier_error throughout
the verifier, in particular for logs previously marked "verifier
internal error". As a consequence, all of those verifier bugs will now
come with a kernel warning (under CONFIG_DBEUG_KERNEL) detectable by
fuzzers.

While at it, some error messages that were too generic (ex., "bpf
verifier is misconfigured") have been reworded.

Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Link: https://lore.kernel.org/r/aGQqnzMyeagzgkCK@Tunnel
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c