linux/tools/testing/selftests/powerpc/security
Michael Ellerman 34f7f79827 selftests/powerpc: Add test of mitigation patching
We recently discovered some of our mitigation patching was not safe
against other CPUs running concurrently.

Add a test which enable/disables all mitigations in a tight loop while
also running some stress load. On an unpatched system this almost always
leads to an oops and panic/reboot, but we also check if the kernel
becomes tainted in case we have a non-fatal oops.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210507064225.1556312-1-mpe@ellerman.id.au
2021-05-17 15:27:47 +10:00
..
.gitignore selftests/powerpc: update .gitignore 2020-12-04 01:01:21 +11:00
branch_loops.S selftests/powerpc: Add a test of spectre_v2 mitigations 2019-10-30 15:43:57 +11:00
entry_flush.c selftests/powerpc: Fix L1D flushing tests for Power10 2021-03-24 14:09:29 +11:00
flush_utils.c selftests/powerpc: Add uaccess flush test 2021-04-23 01:38:03 +10:00
flush_utils.h selftests/powerpc: Add uaccess flush test 2021-04-23 01:38:03 +10:00
Makefile selftests/powerpc: Add test of mitigation patching 2021-05-17 15:27:47 +10:00
mitigation-patching.sh selftests/powerpc: Add test of mitigation patching 2021-05-17 15:27:47 +10:00
rfi_flush.c selftests/powerpc: Fix L1D flushing tests for Power10 2021-03-24 14:09:29 +11:00
spectre_v2.c selftests/powerpc: Skip security tests on older CPUs 2020-09-08 22:24:05 +10:00
uaccess_flush.c selftests/powerpc: Add uaccess flush test 2021-04-23 01:38:03 +10:00