linux/tools/testing/selftests/x86
Jeff Xu 7b0141daf3 selftests: x86: test_mremap_vdso: skip if vdso is msealed
Add code to detect if the vdso is memory sealed, skip the test if it is.

Link: https://lkml.kernel.org/r/20250305021711.3867874-3-jeffxu@google.com
Signed-off-by: Jeff Xu <jeffxu@chromium.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Cc: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Andrei Vagin <avagin@gmail.com>
Cc: Anna-Maria Behnsen <anna-maria@linutronix.de>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Benjamin Berg <benjamin@sipsolutions.net>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: David Rientjes <rientjes@google.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Elliot Hughes <enh@google.com>
Cc: Florian Faineli <f.fainelli@gmail.com>
Cc: Greg Ungerer <gerg@kernel.org>
Cc: Guenter Roeck <groeck@chromium.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Helge Deller <deller@gmx.de>
Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jann Horn <jannh@google.com>
Cc: Jason A. Donenfeld <jason@zx2c4.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Jorge Lucangeli Obes <jorgelo@chromium.org>
Cc: Linus Waleij <linus.walleij@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Matthew Wilcow (Oracle) <willy@infradead.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Miguel Ojeda <ojeda@kernel.org>
Cc: Mike Rapoport <mike.rapoport@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Pedro Falcato <pedro.falcato@gmail.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Stephen Röttger <sroettger@google.com>
Cc: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-04-01 15:17:15 -07:00
..
.gitignore
Makefile selftests/x86/avx: Add AVX tests 2025-02-26 13:05:30 +01:00
amx.c selftests/x86/xstate: Consolidate test invocations into a single entry 2025-02-26 13:05:29 +01:00
avx.c selftests/x86/avx: Add AVX tests 2025-02-26 13:05:30 +01:00
check_cc.sh
check_initial_reg_state.c
clang_helpers_32.S selftests/x86: build fsgsbase_restore.c with clang 2024-07-11 11:23:55 -06:00
clang_helpers_64.S selftests/x86: build sysret_rip.c with clang 2024-07-11 11:23:55 -06:00
corrupt_xstate_header.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
entry_from_vm86.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
fsgsbase.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
fsgsbase_restore.c selftests/x86: build fsgsbase_restore.c with clang 2024-07-11 11:23:55 -06:00
helpers.h selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
ioperm.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
iopl.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
lam.c Merge branch 'x86/cpu' into x86/asm, to pick up dependent commits 2025-03-04 11:19:21 +01:00
ldt_gdt.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
mov_ss_trap.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
nx_stack.c selftests/x86/mm: Add new test that userspace stack is in fact NX 2023-10-03 21:00:45 +02:00
ptrace_syscall.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
raw_syscall_helper_32.S
sigaltstack.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
sigreturn.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
single_step_syscall.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
srso.c Documentation/srso: Document a method for checking safe RET operates properly 2024-08-27 09:16:35 +02:00
syscall_arg_fault.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
syscall_nt.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
syscall_numbering.c selftests/x86/syscall: Fix coccinelle WARNING recommending the use of ARRAY_SIZE() 2025-03-03 12:38:49 +01:00
sysret_rip.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
sysret_ss_attrs.c
test_FCMOV.c
test_FCOMI.c
test_FISTTP.c selftests: x86: test_FISTTP: use fisttps instead of ambiguous fisttp 2024-07-11 11:23:55 -06:00
test_mremap_vdso.c selftests: x86: test_mremap_vdso: skip if vdso is msealed 2025-04-01 15:17:15 -07:00
test_shadow_stack.c selftests/x86: Add return uprobe shadow stack test 2024-06-12 08:44:28 +09:00
test_syscall_vdso.c
test_vsyscall.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
thunks.S
thunks_32.S
trivial_32bit_program.c
trivial_64bit_program.c
trivial_program.c
unwind_vdso.c selftests/x86: Consolidate redundant signal helper functions 2025-02-26 13:05:28 +01:00
vdso_restorer.c selftests/x86: remove (or use) unused variables and functions 2024-07-11 11:23:55 -06:00
xstate.c selftests/x86/xstate: Fix spelling mistake "hader" -> "header" 2025-02-27 10:49:31 +01:00
xstate.h selftests/x86/xstate: Consolidate test invocations into a single entry 2025-02-26 13:05:29 +01:00