From cea5edba5689e032b17f513d6667b0e5d94e5f05 Mon Sep 17 00:00:00 2001 From: Tim Chen Date: Thu, 21 Dec 2017 19:27:59 -0500 Subject: [PATCH] x86/feature: Report presence of IBPB and IBRS control Report presence of IBPB and IBRS. Orabug: 27344012 CVE: CVE-2017-5715 Signed-off-by: Tim Chen Signed-off-by: Konrad Rzeszutek Wilk Reviewed-by: John Haxby Signed-off-by: Kirtikar Kashyap --- arch/x86/kernel/cpu/intel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index 50163fa9034f..4257d6a7db7d 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c @@ -493,6 +493,11 @@ static void init_intel(struct cpuinfo_x86 *c) wrmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb); } } + + if (boot_cpu_has(X86_FEATURE_SPEC_CTRL)) + printk_once(KERN_INFO "FEATURE SPEC_CTRL Present\n"); + else + printk_once(KERN_INFO "FEATURE SPEC_CTRL Not Present\n"); } #ifdef CONFIG_X86_32 -- 2.50.1