Thomas Bogendoerfer a58a173444 MIPS: kernel: Clear FPU states when setting up kernel threads
io_uring sets up the io worker kernel thread via a syscall out of an
user space prrocess. This process might have used FPU and since
copy_thread() didn't clear FPU states for kernel threads a BUG()
is triggered for using FPU inside kernel. Move code around
to always clear FPU state for user and kernel threads.

Cc: stable@vger.kernel.org
Reported-by: Aurelien Jarno <aurel32@debian.org>
Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1055021
Suggested-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2023-12-05 18:47:11 +01:00
..
2023-10-19 10:39:46 +02:00
2023-09-07 10:35:14 -07:00
2023-10-19 10:39:46 +02:00
2022-05-04 22:22:59 +02:00
2022-09-12 15:33:24 +02:00
2021-01-22 11:40:00 +01:00
2022-05-04 22:22:59 +02:00
2023-10-19 10:39:46 +02:00