Re: [PATCH v11 2/3] ptrace: add PTRACE_SET_SYSCALL_INFO syscall skipping support
From: Oleg Nesterov
Date: Tue Nov 17 2026 - 11:23:44 EST
On 11/14, Renzo Davoli wrote:
>
> Extend PTRACE_SET_SYSCALL_INFO to support skipping a system call
> triggered via seccomp.
...
> Signed-off-by: Renzo Davoli <renzo@xxxxxxxxxxx>
> [v8: skip via seccomp_ptrace_skip_syscall() instead of syscall_set_nr(-1),
> separate ptrace_set_syscall_info_seccomp_skip(), reject later
> PTRACE_SYSCALL_INFO_SECCOMP updates during the same stop]
> [v11: report the stop as PTRACE_SYSCALL_INFO_EXIT once the syscall is
> skipped, instead of rejecting PTRACE_SYSCALL_INFO_SECCOMP explicitly]
> Assisted-by: claude-opus-5-5
> ---
> kernel/ptrace.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 47 insertions(+), 2 deletions(-)
Reviewed-by: Oleg Nesterov <oleg@xxxxxxxxxx>
Sashiko has some concerns
https://sashiko.dev/#/patchset/20261114181923.370930-1-renzo%40cs.unibo.it
but IIUC this is the "pre-existing" problem fixed by
[PATCH v3 0/2] powerpc/syscall: Fix the return value of skipped syscalls
https://lore.kernel.org/lkml/20261030084926.1068384-1-renzo@xxxxxxxxxxx/
so this change do not need to depend on the powerpc-specific fix above.
Right? Just to be sure...
Oleg.