diff options
author | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2023-11-30 17:36:01 +0100 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2023-12-05 18:47:11 +0100 |
commit | a58a173444a68412bb08849bd81c679395f20ca0 (patch) | |
tree | 14a283f3bd54258653db8a4fbfb899dedd6026d9 /tools/perf/scripts/python | |
parent | c7206e7bd214ebb3ca6fa474a4423662327d9beb (diff) | |
download | linux-a58a173444a68412bb08849bd81c679395f20ca0.tar.gz linux-a58a173444a68412bb08849bd81c679395f20ca0.tar.bz2 linux-a58a173444a68412bb08849bd81c679395f20ca0.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions