]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Fix typo IBRS_ATT, which should be IBRS_ALL (redux)
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 5 Feb 2018 20:37:42 +0000 (15:37 -0500)
committerJack Vogel <jack.vogel@oracle.com>
Thu, 8 Feb 2018 18:17:22 +0000 (10:17 -0800)
In our code-base from Intel we still use IBRS_ATT, so lets
fix it to what is upstream.

Orabug: 27477743
CVE: CVE-2017-5715

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
arch/x86/include/asm/cpufeature.h
arch/x86/kernel/cpu/bugs_64.c
arch/x86/kernel/cpu/scattered.c

index e61e725ec000d80908a76c7584c324fa23384a1f..bc367e1b21c58fc6cd331801b225aad616517012 100644 (file)
 #define X86_FEATURE_IBRS       ( 7*32+20) /* Control Speculation Control */
 #define X86_FEATURE_STIBP      ( 7*32+21) /* Single Thread Indirect Branch Predictors */
 #define X86_FEATURE_IA32_ARCH_CAPS     ( 7*32+22) /* Control Speculation Control */
-#define X86_FEATURE_IBRS_ATT   ( 7*32+23) /* IBRS all the time */
+#define X86_FEATURE_IBRS_ALL   ( 7*32+23) /* IBRS all the time */
 
 /* AMD-defined CPU features, CPUID level 0x80000008 (EBX), word 13.
  * But thanks to kABI we have to jam it somewhere else. */
index 198bc1a552af597340c1c422f07ac368ea4f56ea..4ff548da4cd1943802fcbade761fef327f08d7dc 100644 (file)
@@ -431,7 +431,7 @@ out:
            mode == SPECTRE_V2_RETPOLINE_AMD) {
                disable_ibrs_and_friends(false /* Do use IPBP if possible */);
        }
-       /* Future CPUs with IBRS_ATT might be able to avoid this. */
+       /* Future CPUs with IBRS_ALL might be able to avoid this. */
        setup_force_cpu_cap(X86_FEATURE_VMEXIT_RSB_FULL);
 
        /* Initialize Indirect Branch Prediction Barrier if supported */
index 764ff481bbb160d65cb0d8749c7bb9ade6d8a56f..963e8c387b43d3250e70f25654a4f0eab99b5a46 100644 (file)
@@ -84,7 +84,7 @@ void init_scattered_cpuid_features(struct cpuinfo_x86 *c)
                u64 cap;
                rdmsrl(MSR_IA32_ARCH_CAPABILITIES, cap);
                if (cap & 2) /* IBRS all the time */
-                       set_cpu_cap(c, X86_FEATURE_IBRS_ATT);
+                       set_cpu_cap(c, X86_FEATURE_IBRS_ALL);
        }
 
        if (cpu_has(c, X86_FEATURE_IBRS))