]> git.proxmox.com Git - pve-kernel.git/blame - patches/kernel/0272-x86-feature-Report-presence-of-IBPB-and-IBRS-control.patch
KPTI/Spectre: add more fixes
[pve-kernel.git] / patches / kernel / 0272-x86-feature-Report-presence-of-IBPB-and-IBRS-control.patch
CommitLineData
035dbe67
FG
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Tim Chen <tim.c.chen@linux.intel.com>
3Date: Wed, 27 Sep 2017 12:09:14 -0700
4Subject: [PATCH] x86/feature: Report presence of IBPB and IBRS control
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9CVE-2017-5753
10CVE-2017-5715
11
12Report presence of IBPB and IBRS.
13
14Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
15Signed-off-by: Andy Whitcroft <apw@canonical.com>
16Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
17(cherry picked from commit c41156d893e7f48bebf8d71cfddd39d8fb2724f8)
18Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
19---
20 arch/x86/kernel/cpu/intel.c | 5 +++++
21 1 file changed, 5 insertions(+)
22
23diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
24index dfa90a3a5145..f1d94c73625a 100644
25--- a/arch/x86/kernel/cpu/intel.c
26+++ b/arch/x86/kernel/cpu/intel.c
27@@ -627,6 +627,11 @@ static void init_intel(struct cpuinfo_x86 *c)
28 init_intel_energy_perf(c);
29
30 init_intel_misc_features(c);
31+
32+ if (boot_cpu_has(X86_FEATURE_SPEC_CTRL))
33+ printk_once(KERN_INFO "FEATURE SPEC_CTRL Present\n");
34+ else
35+ printk_once(KERN_INFO "FEATURE SPEC_CTRL Not Present\n");
36 }
37
38 #ifdef CONFIG_X86_32
39--
402.14.2
41