Re: [patch 09/31] x86/fpu: Do not inherit FPU context for CLONE_THREAD
From: Borislav Petkov
Date: Tue Oct 12 2021 - 12:10:49 EST
On Tue, Oct 12, 2021 at 02:00:11AM +0200, Thomas Gleixner wrote:
> CLONE_THREAD does not have the guarantee of a true fork to inherit all
> state. Especially the FPU state is meaningless for CLONE_THREAD.
>
> Just wipe out the minimal required state so restore on return to user space
> let's the thread start with a clean FPU.
This sentence reads weird, needs massaging.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette