x86/fpu/xstate: Use fpstate for os_xsave()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 13 Oct 2021 14:55:49 +0000 (16:55 +0200)
committerBorislav Petkov <bp@suse.de>
Thu, 21 Oct 2021 12:03:36 +0000 (14:03 +0200)
commit073e627a4537e682c43a1e8df659ce24cbced40c
tree42bd41d970df4ba299229671be9267e064af7d0b
parentbe31dfdfd75b172af3ddcfa7511cdc3bb7adb25e
x86/fpu/xstate: Use fpstate for os_xsave()

With variable feature sets XSAVE[S] requires to know the feature set for
which the buffer is valid. Retrieve it from fpstate.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211013145323.025695590@linutronix.de
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/signal.c
arch/x86/kernel/fpu/xstate.h