]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/microcode: fix x86_spec_ctrl_mask on late loading.
authorMihai Carabas <mihai.carabas@oracle.com>
Fri, 21 Jun 2019 13:33:30 +0000 (16:33 +0300)
committerBrian Maly <brian.maly@oracle.com>
Wed, 17 Jul 2019 16:31:12 +0000 (12:31 -0400)
commit8eba5296c2cda021f930c57ca6e988bd7065b145
tree056c76a30a8a0ea24145a2252b59f4027be33583
parente8667a7425bbe5a51e30f011df35f88b3c8b573e
x86/microcode: fix x86_spec_ctrl_mask on late loading.

Fixes: d447e92c7d0a ("x86/microcode: add SPEC_CTRL_SSBD to x86_spec_ctrl_mask on late loading.")
This fixes potential hypervisor panic on guest writes to IA32_SPEC_CTRL after
microcode updates. We made available SSBD if we had a bug in the CPU. The
correct approach is to make available SSBD if we have the flag available.

Orabug: 29941248

Reported-by: Jamie Iles <jamie.iles@oracle.com>
Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Jamie Iles <jamie.iles@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/kernel/cpu/bugs_64.c