Re: [PATCH v3 0/2] powerpc/syscall: Fix the return value of skipped syscalls

From: Renzo Davoli

Date: Thu Nov 19 2026 - 05:35:11 EST


On Fri, Oct 30, 2026 at 09:49:23AM +0100, Renzo Davoli wrote:
> When ptrace or seccomp skip a system call on powerpc, the return value
> they set is lost or the tracer is affected:

Hi Madhavan, Michael,

gentle ping on this series.

It fixes a bug already present in mainline: on powerpc a return value
set via PTRACE_SET_SYSCALL_INFO for a skipped system call is lost, and
syscall_set_return_value() sets TIF_SYSCALL_RET on the tracer instead
of the tracee. This currently breaks the set_syscall_info selftest
and seccomp_bpf user_notification_basic on ppc64le.

The series still applies to current mainline. Please let me know if
anything needs to be changed, or if I should resend it.

Thanks,
renzo