mirror-linux/tools/testing/selftests/x86
Rick Edgecombe 6ea7bb00c1 selftests/x86: Update map_shadow_stack syscall nr
Shadow stack's selftest utilizes the map_shadow_stack syscall. The
syscall is new with the feature, but the selftests cannot automatically
find the headers for the kernel source tree they are located in. This
resulted in the shadow stack test failing to build until the brand new
headers were installed.

To avoid this, a copy of the new uapi defines needed by the test were
included in the selftest (see link for discussion). When shadow stack was
merged the syscall number was changed, but the copy in the selftest was
not updated.

So update the copy of the syscall number define used when the required
headers are not installed, to have the final syscall number from the
merge.

Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/lkml/Y%2FijdXoTAATt0+Ct@zn.tnic/
Link: https://lore.kernel.org/r/20230901181652.2583861-1-rick.p.edgecombe@intel.com
Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
Fixes: df57721f9a ("Merge tag 'x86_shstk_for_6.6-rc1' of [...]")
2023-09-01 23:34:13 +02:00
..
.gitignore
Makefile selftests/x86: Add shadow stack test 2023-08-02 15:01:51 -07:00
amx.c selftests/x86/amx: Add a ptrace test 2023-03-22 11:00:49 -07:00
check_cc.sh selftests/x86: Add validity check and allow field splitting 2022-02-17 11:55:17 -08:00
check_initial_reg_state.c
corrupt_xstate_header.c selftests/x86/corrupt_xstate_header: Use provided __cpuid_count() macro 2022-04-25 15:13:03 -06:00
entry_from_vm86.c
fsgsbase.c
fsgsbase_restore.c
helpers.h
ioperm.c
iopl.c selftests/x86/iopl: Adjust to the faked iopl CLI/STI usage 2021-10-30 23:18:04 +02:00
lam.c selftests/x86/lam: Add test cases for LAM vs thread creation 2023-03-16 13:08:41 -07:00
ldt_gdt.c
mov_ss_trap.c
ptrace_syscall.c
raw_syscall_helper_32.S
sigaltstack.c
sigreturn.c
single_step_syscall.c
syscall_arg_fault.c
syscall_nt.c
syscall_numbering.c
sysret_rip.c
sysret_ss_attrs.c
test_FCMOV.c
test_FCOMI.c
test_FISTTP.c
test_mremap_vdso.c
test_shadow_stack.c selftests/x86: Update map_shadow_stack syscall nr 2023-09-01 23:34:13 +02:00
test_syscall_vdso.c
test_vsyscall.c selftests: Emit a warning if getcpu() is missing on 32bit 2023-02-06 15:48:54 +01:00
thunks.S
thunks_32.S
trivial_32bit_program.c
trivial_64bit_program.c
trivial_program.c
unwind_vdso.c
vdso_restorer.c