Thread (4 messages) flat view 4 messages, 3 authors, 2021-07-06

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

From: Michael Ellerman <hidden>
Date: 2021-07-06 10:52:47
Also in: lkml

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help