]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
x86/srso: Add SRSO mitigation for Hygon processors
authorPu Wen <puwen@hygon.cn>
Thu, 28 Sep 2023 06:59:16 +0000 (14:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 10:59:23 +0000 (12:59 +0200)
commit a5ef7d68cea1344cf524f04981c2b3f80bedbb0d upstream.

Add mitigation for the speculative return stack overflow vulnerability
which exists on Hygon processors too.

Signed-off-by: Pu Wen <puwen@hygon.cn>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/tencent_4A14812842F104E93AA722EC939483CEFF05@qq.com
Signed-off-by: Ashwin Dayanand Kamat <ashwin.kamat@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/common.c

index f9e20ab0c3c16398dd1b383fa0eb9067803f1ca8..a496a9867f4b1373cfc9dd7b975cd78347d7f115 100644 (file)
@@ -1177,7 +1177,7 @@ static const struct x86_cpu_id cpu_vuln_blacklist[] __initconst = {
        VULNBL_AMD(0x15, RETBLEED),
        VULNBL_AMD(0x16, RETBLEED),
        VULNBL_AMD(0x17, RETBLEED | SRSO),
-       VULNBL_HYGON(0x18, RETBLEED),
+       VULNBL_HYGON(0x18, RETBLEED | SRSO),
        VULNBL_AMD(0x19, SRSO),
        {}
 };