]>
Commit | Line | Data |
---|---|---|
4c1f997a GKH |
1 | From a5ef7d68cea1344cf524f04981c2b3f80bedbb0d Mon Sep 17 00:00:00 2001 |
2 | From: Pu Wen <puwen@hygon.cn> | |
3 | Date: Thu, 28 Sep 2023 14:59:16 +0800 | |
4 | Subject: x86/srso: Add SRSO mitigation for Hygon processors | |
5 | ||
6 | From: Pu Wen <puwen@hygon.cn> | |
7 | ||
8 | commit a5ef7d68cea1344cf524f04981c2b3f80bedbb0d upstream. | |
9 | ||
10 | Add mitigation for the speculative return stack overflow vulnerability | |
11 | which exists on Hygon processors too. | |
12 | ||
13 | Signed-off-by: Pu Wen <puwen@hygon.cn> | |
14 | Signed-off-by: Ingo Molnar <mingo@kernel.org> | |
15 | Acked-by: Borislav Petkov (AMD) <bp@alien8.de> | |
16 | Cc: <stable@vger.kernel.org> | |
17 | Link: https://lore.kernel.org/r/tencent_4A14812842F104E93AA722EC939483CEFF05@qq.com | |
18 | Signed-off-by: Ashwin Dayanand Kamat <ashwin.kamat@broadcom.com> | |
19 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
20 | --- | |
21 | arch/x86/kernel/cpu/common.c | 2 +- | |
22 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
23 | ||
24 | --- a/arch/x86/kernel/cpu/common.c | |
25 | +++ b/arch/x86/kernel/cpu/common.c | |
26 | @@ -1177,7 +1177,7 @@ static const struct x86_cpu_id cpu_vuln_ | |
27 | VULNBL_AMD(0x15, RETBLEED), | |
28 | VULNBL_AMD(0x16, RETBLEED), | |
29 | VULNBL_AMD(0x17, RETBLEED | SRSO), | |
30 | - VULNBL_HYGON(0x18, RETBLEED), | |
31 | + VULNBL_HYGON(0x18, RETBLEED | SRSO), | |
32 | VULNBL_AMD(0x19, SRSO), | |
33 | {} | |
34 | }; |