[GIT PULL] x86/urgent for v5.13

From: Borislav Petkov
Date: Fri Jun 25 2021 - 04:54:16 EST


Hi Linus,

here are two more x86/urgent fixes for 5.13.

Please pull,
thx.

---

The following changes since commit 13311e74253fe64329390df80bed3f07314ddd61:

Linux 5.13-rc7 (2021-06-20 15:03:15 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_urgent_for_v5.13

for you to fetch changes up to f9dfb5e390fab2df9f7944bb91e7705aba14cd26:

x86/fpu: Make init_fpstate correct with optimized XSAVE (2021-06-22 11:06:21 +0200)

----------------------------------------------------------------
Two more urgent FPU fixes:

- prevent unprivileged userspace from reinitializing supervisor states

- Prepare init_fpstate, which is the buffer used when initializing
FPU state, properly in case the skip-writing-state-components XSAVE*
variants are used.

----------------------------------------------------------------
Thomas Gleixner (2):
x86/fpu: Preserve supervisor states in sanitize_restored_user_xstate()
x86/fpu: Make init_fpstate correct with optimized XSAVE

arch/x86/include/asm/fpu/internal.h | 30 ++++++++-------------------
arch/x86/kernel/fpu/signal.c | 26 ++++++++---------------
arch/x86/kernel/fpu/xstate.c | 41 ++++++++++++++++++++++++++++++++++---
3 files changed, 54 insertions(+), 43 deletions(-)

--
Regards/Gruss,
Boris.

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