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
This commit is contained in:
Thomas Gleixner 2021-10-13 16:55:54 +02:00 • committed by Borislav Petkov
commit 3ac8d75778
3 changed files with 11 additions and 10 deletions