diff options
author | Thadeu Lima de Souza Cascardo <cascardo@canonical.com> | 2020-07-28 12:50:39 -0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-07-29 23:47:52 +1000 |
commit | f3054ffd71b5afd44832b2207e6e90267e1cd2d1 (patch) | |
tree | 30a8fb4ca8444786a7895aaf8582ec711d22fec8 /include/misc | |
parent | b859c95cf4b936b5e8019e7ab68ee2740e609ffd (diff) | |
download | linux-f3054ffd71b5afd44832b2207e6e90267e1cd2d1.tar.gz linux-f3054ffd71b5afd44832b2207e6e90267e1cd2d1.tar.bz2 linux-f3054ffd71b5afd44832b2207e6e90267e1cd2d1.zip |
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
Diffstat (limited to 'include/misc')
0 files changed, 0 insertions, 0 deletions