selftests/powerpc: Add test for execute-disabled pkeys
authorSandipan Das <sandipan@linux.ibm.com>
Thu, 4 Jun 2020 12:56:10 +0000 (18:26 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Jun 2020 04:37:54 +0000 (14:37 +1000)
commit1addb6444791f9e87fce0eb9882ec96a4a76e615
tree731e20e403da260fc08c8ef9e5df80869a44a051
parentc405b738daf9d8e8a5aedfeb6be851681e65e54b
selftests/powerpc: Add test for execute-disabled pkeys

Apart from read and write access, memory protection keys can
also be used for restricting execute permission of pages on
powerpc. This adds a test to verify if the feature works as
expected.

Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200604125610.649668-4-sandipan@linux.ibm.com
tools/testing/selftests/powerpc/mm/.gitignore
tools/testing/selftests/powerpc/mm/Makefile
tools/testing/selftests/powerpc/mm/pkey_exec_prot.c [new file with mode: 0644]