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