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.129.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 4FB4839DBD4 for ; Fri, 3 Jul 2026 09:58:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783072708; cv=none; b=hvOqp1kuB63DBusBkbxbMYr/nzVaV0DxbZ+ySqKazeO434VpGO4FLcMRmx5jLssW7QmfvVpxbv2yxF2GMfIXgAThTu3m/7kPllXFMXA9yH3FSmzQoU+A4wkJGD1wblNJr2mtm+06qPsjLj3/P1DgXVYvj8uhaWO80nvFj50ARPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783072708; c=relaxed/simple; bh=hSc5LsKrRT6gvPtG3cUiMDcNTYVCw9ZQVqVuj0wwMUU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uxIA1mbf5PZly8e3Q8ncyCgLglwjKWf8f8HOyM9/1YBMQV8/6DJMpn+xiz5jedgaiCv+glxVaRI2LaBeiwCyxF0En2trBultDfXbzb9+ZGj+6lw5v6t3bULeiq/PSTAG5kHuNYYJxKd1q+fyCfMa745QQ6y8SiLGnAEvyriUG5k= 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=Lr2J/3SF; arc=none smtp.client-ip=170.10.129.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="Lr2J/3SF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783072703; 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=Ft72YYXowL6x6n48Lp2BIPMs5uAZ/xTnnDnVeDQm0wM=; b=Lr2J/3SFuQzDFuTXDAxbt9s+gYluxaNR1kPQOVin2SjyiO4abv2HmcwAnftV/3IaWBf4K8 yvN7BddKKyps+wlZFMIQ0CeKHgPaijDj8IQ5ARJSv7//eaVxoGeTouxYoOPv1a20FTh1X8 yI/NN+q2b8PfIyshLIen7fx1MEgZAHs= Received: from mx-prod-mc-08.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-141-RD0ruK6aOkK5lR3x7MmK8w-1; Fri, 03 Jul 2026 05:58:20 -0400 X-MC-Unique: RD0ruK6aOkK5lR3x7MmK8w-1 X-Mimecast-MFC-AGG-ID: RD0ruK6aOkK5lR3x7MmK8w_1783072698 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 59F5B18C0FF6; Fri, 3 Jul 2026 09:58:16 +0000 (UTC) Received: from fedora (unknown [10.44.32.112]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 0ADB81800611; Fri, 3 Jul 2026 09:58:12 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 3 Jul 2026 11:58:16 +0200 (CEST) Date: Fri, 3 Jul 2026 11:58:11 +0200 From: Oleg Nesterov To: Renzo Davoli Cc: "Dmitry V. Levin" , linux-kernel@vger.kernel.org, Andrew Morton , Shuah Khan , Alexey Gladkov , Eugene Syromyatnikov , Mike Frysinger , Davide Berardi , strace-devel@lists.strace.io Subject: Re: [PATCH 1/5] ptrace: add PTRACE_SYSCALL_INFO_SECCOMP_SKIP Message-ID: References: <20260701150558.330348-1-renzo@cs.unibo.it> <20260701150558.330348-2-renzo@cs.unibo.it> <20260702110755.GA16303@strace.io> 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: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 On 07/02, Renzo Davoli wrote: > > On Thu, Jul 02, 2026 at 04:47:08PM +0200, Oleg Nesterov wrote: > > On 07/02, Oleg Nesterov wrote: > > Wdyt about something like below? > > I like it. Good, > I have one comment: > > + if (ptrace_get_syscall_info_op(child) != info.op) { > > + if (info.op != PTRACE_SYSCALL_INFO_EXIT) > > + return -EINVAL; > > + force = true; > > + } > > I have found the behavior "negative syscall number => skip syscall" defined > only for PTRACE_EVENT_SECCOMP in the manual. I'd restrict the option to this > case, for safety. Well, this simply means that the manual is incomplete. And whatever we do, we will need to update it anyway when/if we add the new behaviour. I don't think it makes any sense to restrict the new feature to _SECCOMP... > A minimal detail: I'd also rename "force" into "skip" or "skip_syscall", just > for the sake of readability. Ok, I agree with any naming. > Dmitry: does this proposal have counter effects for strace? Oleg.