diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-10-13 16:55:55 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-10-21 14:24:14 +0200 |
commit | 49e4eb4125d506937e52e10c34c8cafd93ab0ed6 (patch) | |
tree | 1fa7ef4a7fe827c6da8793fc9ba3ea84d7f592bd /arch/x86/kernel/fpu/signal.c | |
parent | x86/fpu: Use fpstate in __copy_xstate_to_uabi_buf() (diff) | |
download | wireguard-linux-49e4eb4125d506937e52e10c34c8cafd93ab0ed6.tar.xz wireguard-linux-49e4eb4125d506937e52e10c34c8cafd93ab0ed6.zip |
x86/fpu/xstate: Use fpstate for copy_uabi_to_xstate()
Prepare for dynamically enabled states per task. The function needs to
retrieve the features and sizes which are valid in a fpstate
context. Retrieve them from fpstate.
Move the function declarations to the core header as they are not
required anywhere else.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211013145323.233529986@linutronix.de
Diffstat (limited to 'arch/x86/kernel/fpu/signal.c')
-rw-r--r-- | arch/x86/kernel/fpu/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/fpu/signal.c b/arch/x86/kernel/fpu/signal.c index 5aca418490f0..935818b0406e 100644 --- a/arch/x86/kernel/fpu/signal.c +++ b/arch/x86/kernel/fpu/signal.c @@ -375,7 +375,7 @@ static bool __fpu_restore_sig(void __user *buf, void __user *buf_fx, fpregs = &fpu->fpstate->regs; if (use_xsave() && !fx_only) { - if (copy_sigframe_from_user_to_xstate(&fpregs->xsave, buf_fx)) + if (copy_sigframe_from_user_to_xstate(fpu->fpstate, buf_fx)) return false; } else { if (__copy_from_user(&fpregs->fxsave, buf_fx, |