linux/tools/testing/selftests/arm64/abi
Jinjie Ruan eb78ef9cf7 kselftest/arm64: Fix abi test compilation errors
The arm64 ABI selftests fail to compile due to missing include paths
for kernel headers, causing errors like incomplete type struct sock_filter
and implicit BPF macro declarations.

Add $(KHDR_INCLUDES) and -I$(top_srcdir)/tools/include to CFLAGS
to resolve the header search path. Also remove the hardcoded __NR_write
macro and include <asm/unistd.h> to obtain the correct syscall number.

Fixes: 21e37da120 ("kselftest/arm64: Add testcase for SECCOMP_RET_TRACE orig_x0 bypass")
Fixes: 2fcbc4adf9 ("kselftest/arm64: Add seccomp ptrace x0 bypass test")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202608021842.jp6IBrFi-lkp@intel.com/
Suggested-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Tested-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Will Deacon <will@kernel.org>
2026-08-06 13:13:00 +00:00
..
.gitignore kselftest/arm64: Add testcase for SECCOMP_RET_TRACE orig_x0 bypass 2026-08-02 09:50:52 +00:00
hwcap.c kselftest/arm64: Add 2025 dpISA coverage to hwcaps 2026-05-19 13:58:33 +01:00
Makefile kselftest/arm64: Fix abi test compilation errors 2026-08-06 13:13:00 +00:00
ptrace.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
seccomp_ptrace_x0_bypass.c kselftest/arm64: Fix abi test compilation errors 2026-08-06 13:13:00 +00:00
seccomp_ret_trace_x0_bypass.c kselftest/arm64: Fix abi test compilation errors 2026-08-06 13:13:00 +00:00
syscall-abi-asm.S kselftest/arm64: abi: fix SVCR detection 2024-12-13 14:59:37 +00:00
syscall-abi.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
syscall-abi.h kselftest/arm64: Add SME support to syscall ABI test 2022-04-28 17:57:12 +01:00
tpidr2.c kselftest/arm64: Use syscall() macro over nolibc my_syscall() 2026-01-22 11:21:09 +00:00