With CONFIG_ARM64_BTI_KERNEL, which is the default with clang before 21, the JIT emits a BTI J landing pad between the tail call counter setup and the push of the callee-saved registers. The arm64 expectations of the "Private stack, exception in main prog" test want the push right after the setup, so the test fails: WRONG LINE SUBSTR: ' stp x19, x20, [sp, #-0x10]!' expecting match at line 9, actual match is at line 10 Let the expectation skip lines between the two, as other tests in the same file already do. Fixes: e9f545d0d336 ("selftests/bpf: Enable private stack tests for arm64") Signed-off-by: Daniel Borkmann --- tools/testing/selftests/bpf/progs/verifier_private_stack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/progs/verifier_private_stack.c b/tools/testing/selftests/bpf/progs/verifier_private_stack.c index 0ce07bf6b566..e7f410a74a21 100644 --- a/tools/testing/selftests/bpf/progs/verifier_private_stack.c +++ b/tools/testing/selftests/bpf/progs/verifier_private_stack.c @@ -286,6 +286,7 @@ __jited(" stp x29, x30, [sp, #-0x10]!") __jited(" mov x29, sp") __jited(" stp xzr, x26, [sp, #-0x10]!") __jited(" mov x26, sp") +__jited("...") __jited(" stp x19, x20, [sp, #-0x10]!") __jited(" stp x21, x22, [sp, #-0x10]!") __jited(" stp x23, x24, [sp, #-0x10]!") -- 2.43.0