Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2581344imu; Mon, 19 Nov 2018 02:55:26 -0800 (PST) X-Google-Smtp-Source: AJdET5czNhLz6Z0JYQY1/aWjuV5l7kHeys4Z/TSoW/l/CaF/mvGOm/eOEL0PKp3iOlB5jr/KIN5V X-Received: by 2002:a63:9e58:: with SMTP id r24mr20157295pgo.264.1542624926746; Mon, 19 Nov 2018 02:55:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542624926; cv=none; d=google.com; s=arc-20160816; b=sRPUBnnVdYzd+jKc1tGF+Ti1DQa/1XiTCteFZ5MR62oscDWGUX1gfdcdFH7GtC1UHN qkjV9LEi8WjuDNbQJL6lsHBnJHI1QkZvwnSPMSUKkqAuzjCt8mWUXHEgHoR8PDnEU3Iz Pz2LUQ67l0u4SN5ypLPR0NeU58V1mh78JRA33PYAqwO3mjieSu2AKloQqeyZUagTRyWD JYuBFkWNTXajfx9IavCileyb+H/CVYl/RWVrgOOSRuu0qjN5v4LeuHlY+L8MQ8sm1jL6 9q1rlF5OUqlaRkhTlnW64xQcHdmkQHfAF9YMj0HDa0DjhfcmKOxR1TS3N3hjUNe0mrpF uS3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=42wENYtJciVPw2ZIj3TmpQ/xTNg8KM5ZLwpOCI8qjsE=; b=Zv/xy/aXJ6dpMDSRYI93BLIMJK/+ZWZR05bY6rxj7s0KD+UQZHoAL838tocB+36gml loNEr1eYep73o91u4IwQSaTug1a+XzFWqoFlqSiMcjlC/8pAKNMEvBrL4zQpUB+e5DRN jqqG3E1kBxB7kPanwuQuUSXeXOwsKG1o+IOvcqcJQBSgJtx3PPFAUHCLQ/+Yx/jrn6VS 8yfRPozDm219o1Mf3Fu+jQd7Vnf7PYOYTlmQn41VnmeTTiWWN81qDScL3INKvST1rDj5 2/IGT86/yJh5Ps8ipHs7gBQrllpzHvInqHUQjzFDUNL6BtfnKZ4gUeRwfIFCXIZM7V6d GpXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44-v6si43196127plc.244.2018.11.19.02.55.11; Mon, 19 Nov 2018 02:55:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728044AbeKSVRo (ORCPT + 99 others); Mon, 19 Nov 2018 16:17:44 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:41506 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727728AbeKSVRo (ORCPT ); Mon, 19 Nov 2018 16:17:44 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 2D7FD808CA; Mon, 19 Nov 2018 11:54:24 +0100 (CET) Date: Mon, 19 Nov 2018 11:54:26 +0100 From: Pavel Machek To: Daniel Colascione Cc: linux-kernel@vger.kernel.org, rppt@linux.ibm.com, timmurray@google.com, joelaf@google.com, surenb@google.com, Jonathan Corbet , Andrew Morton , Roman Gushchin , Mike Rapoport , Vlastimil Babka , "Kirill A. Shutemov" , "Dennis Zhou (Facebook)" , Prashant Dhamdhere , "open list:DOCUMENTATION" Subject: Re: [PATCH v2] Document /proc/pid PID reuse behavior Message-ID: <20181119105426.GD28607@amd> References: <20181031150625.147369-1-dancol@google.com> <20181105132205.138695-1-dancol@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eqp4TxRxnD4KrmFZ" Content-Disposition: inline In-Reply-To: <20181105132205.138695-1-dancol@google.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --eqp4TxRxnD4KrmFZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2018-11-05 13:22:05, Daniel Colascione wrote: > State explicitly that holding a /proc/pid file descriptor open does > not reserve the PID. Also note that in the event of PID reuse, these > open file descriptors refer to the old, now-dead process, and not the > new one that happens to be named the same numeric PID. >=20 > Signed-off-by: Daniel Colascione > --- > Documentation/filesystems/proc.txt | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > Moved paragraphed to start of /proc/pid section; added signed-off-by. >=20 > diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesyste= ms/proc.txt > index 12a5e6e693b6..0b14460f721d 100644 > --- a/Documentation/filesystems/proc.txt > +++ b/Documentation/filesystems/proc.txt > @@ -125,6 +125,13 @@ process running on the system, which is named after = the process ID (PID). > The link self points to the process reading the file system. Each p= rocess > subdirectory has the entries listed in Table 1-1. > =20 > +Note that an open a file descriptor to /proc/ or to any of its > +contained files or subdirectories does not prevent being reused > +for some other process in the event that exits. Operations on "does not" -> "may not"? We want to leave this unspecified, so that we can change it in future. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --eqp4TxRxnD4KrmFZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlvylmIACgkQMOfwapXb+vIWcgCgsctIy+DqihW9oEMKY1Wi1AnA qzYAn3IZnR7moGL2A7YiOIzYMdDX6wtW =pMnf -----END PGP SIGNATURE----- --eqp4TxRxnD4KrmFZ--