| Date | Tue, 22 Jun 2021 17:58:41 +0200 | From | Borislav Petkov <> | Subject | Re: [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
|