Thread (2 messages) flat view 2 messages, 2 authors, 6d ago

Re: [PATCH V6] powerpc/syscall: Fix syscall skip handling for seccomp and ptrace

From: Madhavan Srinivasan <maddy@linux.ibm.com>
Date: 2026-08-06 04:17:14
Also in: lkml

On Fri, 31 Jul 2026 13:45:21 +0530, Mukesh Kumar Chaurasiya (IBM) wrote:
After enabling GENERIC_ENTRY on PowerPC, syscall_enter_from_user_mode()
returns -1 as a sentinel to signal that seccomp or ptrace has intercepted
the syscall and already set a return value via syscall_set_return_value().
system_call_exception() was not handling this sentinel, and since -1UL
is >= NR_syscalls, the code fell into the out-of-range path and returned
-ENOSYS, overwriting the errno already placed in regs->gpr[3].

[...]
Applied to powerpc/next.

[1/1] powerpc/syscall: Fix syscall skip handling for seccomp and ptrace
      https://git.kernel.org/powerpc/c/69cb2be898be6d5826cacd1a628f6945a24480b6

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