linux/tools/testing/selftests/powerpc/security
Thadeu Lima de Souza Cascardo 044164b419 selftests/powerpc/spectre_v2: Return skip code when miss_percent is high
[ Upstream commit 3c42e95420 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 10:54:23 +01:00
..
.gitignore selftests/powerpc: entry flush test 2020-11-19 23:47:20 +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-05-19 10:12:54 +02:00
flush_utils.c selftests/powerpc: refactor entry and rfi_flush tests 2020-11-19 23:47:23 +11:00
flush_utils.h selftests/powerpc: Fix L1D flushing tests for Power10 2021-05-19 10:12:54 +02:00
Makefile selftests/powerpc: refactor entry and rfi_flush tests 2020-11-19 23:47:23 +11:00
rfi_flush.c selftests/powerpc: Fix L1D flushing tests for Power10 2021-05-19 10:12:54 +02:00
spectre_v2.c selftests/powerpc/spectre_v2: Return skip code when miss_percent is high 2022-01-27 10:54:23 +01:00