linux-xiaomi-chiron/tools/testing/selftests/powerpc/security
Thadeu Lima de Souza Cascardo 3c42e95420 selftests/powerpc/spectre_v2: Return skip code when miss_percent is high
A mis-match between reported and actual mitigation is not restricted to the
Vulnerable case. The guest might also report the mitigation as "Software
count cache flush" and the host will still mitigate with branch cache
disabled.

So, instead of skipping depending on the detected mitigation, simply skip
whenever the detected miss_percent is the expected one for a fully
mitigated system, that is, above 95%.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211207130557.40566-1-cascardo@canonical.com
2021-12-09 22:41:21 +11:00
..
.gitignore selftests/powerpc: update .gitignore 2020-12-04 01:01:21 +11:00
branch_loops.S
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: Use date instead of EPOCHSECONDS in mitigation-patching.sh 2021-10-27 22:34:02 +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