1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/selftests/powerpc/security
Sachin Sant 1867859184 selftests/powerpc: skip tests for unavailable mitigations.
Mitigation patching test iterates over a set of mitigations irrespective
of whether a certain mitigation is supported/available in the kernel.
This causes following messages on a kernel where some mitigations
are unavailable:

  Spawned threads enabling/disabling mitigations ...
  cat: entry_flush: No such file or directory
  cat: uaccess_flush: No such file or directory
  Waiting for timeout ...
  OK

This patch adds a check for available mitigations in the kernel.

Reported-by: Nageswara R Sastry <rnsastry@linux.ibm.com>
Signed-off-by: Sachin Sant <sachinp@linux.vnet.ibm.com>
Tested-by: Nageswara R Sastry <rnsastry@linux.ibm.com>
Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/163941374362.36967.18016981579099073379.sendpatchset@1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa
2021-12-16 21:31:46 +11: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: skip tests for unavailable mitigations. 2021-12-16 21:31:46 +11: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/spectre_v2: Return skip code when miss_percent is high 2021-12-09 22:41:21 +11:00
uaccess_flush.c selftests/powerpc: Add uaccess flush test 2021-04-23 01:38:03 +10:00