]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d50864b4133c9031b51ca55b9075cf9874eb5a9
tree731e20e403da260fc08c8ef9e5df80869a44a051
parent322eb69a3527130509ee448f271961f36e95aaf1
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]