]> git.proxmox.com Git - pve-kernel.git/blob - patches/kernel/0274-x86-feature-Report-presence-of-IBPB-and-IBRS-control.patch
f4944f45834f55509a20eb3c0c1d78e8389cd5aa
[pve-kernel.git] / patches / kernel / 0274-x86-feature-Report-presence-of-IBPB-and-IBRS-control.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Tim Chen <tim.c.chen@linux.intel.com>
3 Date: Wed, 27 Sep 2017 12:09:14 -0700
4 Subject: [PATCH] x86/feature: Report presence of IBPB and IBRS control
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 CVE-2017-5753
10 CVE-2017-5715
11
12 Report presence of IBPB and IBRS.
13
14 Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
15 Signed-off-by: Andy Whitcroft <apw@canonical.com>
16 Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
17 (cherry picked from commit c41156d893e7f48bebf8d71cfddd39d8fb2724f8)
18 Signed-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
23 diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
24 index 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 --
40 2.14.2
41