Re: [PATCH v11 1/3] seccomp: let the tracer skip a syscall independently of its number
From: Renzo Davoli
Date: Tue Dec 01 2026 - 08:41:32 EST
Hi Kees,
gentle ping on this one. Oleg has reviewed it, and the only open point is
the new ptrace_skip member in struct seccomp.
If you'd prefer it stored elsewhere, I'll rework the patch.
Thanks,
renzo
On Tue, Nov 17, 2026 at 05:54:34PM +0100, Oleg Nesterov wrote:
> On 11/14, Renzo Davoli wrote:
> >
> > Add a per-task flag which the tracer sets with
> > seccomp_ptrace_skip_syscall() while the tracee is stopped at the
> > PTRACE_EVENT_SECCOMP stop, after it has set the return value. When the
> > tracee resumes, seccomp skips the system call like for
> > SECCOMP_RET_ERRNO, which every architecture already handles without
> > touching the return value.
> >
> > The flag is cleared by the tracee before the stop and written by the
> > tracer only while the tracee is stopped, so it needs no locking: the
> > wake-up of the tracee orders it like the registers written by the
> > tracer.
> >
> > The next patch uses this in PTRACE_SET_SYSCALL_INFO.
> >
> > Suggested-by: Michal Suchánek <msuchanek@xxxxxxx>
> > Assisted-by: claude-opus-5-5
> > Signed-off-by: Renzo Davoli <renzo@xxxxxxxxxxx>
>
> I am not comfortable to review this change ;) Kees, can you take a look?
>
> But it LGTM. So FWIW
>
> Reviewed-by: Oleg Nesterov <oleg@xxxxxxxxxx>
>
>
>
> (As for the new new member in struct seccomp... we can probably avoid it
> if you don't like it, but .ptrace_skip looks like the simplest solution
> for the start)