]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
x86/feature: Enable the x86 feature to control Speculation
authorTim Chen <tim.c.chen@linux.intel.com>
Thu, 24 Aug 2017 16:34:41 +0000 (09:34 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 11 Jan 2018 18:49:42 +0000 (19:49 +0100)
commitf1f160a92b70c25d6e6e76788463bbec86a73313
tree4214f5918b0d038dc0213d75703c18d3b6ff3642
parentf575840dd363aa80a14faacddf90b95db1185e2c
x86/feature: Enable the x86 feature to control Speculation

CVE-2017-5753
CVE-2017-5715

cpuid ax=0x7, return rdx bit 26 to indicate presence of this feature
IA32_SPEC_CTRL (0x48) and IA32_PRED_CMD (0x49)
IA32_SPEC_CTRL, bit0 – Indirect Branch Restricted Speculation (IBRS)
IA32_PRED_CMD,  bit0 – Indirect Branch Prediction Barrier (IBPB)

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/scattered.c