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)
commit5529acf47ec31ece0815f69d43f5e6a1e485a0f3
tree7e310408156c2da2497511d8bf13971836292078
parent8bf26758ca9659866b844dd51037314b4c0fa6bd
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