lkml.org 
[lkml]   [2021]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch V3 49/66] x86/fpu: Move FXSAVE_LEAK quirk info __copy_kernel_to_fpregs()
On Fri, Jun 18, 2021 at 04:19:12PM +0200, Thomas Gleixner wrote:
> copy_kernel_to_fpregs() restores all xfeatures but it is also the place
> where the AMD FXSAVE_LEAK bug is handled.
>
> That prevents fpregs_restore_userregs() to limit the restored features,
> which is required to distangle PKRU and XSTATE handling and also for the

"untangle"

> upcoming supervisor state management.
>
> Move the FXSAVE_LEAK quirk into __copy_kernel_to_fpregs() and deinline that
> function which has become rather fat.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> ---
> arch/x86/include/asm/fpu/internal.h | 25 +------------------------
> arch/x86/kernel/fpu/core.c | 27 +++++++++++++++++++++++++++
> 2 files changed, 28 insertions(+), 24 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 17:59    [W:1.254 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site