]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/speculation/mds: fix microcode late loading
authorMihai Carabas <mihai.carabas@oracle.com>
Mon, 8 Apr 2019 10:48:09 +0000 (13:48 +0300)
committerMihai Carabas <mihai.carabas@oracle.com>
Mon, 22 Apr 2019 18:16:20 +0000 (21:16 +0300)
commit9c79b880beb6cf52c6d24173e3d52cf3f38d3da1
treec447ab2a85b9ceec321c0246de65ce7252affedd
parent344e8318182d934622d6ffbdd030c3f0d586ab19
x86/speculation/mds: fix microcode late loading

In the microcode late loading case we have to:
- clear the CPU bugs related to MDS to be re-evaluated
- add proper evaluation of the MDS state and enable mitigation if necessary.

If the user has enforced off or idle mitigation, we keep it. Also if the
microcode fixes the MDS bug, mitigation will be turned off.

Orabug: 29526900
CVE: CVE-2018-12126
CVE: CVE-2018-12130
CVE: CVE-2018-12127

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/kernel/cpu/bugs_64.c
arch/x86/kernel/cpu/microcode/core.c