x86/fpu/xstate: Use fpstate for xsave_to_user_sigframe()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 13 Oct 2021 14:55:51 +0000 (16:55 +0200)
committerBorislav Petkov <bp@suse.de>
Thu, 21 Oct 2021 12:04:46 +0000 (14:04 +0200)
commit0b2d39aa03574eb401cdfaac2f483a6f68173355
tree13cc19b2949c01bb763defda7879ba56e448df13
parent073e627a4537e682c43a1e8df659ce24cbced40c
x86/fpu/xstate: Use fpstate for xsave_to_user_sigframe()

With dynamically enabled features the sigframe code must know the features
which are enabled for the task. Get 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.077781448@linutronix.de
arch/x86/kernel/fpu/xstate.h