linux_dsm_epyc7002/tools/testing/selftests/powerpc
Thadeu Lima de Souza Cascardo f3054ffd71 selftests/powerpc: Return skip code for spectre_v2
When running under older versions of qemu of under newer versions with
old machine types, some security features will not be reported to the
guest. This will lead the guest OS to consider itself Vulnerable to
spectre_v2.

So, spectre_v2 test fails in such cases when the host is mitigated and
miss predictions cannot be detected as expected by the test.

Make it return the skip code instead, for this particular case. We
don't want to miss the case when the test fails and the system reports
as mitigated or not affected. But it is not a problem to miss failures
when the system reports as Vulnerable.

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/20200728155039.401445-1-cascardo@canonical.com
2020-07-29 23:47:52 +10:00
..
alignment selftests/powerpc: Add prefixed loads/stores to alignment_handler test 2020-06-22 14:18:45 +10:00
benchmarks selftests/powerpc: Fix CPU affinity for child process 2020-07-29 22:30:34 +10:00
cache_shape .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
copyloops .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
dscr powerpc updates for 5.7 2020-04-05 11:12:59 -07:00
eeh selftests/powerpc: Squash spurious errors due to device removal 2020-07-29 21:02:11 +10:00
include selftests/powerpc: Add wrapper for gettid 2020-07-29 21:02:10 +10:00
lib treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
math selftests/powerpc: Add FPU denormal test 2020-07-15 12:02:20 +10:00
mm selftests/powerpc: Remove powerpc special cases from stack expansion test 2020-07-29 21:02:12 +10:00
nx-gzip selftests/powerpc: Use proper error code to check fault address 2020-07-15 23:10:17 +10:00
pmu selftests/powerpc: Add test of stack expansion logic 2020-07-29 21:02:11 +10:00
primitives .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
ptrace selftests/powerpc: ptrace-pkey: Don't update expected UAMOR value 2020-07-22 00:01:06 +10:00
scripts treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
security selftests/powerpc: Return skip code for spectre_v2 2020-07-29 23:47:52 +10:00
signal powerpc: Use trap metadata to prevent double restart rather than zeroing trap 2020-05-15 11:58:54 +10:00
stringloops selftests/powerpc: Add test of memcmp at end of page 2020-07-23 17:43:36 +10:00
switch_endian .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
syscalls .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
tm powerpc updates for 5.7 #2 2020-04-09 11:01:42 -07:00
vphn .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
harness.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
Makefile selftests/powerpc: Add NX-GZIP engine compress testcase 2020-04-21 22:51:34 +10:00
utils.c selftests/powerpc: Move Hash MMU check to utilities 2020-06-30 14:37:51 +10:00