linux/arch/x86/kernel/fpu
Chang S. Bae 53599b4d54 x86/fpu/signal: Prepare for variable sigframe length
The software reserved portion of the fxsave frame in the signal frame
is copied from structures which have been set up at boot time. With
dynamically enabled features the content of these structures is no
longer correct because the xfeatures and size can be different per task.

Calculate the software reserved portion at runtime and fill in the
xfeatures and size values from the tasks active fpstate.

Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211021225527.10184-10-chang.seok.bae@intel.com
2021-10-26 10:18:09 +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: Rework restore_regs_from_fpstate() 2021-10-22 11:09:15 +02:00
core.c x86/fpu: Add basic helpers for dynamically enabled features 2021-10-26 10:18:09 +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: Move mxcsr related code to core 2021-10-20 15:27:28 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
regset.c x86/fpu: Move xstate size to fpu_*_cfg 2021-10-21 19:38:55 +02:00
signal.c x86/fpu/signal: Prepare for variable sigframe length 2021-10-26 10:18:09 +02:00
xstate.c x86/fpu/signal: Prepare for variable sigframe length 2021-10-26 10:18:09 +02:00
xstate.h x86/arch_prctl: Add controls for dynamic XSTATE components 2021-10-26 10:18:09 +02:00