diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-06-23 14:02:15 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-06-23 19:26:37 +0200 |
commit | 1d9bffab116fadfe1594f5fea2b50ab280d81d30 (patch) | |
tree | daeba06043cc6513a4472d81786ad606cf65bfc9 /kernel/auditfilter.c | |
parent | 727d01100e15b18c67f05fb697779ad2a6c99b63 (diff) |
x86/fpu: Move FXSAVE_LEAK quirk info __copy_kernel_to_fpregs()
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 untangle PKRU and XSTATE handling and also for the
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>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121456.114271278@linutronix.de
Diffstat (limited to 'kernel/auditfilter.c')
0 files changed, 0 insertions, 0 deletions