x86/fpu: Use fpstate in __copy_xstate_to_uabi_buf()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 13 Oct 2021 14:55:54 +0000 (16:55 +0200)
committerBorislav Petkov <bp@suse.de>
Thu, 21 Oct 2021 12:18:23 +0000 (14:18 +0200)
commit3ac8d75778fc8c1c22daad9bc674166b862f6f6e
tree159abc3000949533bf2fbc26f6c3f425e03ccf64
parentad6ede407aae01d9617e172b27e179ce1046cbfc
x86/fpu: Use fpstate in __copy_xstate_to_uabi_buf()

With dynamically enabled features the copy function must know the features
and the size which is valid for the task. Retrieve them from fpstate.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211013145323.181495492@linutronix.de
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/xstate.c
arch/x86/kernel/fpu/xstate.h