summaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-06-09 21:18:00 +0200
committerSasha Levin <sashal@kernel.org>2021-06-30 08:49:36 -0400
commit749af556011acce91beb72e0f6d74539f57ce219 (patch)
tree07ce9feb2abb602c2c83c2d26f438f127d121b79 /lib/cpu-notifier-error-inject.c
parentfab7d0d5f5e950577ac8656ef9e1ef5e80e47b3b (diff)
x86/fpu: Reset state for all signal restore failures
commit efa165504943f2128d50f63de0c02faf6dcceb0d upstream. If access_ok() or fpregs_soft_set() fails in __fpu__restore_sig() then the function just returns but does not clear the FPU state as it does for all other fatal failures. Clear the FPU state for these failures as well. Fixes: 72a671ced66d ("x86, fpu: Unify signal handling code paths for x86 and x86_64 kernels") Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/87mtryyhhz.ffs@nanos.tec.linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions