linux/arch/x86/kernel/fpu
Thomas Gleixner 781c64bfcb x86/fpu/xstate: Handle supervisor states in XSTATE permissions
The size calculation in __xstate_request_perm() fails to take supervisor
states into account because the permission bitmap is only relevant for user
states.

Up to 5.17 this does not matter because there are no supervisor states
supported, but the (re-)enabling of ENQCMD makes them available.

Fixes: 7c1ef59145 ("x86/cpufeatures: Re-enable ENQCMD")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220324134623.681768598@linutronix.de
2022-03-30 11:35:22 +02:00
..
bugs.c x86/fpu: Replace the includes of fpu/internal.h 2021-10-20 15:27:29 +02:00
context.h x86/fpu: Update XFD state where required 2021-10-26 10:53:02 +02:00
core.c x86/fpu: Remove redundant XCOMP_BV initialization 2022-03-29 20:57:18 +02:00
init.c x86/fpu: Add fpu_state_config::legacy_features 2021-10-26 10:18:09 +02:00
internal.h x86/fpu/signal: Prepare for variable sigframe length 2021-10-26 10:18:09 +02:00
legacy.h x86/fpu: Remove .fixup usage 2021-12-11 09:09:48 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
regset.c x86/ptrace: Fix xfpregs_set()'s incorrect xmm clearing 2022-02-18 11:23:21 +01:00
signal.c x86/fpu/signal: Initialize sw_bytes in save_xstate_epilog() 2021-11-30 15:13:47 -08:00
xstate.c x86/fpu/xstate: Handle supervisor states in XSTATE permissions 2022-03-30 11:35:22 +02:00
xstate.h RISCV: 2022-01-16 16:15:14 +02:00