linux/arch/x86/kernel/fpu
Thomas Gleixner 01f9f62d3a x86/fpu: Remove pointless memset in fpu_clone()
Zeroing the forked task's FPU registers buffer to avoid leaking init
optimized stale data into the clone is a pointless exercise for the case
where the current task has TIF_NEED_FPU_LOAD set. In that case, the FPU
registers state is copied from current's FPU register buffer which can
contain stale init optimized data as well.

The alledged information leak is non-existant because this stale init
optimized data is used nowhere and cannot leak anywhere.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011538.722854569@linutronix.de
2021-10-20 15:27:26 +02:00
..
bugs.c
core.c x86/fpu: Remove pointless memset in fpu_clone() 2021-10-20 15:27:26 +02:00
init.c x86/fpu: Cleanup the on_boot_cpu clutter 2021-10-20 15:27:26 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
regset.c x86/fpu: Hook up PKRU into ptrace() 2021-06-23 19:44:24 +02:00
signal.c x86/fpu: Update stale comments 2021-10-20 15:27:25 +02:00
xstate.c x86/fpu: Cleanup the on_boot_cpu clutter 2021-10-20 15:27:26 +02:00