]> git.baikalelectronics.ru Git - kernel.git/commit
x86/fpu/signal: Prepare for variable sigframe length
authorChang S. Bae <chang.seok.bae@intel.com>
Thu, 21 Oct 2021 22:55:13 +0000 (15:55 -0700)
committerBorislav Petkov <bp@suse.de>
Tue, 26 Oct 2021 08:18:09 +0000 (10:18 +0200)
commitd1ac06b8aad764e4b5ae60ce9bf2a89989a2496d
treec644c9d2ec95f2068954e47463e833c40d09d939
parent9216d39b080b28f0dee86c1fb96cffe199868689
x86/fpu/signal: Prepare for variable sigframe length

The software reserved portion of the fxsave frame in the signal frame
is copied from structures which have been set up at boot time. With
dynamically enabled features the content of these structures is no
longer correct because the xfeatures and size can be different per task.

Calculate the software reserved portion at runtime and fill in the
xfeatures and size values from the tasks active fpstate.

Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211021225527.10184-10-chang.seok.bae@intel.com
arch/x86/kernel/fpu/internal.h
arch/x86/kernel/fpu/signal.c
arch/x86/kernel/fpu/xstate.c