Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/x86/pkeys: move selftests to arch-neutral directory

Patch series "selftests, powerpc, x86: Memory Protection Keys", v19.

Memory protection keys enables an application to protect its address space
from inadvertent access by its own code.

This feature is now enabled on powerpc and has been available since
4.16-rc1. The patches move the selftests to arch neutral directory and
enhance their test coverage.

Tested on powerpc64 and x86_64 (Skylake-SP).

This patch (of 24):

Move selftest files from tools/testing/selftests/x86/ to
tools/testing/selftests/vm/.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Dave Hansen <dave.hansen@intel.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: "Desnes A. Nunes do Rosario" <desnesn@linux.vnet.ibm.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
Cc: Michal Suchanek <msuchanek@suse.de>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Shuah Khan <shuah@kernel.org>
Link: http://lkml.kernel.org/r/14d25194c3e2e652e0047feec4487e269e76e8c9.1585646528.git.sandipan@linux.ibm.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Ram Pai and committed by
Linus Torvalds
804eb646 341a7213

+3 -2
+1
tools/testing/selftests/vm/.gitignore
··· 10 10 mremap_dontunmap 11 11 on-fault-limit 12 12 transhuge-stress 13 + protection_keys 13 14 userfaultfd 14 15 mlock-intersect-test 15 16 mlock-random-test
+1
tools/testing/selftests/vm/Makefile
··· 15 15 TEST_GEN_FILES += map_populate 16 16 TEST_GEN_FILES += mlock-random-test 17 17 TEST_GEN_FILES += mlock2-tests 18 + TEST_GEN_FILES += protection_keys 18 19 TEST_GEN_FILES += mremap_dontunmap 19 20 TEST_GEN_FILES += on-fault-limit 20 21 TEST_GEN_FILES += thuge-gen
-1
tools/testing/selftests/x86/.gitignore
··· 12 12 iopl 13 13 mpx-mini-test 14 14 ioperm 15 - protection_keys 16 15 test_vdso
+1 -1
tools/testing/selftests/x86/Makefile
··· 12 12 13 13 TARGETS_C_BOTHBITS := single_step_syscall sysret_ss_attrs syscall_nt test_mremap_vdso \ 14 14 check_initial_reg_state sigreturn iopl ioperm \ 15 - protection_keys test_vdso test_vsyscall mov_ss_trap \ 15 + test_vdso test_vsyscall mov_ss_trap \ 16 16 syscall_arg_fault 17 17 TARGETS_C_32BIT_ONLY := entry_from_vm86 test_syscall_vdso unwind_vdso \ 18 18 test_FCMOV test_FCOMI test_FISTTP \
tools/testing/selftests/x86/pkey-helpers.h tools/testing/selftests/vm/pkey-helpers.h
tools/testing/selftests/x86/protection_keys.c tools/testing/selftests/vm/protection_keys.c