aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r--arch/x86/kernel/cpu/amd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index bca023bdd6b2..59bfebc8c805 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -508,6 +508,16 @@ static void early_init_amd(struct cpuinfo_x86 *c)
508 set_cpu_cap(c, X86_FEATURE_EXTD_APICID); 508 set_cpu_cap(c, X86_FEATURE_EXTD_APICID);
509 } 509 }
510#endif 510#endif
511
512 /* F16h erratum 793, CVE-2013-6885 */
513 if (c->x86 == 0x16 && c->x86_model <= 0xf) {
514 u64 val;
515
516 rdmsrl(MSR_AMD64_LS_CFG, val);
517 if (!(val & BIT(15)))
518 wrmsrl(MSR_AMD64_LS_CFG, val | BIT(15));
519 }
520
511} 521}
512 522
513static const int amd_erratum_383[]; 523static const int amd_erratum_383[];