Re: [PATCH v2 1/5] ptrace: PTRACE_SET_SYSCALL_INFO syscall skipping support

From: Oleg Nesterov

Date: Fri Jul 03 2026 - 07:07:04 EST


On 07/03, Renzo Davoli wrote:
>
> This patch extends PTRACE_SET_SYSCALL_INFO with support for skipping a system
> call triggered via seccomp.
>
> When the tracer retrieves a ptrace_syscall_info structure with
> op == PTRACE_SYSCALL_INFO_SECCOMP,

... or PTRACE_SYSCALL_INFO_ENTRY

> - /* Changing the type of the system call stop is not supported yet. */
> - if (ptrace_get_syscall_info_op(child) != info.op)
> - return -EINVAL;
> + /*
> + * Changing the type of the system call stop is
> + * not allowed, with the following exception:
> + * PTRACE_SYSCALL_INFO_SECCOMP can be changed to
> + * PTRACE_SYSCALL_INFO_EXIT to skip the system call
> + */

ditto

Oleg.