]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ba49f7f0bbd36e11c7f612399621813c3ffba66
tree159abc3000949533bf2fbc26f6c3f425e03ccf64
parentf40767a44612d74e4e8f7e4656349022bc48e067
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