aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/mm/exec_prot.c
AgeCommit message (Collapse)AuthorFilesLines
2022-08-26selftests/powerpc: Add a test for execute-only memoryNicholas Miehlbradt1-0/+231
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]