Re: [PATCH] powerpc/mm: Fix lockup on kernel exec fault
From: Michael Ellerman
Date: Tue Jul 06 2021 - 06:52:47 EST
On Thu, 1 Jul 2021 11:17:08 +0000 (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
> current->thread.regs->trap which contains the trap from user.
>
> For instance, when provoking a LKDTM EXEC_USERSPACE test,
> current->thread.regs->trap is set to SYSCALL trap (0xc00), and
> the fault taken by the kernel is not seen as an exec fault by
> set_access_flags_filter().
>
> [...]
Applied to powerpc/fixes.
[1/1] powerpc/mm: Fix lockup on kernel exec fault
https://git.kernel.org/powerpc/c/cd5d5e602f502895e47e18cd46804d6d7014e65c
cheers