]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: clarify a misleading verifier error message
authorAndrea Terzolo <andreaterzolo3@gmail.com>
Tue, 18 Mar 2025 08:35:45 +0000 (09:35 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Mar 2025 02:11:23 +0000 (19:11 -0700)
commita2598045ead99b51b00e81d46560757b9a95bd84
tree0eb3c99ebc1137f3233d7284075ca13fb1bf5368
parent6ca21620b475e9d359c80a5db9ede7ce4abc4d03
bpf: clarify a misleading verifier error message

The current verifier error message states that tail_calls are not
allowed in non-JITed programs with BPF-to-BPF calls. While this is
accurate, it is not the only scenario where this restriction applies.
Some architectures do not support this feature combination even when
programs are JITed. This update improves the error message to better
reflect these limitations.

Suggested-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
Acked-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Link: https://lore.kernel.org/r/20250318083551.8192-1-andreaterzolo3@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c