* Re: [PATCH] x86/CPU: Fix FPDSS on Hygon
@ 2026-11-24 4:08 Shance Luo
0 siblings, 0 replies; 3+ messages in thread
From: Shance Luo @ 2026-11-24 4:08 UTC (permalink / raw)
To: Borislav Petkov
Cc: x86, Ingo Molnar, Thomas Gleixner, Dave Hansen, H . Peter Anvin,
linux-kernel
Hi Boris,
> Is this the legal name you would like to be in the git archives when I apply the patch?
> ...
> From: Shance Luo <luoshance@hygon.cn>
>
> Agreed?
Yes, "Shance Luo" is the name I want in the git archives:
From: Shance Luo <luoshance@hygon.cn>
Signed-off-by: Shance Luo <luoshance@hygon.cn>
I'll use this spelling consistently for future patches.
> That paragraph is not needed in the commit message. If anything, it needs to be here...
You're right - it does not belong in the commit message. Please drop it when applying.
Thanks,
Shance
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] x86/CPU: Fix FPDSS on Hygon
2026-11-19 7:53 罗善策
@ 2026-11-24 3:34 ` Borislav Petkov
0 siblings, 0 replies; 3+ messages in thread
From: Borislav Petkov @ 2026-11-24 3:34 UTC (permalink / raw)
To: 罗善策
Cc: x86, Ingo Molnar, Thomas Gleixner, Dave Hansen, H . Peter Anvin,
linux-kernel
On Thu, Nov 19, 2026 at 03:53:30PM +0800, 罗善策 wrote:
> From: Luoshance <luoshance@hygon.cn>
Is this the legal name you would like to be in the git archives when I apply
the patch?
We usually use "<first name> <last name>" in commits and I think if we adhere
to this, yours should be
From: Shance Luo <luoshance@hygon.cn>
Agreed?
I'm asking because a) people should use their legal names when authoring
patches; b) you can decide on your name spelling and stick with it so that
there's no confusion in the future.
> 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.
>
> The Zen1 fix, commit e55d98e77561 ("x86/CPU: Fix FPDSS on Zen1"), sets
> MSR_AMD64_FP_CFG bit 9 in init_amd_zen1(). Hygon CPUs are family 0x18
> and do not go through that path, so set the same chicken bit at the end
> of init_hygon().
That paragraph is not needed in the commit message. If anything, it needs to
be here...
>
> Signed-off-by: Luoshance <luoshance@hygon.cn>
> ---
<--- ... under those "---" lines. But I'll fix it up when applying and after
you've clarified which name spelling you wanna use.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] x86/CPU: Fix FPDSS on Hygon
@ 2026-11-19 7:53 罗善策
2026-11-24 3:34 ` Borislav Petkov
0 siblings, 1 reply; 3+ messages in thread
From: 罗善策 @ 2026-11-19 7:53 UTC (permalink / raw)
To: Borislav Petkov, x86
Cc: Ingo Molnar, Thomas Gleixner, Dave Hansen, H . Peter Anvin,
linux-kernel, luoshance
From: Luoshance <luoshance@hygon.cn>
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.
The Zen1 fix, commit e55d98e77561 ("x86/CPU: Fix FPDSS on Zen1"), sets
MSR_AMD64_FP_CFG bit 9 in init_amd_zen1(). Hygon CPUs are family 0x18
and do not go through that path, so set the same chicken bit at the end
of init_hygon().
Signed-off-by: Luoshance <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)
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-24 4:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 4:08 [PATCH] x86/CPU: Fix FPDSS on Hygon Shance Luo
-- strict thread matches above, loose matches on Subject: below --
2026-11-19 7:53 罗善策
2026-11-24 3:34 ` Borislav Petkov
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®