Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3039457rdb; Tue, 6 Feb 2024 05:40:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOD9IME8u+S5DadlNFJOCrYILqVB/dtNbc+7esrJNN1MCqPvHg1zZbIUlbx3MY4fJQwTUY X-Received: by 2002:a05:6a00:22cf:b0:6db:bd97:3194 with SMTP id f15-20020a056a0022cf00b006dbbd973194mr4776575pfj.1.1707226821867; Tue, 06 Feb 2024 05:40:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707226821; cv=pass; d=google.com; s=arc-20160816; b=AF/gRxwNL9Ej4YBfRGWhveNWaZqVB3VekOOCUhlxEP/6EG95knuKNbH7CkZb4ZUFBr baW8aCDrr7Y02w4soi1+pm6sf5xJgTL1UL3mRR9QhqAQ70zTWdn1AC9Boe73ik5k5bCS FRCHfZjbSb+X7/DHY6nGssPCZDdbIa+n3VcxtfTgZ4nMGZMSsRjY2vS/565W4Mb6BFu0 MAO9HrsGn7JZAnhz7RxteYcuL6mPdkFeS1zrby5U+c0jWD0XhTT2SXdyYwzbRAeOGT2t /SvcuGYmP2fKlArjj4HYGVHS63Y1qETF+OF7W2dVB6tEkxbIPpcpiHzXuqEK+XPqaMp2 9kAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=CX3Pa0e1Vc6uQ/qWad51/jSB4hhWZ+7lCT2852X5fFc=; fh=A9GeZrzfP+i+uChEPZjY3fv1m1hZfABs3mb0X8sN/S0=; b=WWIqhoFziKjVGGiaeB7axCiu2hmfXIRh5Gyv4yUNVymBydrv/QXIj59TCGFfRtk1LN oVEIGJzRRC0cgLC2/8VDImjPM+KoPXOPVND7VZ5M60mLr9VTKVhUbaWKItOOOslefrhR Uqazkkm0gb10UCE6lzRSxFO8t5sgq8fDq5KGwMh5DlymTCVUorYbS9zrPt2wJtfc4TZa YEp4A4/UQ2vfBq9y9+qO+fmRddYcO/Ey1REMYxNhzqOFvWjqUX78eBTEIY22K9r0bVcq azd7PcCftc4FB+9bNUgzUPH+kp3rifiBQGHofSM9B7010aD9ODZTuRxfmldwDaYdXsKL e2EQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kVPpRnZn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCV3TPsc2yZ6AHiGSY8Jnc0bowErc4Q35LbTPDC9wPjjMomYta3ltmrAPsIpZGJXZwk5pPcaiqTQ9PlJ+qkslapESr14hEj1S4FCl28h/w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y22-20020a056a00181600b006dddd2876dfsi1642132pfa.295.2024.02.06.05.40.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 05:40:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kVPpRnZn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 86E57283FA5 for ; Tue, 6 Feb 2024 13:40:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3AAC131734; Tue, 6 Feb 2024 13:40:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kVPpRnZn" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D33E7130ADC; Tue, 6 Feb 2024 13:40:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707226812; cv=none; b=sSA66zoxzrAmbS/hXJt/ko7soBgQN5EGF5ZJQEdec1IDy5F38YxNT7HDKeugGr86pwsUTPgx28J/rBr8RLIayaQi8pkkYFCx8JRyiaI+j1dB+dcS+kd76vTzdtSrdmFUdUusj2TA9NGZV1IUQ6zG8OqsPzOFOJSvvn6Nh8NktCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707226812; c=relaxed/simple; bh=YkVNUHuBGk93qbvqheqr1gUUEeEU4IZP6E7rtwwMssw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pRpqmkPFJtPwnvgefH+f0q0eXe/XojhBUZeORUkRhLFwF+4Rn8h9qtefuDGZtYxwM/2w7yuVT/p+7M3Y/XWJsZ3tgHZhTu6l1pnnX2ub7t/btFiPpE9BTvci0YZxhsn8u5kt9oU+pzd5TGlwUpgNuWsngnXQ9TShZwvFnANuBRA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kVPpRnZn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FC7CC433F1; Tue, 6 Feb 2024 13:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707226812; bh=YkVNUHuBGk93qbvqheqr1gUUEeEU4IZP6E7rtwwMssw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kVPpRnZnFtaMxwTo8tHP0GHU5KnSJoDoIVOn6UGPTSTCzxJguSke6MAk+bPKpO0YY RrbJ3L00/ms7jmrUjIbBDBnY9H/vXRJoByaJa1c2eIPqWu+5Y240H46zeuEgAnIT80 O5CBY6HIa/H6KKDiK9+CiY2VY7KGfYnea07JBJlskSjPeGWhKOh7FoVLHQVRZ4QiG1 Ddni2WOGkHoWohaVyyzsVPImmtVWsMajireA9OBal8YCQmJSnX1fvyZHDas4JAQ+eU MV+aDDK0rFK5Ca0RN7mU4XmYqNm5WjMCyehNhNdfz77GhF5CKBmXZOrBNDhyns9aTh cCSRgyrDSoV5g== From: Christian Brauner To: Oleg Nesterov Cc: Christian Brauner , Andy Lutomirski , "Eric W. Biederman" , Tycho Andersen , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pidfd: clone: allow CLONE_THREAD | CLONE_PIDFD together Date: Tue, 6 Feb 2024 14:40:01 +0100 Message-ID: <20240206-gelandet-einrichten-6d3365011635@brauner> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240205145532.GA28823@redhat.com> References: <20240205145532.GA28823@redhat.com> 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="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1076; i=brauner@kernel.org; h=from:subject:message-id; bh=YkVNUHuBGk93qbvqheqr1gUUEeEU4IZP6E7rtwwMssw=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaQeMts8Qc3IyzLieEj6g6O5HrKVNaUPJYIjHTZdV3Zpu +d5eWlwRykLgxgXg6yYIotDu0m43HKeis1GmRowc1iZQIYwcHEKwET45jEy/HezC+RY/Ga5KG+f f120Y379Frew8AQViRmHZwreKEz/yvA/s37GmiuCVheuMvnyxd1zP251Qv/Ow7wXT6cJzRSytS5 lBwA= X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit On Mon, 05 Feb 2024 15:55:32 +0100, Oleg Nesterov wrote: > copy_process() just needs to pass PIDFD_THREAD to __pidfd_prepare() > if clone_flags & CLONE_THREAD. > > We can also add another CLONE_ flag (or perhaps reuse CLONE_DETACHED) > to enforce PIDFD_THREAD without CLONE_THREAD. > > > [...] Applied to the vfs.pidfd branch of the vfs/vfs.git tree. Patches in the vfs.pidfd branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.pidfd [1/1] pidfd: clone: allow CLONE_THREAD | CLONE_PIDFD together https://git.kernel.org/vfs/vfs/c/572a94c5290e