Re: [Patch v6 08/22] x86/fpu: Ensure TIF_NEED_FPU_LOAD is set after saving FPU state
From: Chang S. Bae
Date: Wed Feb 11 2026 - 14:40:10 EST
On 2/8/2026 11:20 PM, Dapeng Mi wrote:
Ensure that the TIF_NEED_FPU_LOAD flag is always set after saving the
FPU state. This guarantees that the user space FPU state has been saved
whenever the TIF_NEED_FPU_LOAD flag is set.
A subsequent patch will verify if the user space FPU state can be
retrieved from the saved task FPU state in the NMI context by checking
the TIF_NEED_FPU_LOAD flag.
Suggested-by: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Suggested-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
I could check some previous discussions there:
https://lore.kernel.org/all/20251204151735.GO2528459@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
With that, I think I can get the context of this change -- tightening the flag up with the buffer against *NMIs*.
But the changelog doesn't look clear enough to explain the reason to me.
At least, I guess Links to the past discussions provides better context to readers.