]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit86edf18962b886b6d60151ac254ae47f4cedcb22
tree1afcc00ad20861061f78996fb8db5f6a8ea4f7d8
parent957ae2047aa1b7247905d6fb460a4ce78022f89b
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