]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Add a test for execute-only memory
authorNicholas Miehlbradt <nicholas@linux.ibm.com>
Wed, 17 Aug 2022 05:06:40 +0000 (15:06 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 26 Aug 2022 01:02:21 +0000 (11:02 +1000)
commit7591be9b4b2957538e4e66ae026deeb3ff46e89c
tree2afb3c1e4a638a518367ac71da2d4d05c562df9f
parent1ae105b49f87850e7dc2a523c83a87d258e5c09e
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
tools/testing/selftests/powerpc/mm/Makefile
tools/testing/selftests/powerpc/mm/exec_prot.c [new file with mode: 0644]