x86/fpu/signal: Use fpstate for size and features
authorThomas Gleixner <tglx@linutronix.de>
Thu, 14 Oct 2021 22:51:51 +0000 (00:51 +0200)
committerBorislav Petkov <bp@suse.de>
Thu, 21 Oct 2021 12:24:47 +0000 (14:24 +0200)
commit5509cc78080d29b23706dbf076d51691b69f3c79
tree1afcc00ad20861061f78996fb8db5f6a8ea4f7d8
parent49e4eb4125d506937e52e10c34c8cafd93ab0ed6
x86/fpu/signal: Use fpstate for size and features

For dynamically enabled features it's required to get the features which
are enabled for that context when restoring from sigframe.

The same applies for all signal frame size calculations.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/87ilxz5iew.ffs@tglx
arch/x86/kernel/fpu/signal.c