summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/fpu/internal.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-10-15 03:16:02 +0200
committerBorislav Petkov <bp@suse.de>2021-10-20 15:27:26 +0200
commit01f9f62d3ae75077a54a11d2777082f1e58e2d9f (patch)
treef5334391c0d71d0b0a56f99f469aeb0e35cecad7 /arch/x86/include/asm/fpu/internal.h
parentdc2f39fd1bf23eee644d409b84e8e435606997bf (diff)
downloadlinux-01f9f62d3ae75077a54a11d2777082f1e58e2d9f.tar.gz
linux-01f9f62d3ae75077a54a11d2777082f1e58e2d9f.tar.bz2
linux-01f9f62d3ae75077a54a11d2777082f1e58e2d9f.zip
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
Diffstat (limited to 'arch/x86/include/asm/fpu/internal.h')
0 files changed, 0 insertions, 0 deletions