]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/microcode: add SPEC_CTRL_SSBD to x86_spec_ctrl_mask on late loading.
authorMihai Carabas <mihai.carabas@oracle.com>
Wed, 3 Apr 2019 21:50:13 +0000 (23:50 +0200)
committerBrian Maly <brian.maly@oracle.com>
Wed, 12 Jun 2019 15:23:07 +0000 (11:23 -0400)
commit412851b6f04095161b18dd6efdb44dafca1bca5e
tree1c3e36e2cd3a3f7d07c6d7c2df04ccbb8d82bff2
parent75d91423f4af9c351d2d5541fe96e3ba53d07d17
x86/microcode: add SPEC_CTRL_SSBD to x86_spec_ctrl_mask on late loading.

This is required so that we don't filter out the SPEC_CTRL_SSBD bit from
what the guest is trying to write to the MSR_IA32_SPEC_CTRL in
x86_virt_spec_ctrl().  Failure to do would make it look like the guest
correctly enabled SSBD when it did not, as reading back the MSR from the
guest would not show the bit was filtered out, giving a false sense of
security.

Orabug: 29642139

Reported-by: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/kernel/cpu/bugs_64.c