summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2026-09-25 08:09:44 +0200
committerAlexei Starovoitov <ast@kernel.org>2026-09-25 17:29:51 +0000
commitb9f30c763c7ecec41fd3f71b8a5a44971c3fddbf (patch)
tree0979ce9d8d40da50dcbf2dc040e51955b862702c /include
parent7af653d4ebf8e2e17e288715cd67ccf7845f4631 (diff)
bpf: Check callx operand before requiring JIT support
check_func_callx() requires a JIT with callx support before it looks at the register operand. On an architecture whose JIT doesn't support callx, or when the JIT is disabled, every callx is thus rejected with "JIT doesn't support callx" or "JIT is required to use callx", including one whose operand is invalid. The "invalid call insn1" test_verifier test expects "R0 !read_ok" for callx of an uninitialized register and fails on s390x: #79/u invalid call insn1 FAIL Unexpected error message! EXP: R0 !read_ok RES: JIT doesn't support callx Validate the operand first and require the JIT only for a callx that is otherwise valid. An invalid callx is then rejected with the same message on every architecture. This fixes various errors when running selftests on JITs where callx is unsupported for now. Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20260925060945.1993547-1-memxor@gmail.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions