x86/fpu: Configure init_fpstate attributes orderly
mainline inclusion from mainline-v6.1-rc2 commit c32d7cab category: bugfix bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I73H0T CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c32d7cab57e3a77af8ecc17cde7a5761a26483b8 Intel-SIG: commit c32d7cab x86/fpu: Configure init_fpstate attributes orderly. -------------------------------- The init_fpstate setup code is spread out and out of order. The init image is recorded before its scoped features and the buffer size are determined. Determine the scope of init_fpstate components and its size before recording the init state. Also move the relevant code together. Signed-off-by:Chang S. Bae <chang.seok.bae@intel.com> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de> Acked-by:
<neelnatu@google.com> Link: https://lore.kernel.org/r/20220824191223.1248-2-chang.seok.bae@intel.com Signed-off-by:
Lin Wang <lin.x.wang@intel.com>
Loading
Please sign in to comment