From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAD633AA1B8 for ; Fri, 3 Jul 2026 10:58:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783076336; cv=none; b=HHUy+5AcODy81ieTPZ6z6ScmQmqwe3K1imIlDCAuPM2E2eGDFZeBcbd+sbVYVVaIvQXv8M3CTRiNOFNlotr4DO6JaLUUhwaGUUA8VNc80GFxbhrUkWXbDljK8nLHkBZr81I7cjEmwRQH0uPLgBdL2raXZkipNNBTQLjfbUY44bk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783076336; c=relaxed/simple; bh=pKiSp62/aVruHutPWnMKMKTfeIunE2pJ8nLef23VvKk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LaR307X3NO1UbdCGZ9prSABP0qTp6u3Y9otgazcQpGgaFqdi5yWMMpsZxff2+HPTLMpOq81xLpQlGcAwwGgfikfC2LaQDbLBYNCwxLylMKZP0RgQfyH5qxkv9jp1/72mkZclHyYtmfq4w/1vJWleEdZv54WWx1zi4LqDoguGFZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=I8XMcGdH; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="I8XMcGdH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783076333; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6jkcqZJVyexKTM+zk5SCYB8+AkayMgmzLFHP3c5eO/I=; b=I8XMcGdHbQKNJVG1w1zz1jeH3t0YDiTGUDsEU33kacPlMH0Hp9YIOOy7q15eK0IlIaq9hO IAeQr6y2vrabhyvHvL4hKNntziPMNhakr/y4TU77JfY7q1jl+uY5rBuz8GEKatxKRCFjcQ JwQu2iAEgDfnHMcuZ91evoDHR7JMe+U= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-308-T4MOBs_3Ouyoeqy5oByppQ-1; Fri, 03 Jul 2026 06:58:48 -0400 X-MC-Unique: T4MOBs_3Ouyoeqy5oByppQ-1 X-Mimecast-MFC-AGG-ID: T4MOBs_3Ouyoeqy5oByppQ_1783076327 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4111A1800366; Fri, 3 Jul 2026 10:58:46 +0000 (UTC) Received: from fedora (unknown [10.44.32.112]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id EBD5036F04; Fri, 3 Jul 2026 10:58:42 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 3 Jul 2026 12:58:45 +0200 (CEST) Date: Fri, 3 Jul 2026 12:58:41 +0200 From: Oleg Nesterov To: Renzo Davoli Cc: linux-kernel@vger.kernel.org, Andrew Morton , Shuah Khan , Alexey Gladkov , Eugene Syromyatnikov , Davide Berardi , strace-devel@lists.strace.io, "Dmitry V . Levin" Subject: Re: [PATCH v2 1/5] ptrace: PTRACE_SET_SYSCALL_INFO syscall skipping support Message-ID: References: <20260703105027.539399-1-renzo@cs.unibo.it> <20260703105027.539399-2-renzo@cs.unibo.it> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260703105027.539399-2-renzo@cs.unibo.it> X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 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.