With CONFIG_ARM64_BTI_KERNEL, the default for kernels built with clang before 21, the JIT emits the BTI J landing pad for tail calls into a main program 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 counter setup and fail on such a kernel: 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 the tests of the same file do elsewhere. 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 3d9994a52464..8fe300e52760 100644 --- a/tools/testing/selftests/bpf/progs/verifier_private_stack.c +++ b/tools/testing/selftests/bpf/progs/verifier_private_stack.c @@ -212,6 +212,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