[PATCH] selftests/powerpc: Handle more misreporting cases in spectre_v2
Michael Ellerman
patch-notifications at ellerman.id.au
Tue May 24 21:09:23 AEST 2022
On Tue, 8 Jun 2021 16:48:09 +1000, Russell Currey wrote:
> In commit f3054ffd71b5 ("selftests/powerpc: Return skip code for
> spectre_v2"), the spectre_v2 selftest is updated to be aware of cases
> where the vulnerability status reported in sysfs is incorrect, skipping
> the test instead.
>
> This happens because qemu can misrepresent the mitigation status of the
> host to the guest. If the count cache is disabled in the host, and this
> is correctly reported to the guest, then the guest won't apply
> mitigations. If the guest is then migrated to a new host where
> mitigations are necessary, it is now vulnerable because it has not
> applied mitigations.
>
> [...]
Applied to powerpc/next.
[1/1] selftests/powerpc: Handle more misreporting cases in spectre_v2
https://git.kernel.org/powerpc/c/48482f4dd3432e5e62873bf0f2e254cfb8ce2ac2
cheers
More information about the Linuxppc-dev
mailing list