Thomas Gleixner efa1655049 x86/fpu: Reset state for all signal restore failures
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
2021-06-10 08:04:24 +02:00
..
2021-06-05 15:41:44 -07:00
2021-06-06 13:00:36 -07:00
2021-05-03 12:58:31 -07:00
2021-05-17 14:39:56 +02:00
2021-05-03 11:19:54 -07:00
2021-05-21 06:06:19 -10:00
2021-06-06 12:39:36 -07:00
2021-05-17 14:39:56 +02:00
\n
2021-05-20 06:20:15 -10:00