diff options
author | Nicholas Miehlbradt <nicholas@linux.ibm.com> | 2022-08-17 08:06:40 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-08-26 04:02:21 +0300 |
commit | 98acee3f8db451eaab9fbd422e523c228aacf08c (patch) | |
tree | 2afb3c1e4a638a518367ac71da2d4d05c562df9f /arch/powerpc/lib/code-patching.c | |
parent | 395cac7752b905318ae454a8b859d4c190485510 (diff) | |
download | linux-98acee3f8db451eaab9fbd422e523c228aacf08c.tar.xz |
selftests/powerpc: Add a test for execute-only memory
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 <nicholas@linux.ibm.com>
Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220817050640.406017-2-ruscur@russell.cc
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions