]> git.baikalelectronics.ru Git - kernel.git/commit
x86/fpu: Add sanity checks for XFD
authorThomas Gleixner <tglx@linutronix.de>
Thu, 21 Oct 2021 22:55:19 +0000 (15:55 -0700)
committerBorislav Petkov <bp@suse.de>
Tue, 26 Oct 2021 08:52:35 +0000 (10:52 +0200)
commitfb9b7d50c08cd6d45cb555e292f9639c7a6d3cfd
tree7e310408156c2da2497511d8bf13971836292078
parent170a5fa108c8008fbfe22a1e93ed8522caa6faff
x86/fpu: Add sanity checks for XFD

Add debug functionality to ensure that the XFD MSR is up to date for XSAVE*
and XRSTOR* operations.

 [ tglx: Improve comment. ]

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-16-chang.seok.bae@intel.com
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/signal.c
arch/x86/kernel/fpu/xstate.c
arch/x86/kernel/fpu/xstate.h