We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71dc301 commit 8c7261aCopy full SHA for 8c7261a
arch/x86/kernel/cpu/bugs.c
@@ -1030,12 +1030,15 @@ static void __init gds_select_mitigation(void)
1030
return;
1031
}
1032
1033
- if (cpu_mitigations_off())
1034
- gds_mitigation = GDS_MITIGATION_OFF;
1035
/* Will verify below that mitigation _can_ be disabled */
1036
-
1037
- if (gds_mitigation == GDS_MITIGATION_AUTO)
1038
- gds_mitigation = GDS_MITIGATION_FULL;
+ if (gds_mitigation == GDS_MITIGATION_AUTO) {
+ if (should_mitigate_vuln(X86_BUG_GDS))
+ gds_mitigation = GDS_MITIGATION_FULL;
+ else {
+ gds_mitigation = GDS_MITIGATION_OFF;
1039
+ return;
1040
+ }
1041
1042
1043
/* No microcode */
1044
if (!(x86_arch_cap_msr & ARCH_CAP_GDS_CTRL)) {
0 commit comments