Re: [patch V3 61/66] x86/fpu/signal: Sanitize the xstate check on sigframe

From: Borislav Petkov
Date: Tue Jun 22 2021 - 15:11:05 EST


On Fri, Jun 18, 2021 at 04:19:24PM +0200, Thomas Gleixner wrote:
> Utilize the check for the extended state magic in the FX software reserved
> bytes and set the parameters for restoring fx_only in the relevant members
> of fw_sw_user.
>
> This allows further cleanups on top because the data is consistent.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> ---
> arch/x86/kernel/fpu/signal.c | 69 +++++++++++++++++++------------------------
> 1 file changed, 32 insertions(+), 37 deletions(-)

Modulo Andy's catch, I can't find anything out of the ordinary here and
all this does makes sense to me. Still a tentative

Reviewed-by: Borislav Petkov <bp@xxxxxxx>

because this is all nasty magic to me. (yah, magic1 and magic2 :-))

--
Regards/Gruss,
Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg