lkml.org 
[lkml]   [2021]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch V3 54/66] x86/fpu: Mask PKRU from kernel XRSTOR[S] operations
On Fri, Jun 18, 2021 at 04:19:17PM +0200, Thomas Gleixner wrote:
> As the PKRU state is managed seperately restoring it from the xstate buffer

separately

> would be counterproductive as it might either restore a stale value or
> reinit the PKRU state to 0.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> ---
> arch/x86/include/asm/fpu/internal.h | 4 ++--
> arch/x86/include/asm/fpu/xstate.h | 10 ++++++++++
> arch/x86/kernel/fpu/xstate.c | 1 +
> arch/x86/mm/extable.c | 2 +-
> 4 files changed, 14 insertions(+), 3 deletions(-)

Reviewed-by: Borislav Petkov <bp@suse.de>

--
Regards/Gruss,
Boris.

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

\
 
 \ /
  Last update: 2021-06-22 19:08    [W:0.171 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site