]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/speculation/mds: update mds_mitigation to reflect debugfs configuration
authorMihai Carabas <mihai.carabas@oracle.com>
Fri, 12 Apr 2019 11:20:40 +0000 (14:20 +0300)
committerMihai Carabas <mihai.carabas@oracle.com>
Mon, 22 Apr 2019 18:16:20 +0000 (21:16 +0300)
commit0e17903dae5e39589507b4ebf6bf0fd398729ef8
tree967170755c7727772f0f7271889b0a823bac949d
parent9c79b880beb6cf52c6d24173e3d52cf3f38d3da1
x86/speculation/mds: update mds_mitigation to reflect debugfs configuration

If we enable mds_user_clear, we set mds_mitigation to MDS_MITIGATION_FULL or
MDS_MITIGATION_VMWERV. When we disable mds_user_clear, we set mds_mitigation to
MDS_MITIGATION_IDLE if mds_idle_clear, otherwise MDS_MITIGATION_OFF. If we
enable mds_idle_clear, we set mds_mitigation to MDS_MITIGATION_IDLE only if
mds_user_clear is disabled. When we disable mds_idle_clear, we set
mds_mitigation to MDS_MITIGATION_OFF if  mds_user_clear is disabled.

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