Re: [PATCH] powerpc/mm: Fix lockup on kernel exec fault

2021-07-06 Thread Michael Ellerman
On Thu, 1 Jul 2021 11:17:08 + (UTC), Christophe Leroy wrote: > The powerpc kernel is not prepared to handle exec faults from kernel. > Especially, the function is_exec_fault() will return 'false' when an > exec fault is taken by kernel, because the check is based on reading >

Re: [PATCH] powerpc/mm: Fix lockup on kernel exec fault

2021-07-01 Thread Christophe Leroy
Le 02/07/2021 à 03:25, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of July 1, 2021 9:17 pm: The powerpc kernel is not prepared to handle exec faults from kernel. Especially, the function is_exec_fault() will return 'false' when an exec fault is taken by kernel, because

Re: [PATCH] powerpc/mm: Fix lockup on kernel exec fault

2021-07-01 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of July 1, 2021 9:17 pm: > The powerpc kernel is not prepared to handle exec faults from kernel. > Especially, the function is_exec_fault() will return 'false' when an > exec fault is taken by kernel, because the check is based on reading >

[PATCH] powerpc/mm: Fix lockup on kernel exec fault

2021-07-01 Thread Christophe Leroy
The powerpc kernel is not prepared to handle exec faults from kernel. Especially, the function is_exec_fault() will return 'false' when an exec fault is taken by kernel, because the check is based on reading current->thread.regs->trap which contains the trap from user. For instance, when