[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZW9jZDTkw3T9dBtS@alpha.franken.de>
Date: Tue, 5 Dec 2023 18:52:36 +0100
From: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
To: Jiaxun Yang <jiaxun.yang@...goat.com>
Cc: "linux-mips@...r.kernel.org" <linux-mips@...r.kernel.org>,
linux-kernel@...r.kernel.org,
"stable@...r.kernel.org" <stable@...r.kernel.org>,
Aurelien Jarno <aurel32@...ian.org>
Subject: Re: [PATCH] MIPS: kernel: Clear FPU states when setting up kernel
threads
On Fri, Dec 01, 2023 at 11:12:21AM +0000, Jiaxun Yang wrote:
>
>
> 在2023年11月30日十一月 下午4:36,Thomas Bogendoerfer写道:
> > 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@...r.kernel.org
> > Reported-by: Aurelien Jarno <aurel32@...ian.org>
> > Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1055021
> > Signed-off-by: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
>
> Reviewed-by: Jiaxun Yang <jiaxun.yang@...goat.com>
>
> Perhaps
> Suggested-by: Jiaxun Yang <jiaxun.yang@...goat.com>
>
> As well :-)
I've added both
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
Powered by blists - more mailing lists