Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1671460rdb; Wed, 31 Jan 2024 05:59:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpul8ibjgw3F+/WLRY8j11zCefLr8I4NSEWnR3nLrc83rZm/Nl/hsu/wrJe0abgSbgNUWj X-Received: by 2002:a17:906:7d56:b0:a35:c371:8b27 with SMTP id l22-20020a1709067d5600b00a35c3718b27mr1121886ejp.30.1706709556418; Wed, 31 Jan 2024 05:59:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706709556; cv=pass; d=google.com; s=arc-20160816; b=BhNISz3nzud+eBz5z+b83njvlVyqdhw6jpIYh9k3zlVGGgF/amTP1TA8FsoJS0Y6uc /2TlJH969p/O9rnpayNKmHuhon1STpyJCJrdXUT1LDfz4Iqz/vSx5WlWuOkh2o3vEhLp YtZoH4Asgdu6KrZ2iy+z4/vcgx7ySffE33M0xIqWeA6T3kFwlWoNtilT+5QHPOaeHWso RP5FvTxX8JgI+Sym/5bD2JgN6SU632wRjsfnlJgG+NrnpXbfZ1TWNqvIbOdMBJT5i0ll jQ4IW/gb/f4eV37X3Xno2HbhR5MvP2gtmhG4JvCrP3f0Sxhrg2cY5XuXhxF6FfATvQ5q owkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=orz7rdL8SR3f9zAkXlNG2bIgm3oG6oQ7nPnZ5CXAZlM=; fh=KY7LzQTQ8uN9GDh8xNCnpkRS6hTAYi+5Q/ptlMDdgos=; b=QfhZ/LhnXn0eFXqVnqY+ttWwWCI5KGuEvUx5M5zSFFfB5R0Cx6UIiUdF9mCZHPDA5g UrCy1o8URCIXlRRPnoAdRdbc6uCzerLrP2ClBCs0Fj48BfBzjtpeqJM9Xyytal9mKeWr oH4qfwE2xhnwvPyoHPVwWgW2NlDY0nNYeogwYV5wcgtpQdp1u2KoH9EpDOf8zj6XeTRS DDyJsDv8rt1sCIvCxXRhxY0k+DvWND2ilLmBVtmH8pdC5Hm484Txnj7dAwVWDruVLfkt 6F8jRwoQ3LPjWyAyX1s2z+hr3RcxtRFVaaencBdR7iZp5FmEFIkc+imRGOBEyuFbKsKx YXBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nwA9Q0ik; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46547-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; AJvYcCUB7kIOJYS/8h1WPKzQAOMdl8FNu44xncRaTkMwjbuUl3TTs94h4XcXsa3CLN1JcIxEJnyyI3ruYg8eQlqgWnucvsGokDItUWAFVe0xWw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l8-20020a1709060e0800b00a33b00b4a94si5664269eji.15.2024.01.31.05.59.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 05:59:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nwA9Q0ik; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46547-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E02C81F22366 for ; Wed, 31 Jan 2024 13:59:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97A0881AB6; Wed, 31 Jan 2024 13:58:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nwA9Q0ik" 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 C3DFB80BFD for ; Wed, 31 Jan 2024 13:58:57 +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=1706709537; cv=none; b=Ubwh0Lylr078gffkRrNygWoEa0rmnBSsqhkskHqSy7BnPn/dDcf0wYhqlDc/mfQIaGEyYNztW5jlL5AobuaDzfIKCcYDy6xBxO4kf/B6k8iJPpGSny+IZ+SxX9Sgknxn/dLKvR5WfAzJxKdNcAd6N9AhpUfusctccRPlpZRQ/QU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706709537; c=relaxed/simple; bh=nTzlQ/FNZhR5IkDOQ6Tuz0YJwtUD84KZOqRKzrWu48I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=H7+hZCPv6i05QwYQnHYLBWeu2zLSsdbAUY4yegnRaikVd6D/pZrbv/z9T3RkHjXtRzURMUJ0jHMHOdJBrL8drcQIp2npuyp3DRgcOZlxNI+5dKByoUT3SnXnoGYFl11y43J2tmYtiphbOma4VEndq/dMlXM86u5z4K4GYshxt9c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nwA9Q0ik; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA74EC433A6; Wed, 31 Jan 2024 13:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706709537; bh=nTzlQ/FNZhR5IkDOQ6Tuz0YJwtUD84KZOqRKzrWu48I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nwA9Q0ikGnQYaUrRB7Ucdxw7bz2jciqFRp/J0q4DMH7cGxsLJr/SDzGA7ZYx7TJG3 QcJ/C2F5ilr6lBAZZ0IKiKVeWoTI2Z254d8ATujQKwvZpHoOk+6RJMAXSA301p4PIM DG6op5ClZfnYvxOtHwDdlkYTRobry2YKviIbQSrq52NJmMwnhh4I9jN9PyfyNzKQUl RywwfBuKyp0gBpt4dVmXE/a/dEcaNelqWcELgYqN7a1DyOJJ38mmYuxEFZQQ9TM/jM qsbivuTri9LAGU2V1bqL8HV0Ut/6ulvelbJAFhUj6/1uAskOkRMHN2+YmenvzpIgpR c4i6LqlfRCAbA== Date: Wed, 31 Jan 2024 14:58:53 +0100 From: Christian Brauner To: Oleg Nesterov Cc: "Eric W. Biederman" , Tycho Andersen , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/1] pidfd: implement PIDFD_THREAD flag for pidfd_open() Message-ID: <20240131-knifflig-bestrafen-d7e53ebfc291@brauner> References: <20240131132541.GA23632@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 Content-Disposition: inline In-Reply-To: <20240131132541.GA23632@redhat.com> On Wed, Jan 31, 2024 at 02:25:41PM +0100, Oleg Nesterov wrote: > Please see the interdiff below. > > Also, I updated the changelog to document that the behaviour of > pidfd_poll(PIDFD_THREAD, pid-of-group-leader) is not well defined > if a sub-thread execs. > > Do you agree with this semantics? Yeah, that seems fine to me.