x86/cpufeatures: Add X86_BUG_SPECTRE_V[12]
[pandora-kernel.git] / arch / x86 / kernel / cpu / common.c
index 8da173c..458c595 100644 (file)
@@ -770,6 +770,9 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)
 
        if (c->x86_vendor != X86_VENDOR_AMD)
                setup_force_cpu_bug(X86_BUG_CPU_MELTDOWN);
+
+       setup_force_cpu_bug(X86_BUG_SPECTRE_V1);
+       setup_force_cpu_bug(X86_BUG_SPECTRE_V2);
 }
 
 void __init early_cpu_init(void)