From: "tip-bot2 for Shance Luo" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Shance Luo <luoshance@hygon.cn>,
"Borislav Petkov (AMD)" <bp@alien8.de>, <stable@kernel.org>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: x86/urgent] x86/CPU: Fix FPDSS on Hygon
Date: Tue, 24 Nov 2026 04:36:25 -0000 [thread overview]
Message-ID: <179549498501.92412.5064902066325113758.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20261119075330.961-1-luoshance@hygon.cn>
The following commit has been merged into the x86/urgent branch of tip:
Commit-ID: 4c2abd86d10720ce4a2330c2ca01cca39bd727ab
Gitweb: https://git.kernel.org/tip/4c2abd86d10720ce4a2330c2ca01cca39bd727ab
Author: Shance Luo <luoshance@hygon.cn>
AuthorDate: Thu, 19 Nov 2026 15:53:30 +08:00
Committer: Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Mon, 23 Nov 2026 20:18:05 -08:00
x86/CPU: Fix FPDSS on Hygon
Hygon family 0x18 CPUs are affected by the same floating-point divider issue
as AMD Zen1: the divider can leave partial results of previous operations
behind, which another attacker thread can sample.
Enable the mitigation.
Signed-off-by: Shance Luo <luoshance@hygon.cn>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://patch.msgid.link/20261119075330.961-1-luoshance@hygon.cn
---
arch/x86/kernel/cpu/hygon.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/x86/kernel/cpu/hygon.c b/arch/x86/kernel/cpu/hygon.c
index ec51c2b..0bccb93 100644
--- a/arch/x86/kernel/cpu/hygon.c
+++ b/arch/x86/kernel/cpu/hygon.c
@@ -228,6 +228,9 @@ static void init_hygon(struct cpuinfo_x86 *c)
/* Hygon CPUs don't need fencing after x2APIC/TSC_DEADLINE MSR writes. */
clear_cpu_cap(c, X86_FEATURE_APIC_MSRS_FENCE);
+
+ pr_notice_once("Hygon FPDSS bug detected, enabling mitigation.\n");
+ msr_set_bit(MSR_AMD64_FP_CFG, MSR_AMD64_FP_CFG_ZEN1_DENORM_FIX_BIT);
}
static void cpu_detect_tlb_hygon(struct cpuinfo_x86 *c)
prev parent reply other threads:[~2026-11-24 4:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 7:53 [PATCH] " 罗善策
2026-11-24 3:34 ` Borislav Petkov
2026-11-24 4:36 ` tip-bot2 for Shance Luo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179549498501.92412.5064902066325113758.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=luoshance@hygon.cn \
--cc=stable@kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®