linux/arch/x86/kernel/fpu
Thomas Gleixner b5859dacd2 x86/fpu: Limit xstate copy size in xstateregs_set()
[ Upstream commit 07d6688b22 ]

If the count argument is larger than the xstate size, this will happily
copy beyond the end of xstate.

Fixes: 91c3dba7db ("x86/fpu/xstate: Fix PTRACE frames for XSAVES")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121452.120741557@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:05:52 +02:00
..
bugs.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
core.c x86/fpu: Add kernel_fpu_begin_mask() to selectively initialize state 2021-01-27 11:55:13 +01:00
init.c x86/fpu: Handle FPU-related and clearcpuid command line arguments earlier 2020-09-22 00:24:27 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
regset.c x86/fpu: Limit xstate copy size in xstateregs_set() 2021-07-20 16:05:52 +02:00
signal.c x86/fpu: Preserve supervisor states in sanitize_restored_user_xstate() 2021-06-30 08:47:26 -04:00
xstate.c x86/fpu: Fix copy_xstate_to_kernel() gap handling 2021-07-20 16:05:52 +02:00