File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1144,13 +1144,16 @@ static bool smap_works_speculatively(void)
1144
1144
1145
1145
static void __init spectre_v1_select_mitigation (void )
1146
1146
{
1147
- if (!boot_cpu_has_bug (X86_BUG_SPECTRE_V1 ) || cpu_mitigations_off ())
1147
+ if (!boot_cpu_has_bug (X86_BUG_SPECTRE_V1 ))
1148
+ spectre_v1_mitigation = SPECTRE_V1_MITIGATION_NONE ;
1149
+
1150
+ if (!should_mitigate_vuln (X86_BUG_SPECTRE_V1 ))
1148
1151
spectre_v1_mitigation = SPECTRE_V1_MITIGATION_NONE ;
1149
1152
}
1150
1153
1151
1154
static void __init spectre_v1_apply_mitigation (void )
1152
1155
{
1153
- if (!boot_cpu_has_bug (X86_BUG_SPECTRE_V1 ) || cpu_mitigations_off () )
1156
+ if (!boot_cpu_has_bug (X86_BUG_SPECTRE_V1 ))
1154
1157
return ;
1155
1158
1156
1159
if (spectre_v1_mitigation == SPECTRE_V1_MITIGATION_AUTO ) {
You can’t perform that action at this time.
0 commit comments