mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 11:34:58 +00:00
This selftest is designed to cover execute-only protections on the Radix MMU but will also work with Hash. The tests are based on those found in pkey_exec_test with modifications to use the generic mprotect() instead of the pkey variants. Signed-off-by: Nicholas Miehlbradt <[email protected]> Signed-off-by: Russell Currey <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
noarg:
|
|
$(MAKE) -C ../
|
|
|
|
TEST_GEN_PROGS := hugetlb_vs_thp_test subpage_prot prot_sao segv_errors wild_bctr \
|
|
large_vm_fork_separation bad_accesses exec_prot pkey_exec_prot \
|
|
pkey_siginfo stack_expansion_signal stack_expansion_ldst \
|
|
large_vm_gpr_corruption
|
|
TEST_PROGS := stress_code_patching.sh
|
|
|
|
TEST_GEN_PROGS_EXTENDED := tlbie_test
|
|
TEST_GEN_FILES := tempfile
|
|
|
|
top_srcdir = ../../../../..
|
|
include ../../lib.mk
|
|
|
|
$(TEST_GEN_PROGS): ../harness.c ../utils.c
|
|
|
|
$(OUTPUT)/prot_sao: ../utils.c
|
|
|
|
$(OUTPUT)/wild_bctr: CFLAGS += -m64
|
|
$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64
|
|
$(OUTPUT)/large_vm_gpr_corruption: CFLAGS += -m64
|
|
$(OUTPUT)/bad_accesses: CFLAGS += -m64
|
|
$(OUTPUT)/exec_prot: CFLAGS += -m64
|
|
$(OUTPUT)/pkey_exec_prot: CFLAGS += -m64
|
|
$(OUTPUT)/pkey_siginfo: CFLAGS += -m64
|
|
|
|
$(OUTPUT)/stack_expansion_signal: ../utils.c ../pmu/lib.c
|
|
|
|
$(OUTPUT)/stack_expansion_ldst: CFLAGS += -fno-stack-protector
|
|
$(OUTPUT)/stack_expansion_ldst: ../utils.c
|
|
|
|
$(OUTPUT)/tempfile:
|
|
dd if=/dev/zero of=$@ bs=64k count=1
|
|
|
|
$(OUTPUT)/tlbie_test: LDLIBS += -lpthread
|
|
$(OUTPUT)/pkey_siginfo: LDLIBS += -lpthread
|