From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=130.136.161.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796132488; b=0fzyHJm/4QJOBmuupfXKZtFkqootDUiBCjMlmbrATMfSC9Bszvo83ixvZtQ4EFXkvI68 mti/vnl4s7KuMFEe02/aqWV0aLVlVGExdqvP8l+OseMoWJXLGGdL7xzboSJd3Dc8TZUM/ v+1YI81KvSf7rmiw/NXYWcex0XughkGtG51SNoM3PG8ArI9U/RT4mXwQt7D8i5KD8u3Gb 7S3zBF+iBIeOcNB7TtdDQWRMQ/dz+9Mbruzhn0YpOISPvbGEbPeUExwLxje0B/sh2BnwM zNkD+5rDd0z4gUUa2r2sVrCAr85NxAHdyJRHhRI2cTN/x6t8q/TSKrMky62bzuz7A3g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796132488; h=DMARC-Filter:Received:DKIM-Signature:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=t3J6IPELVyiDEBXxC5ZOznVnpTKelL23GXNEbHiZKnM=; b=0VP3JXEnefy/eV36+0cd10AqDwkWU6ToKw8NzMQvoJq13LN6fC3sevw4PNXMl7NpM6LW XGmR4M6DBE1pPXj+5hPcZfMza71efjbe3z6dXW9kHozaFiIlyBFZ8X3qJAxLnz6XYU8cz HckVfuWaThttwOrOPFnDD/11qbi7CR7ypaf+F+DgUB4ZyNY1qvLDfVEZSqrgphbRLvbJT /VDLaYoQ8sykvImb4k5n4ly8ketxsBk1DxOe9+hEaOaxpZa1OFzzVTtjBxMZ22sequeFi oXzUyw7mrGkhWi9jBdK4xlYMnC3yux3s5j33VI5dxR4tEqqW0RfvAJgxkqnYfg56SXQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=cs.unibo.it; spf=pass smtp.mailfrom=cs.unibo.it; dkim=pass header.d=cs.unibo.it header.i=@cs.unibo.it header.a=rsa-sha256 header.s=virtlab header.b="U8rH/mha"; arc=none smtp.remote-ip=130.136.161.50 Received: from mail.virtlab.unibo.it (mail.virtlab.unibo.it [130.136.161.50]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8896E606A32E; Tue, 1 Dec 2026 13:41:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8896E606A32E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cs.unibo.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cs.unibo.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=cs.unibo.it header.i=@cs.unibo.it header.a=rsa-sha256 header.s=virtlab header.b=U8rH/mha Received: from cs.unibo.it (host0.studiodavoli.it [109.234.61.1]) by mail.virtlab.unibo.it (Postfix) with ESMTPSA id 3D7711C006E; Tue, 1 Dec 2026 14:41:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.unibo.it; s=virtlab; t=1796132475; bh=LqvTKvLq5GlTZ8EN0xeQYUootEyJ00K5AoYI4ZtJVIA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U8rH/mhauKgKNH8bkGJEEE8ybX8VYeofrjdxXD3r1vWja5oAHfIy7zOPpjERtkzLB jWDne8rBRovgpxl8FDKY7ADNBr2oUCL/gqNUgdfnZE5rj6fihttSiiw+LROThzg3lE r74KFajpEoJ6H8B1ASURtWqC9U52ZeN5jXPzN5VU= Date: Tue, 1 Dec 2026 14:41:13 +0100 From: Renzo Davoli To: Oleg Nesterov Cc: Kees Cook , linux-kernel@vger.kernel.org, Davide Berardi , Michal =?iso-8859-1?Q?Such=E1nek?= , Andy Lutomirski , Will Drewry , Thomas Gleixner , Andrew Morton , Shuah Khan , "Dmitry V . Levin" , Alexey Gladkov , Eugene Syromyatnikov , Thomas Bogendoerfer , Heiko Carstens , Vasily Gorbik , Madhavan Srinivasan , linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-kselftest@vger.kernel.org, strace-devel@lists.strace.io Subject: Re: [PATCH v11 1/3] seccomp: let the tracer skip a syscall independently of its number Message-ID: References: <20261114181923.370930-1-renzo@cs.unibo.it> <20261114181923.370930-2-renzo@cs.unibo.it> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 > > Assisted-by: claude-opus-5-5 > > Signed-off-by: Renzo Davoli > > I am not comfortable to review this change ;) Kees, can you take a look? > > But it LGTM. So FWIW > > Reviewed-by: Oleg Nesterov > > > > (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)