Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3106881ybc; Thu, 21 Nov 2019 03:28:56 -0800 (PST) X-Google-Smtp-Source: APXvYqx4+E1FZ2X46TpPVx/T5Up6R8/BDBYDn/3m6E13GOWAXZJNnGRivHWzxt8sT6Df9t4MNrVR X-Received: by 2002:a17:906:af5a:: with SMTP id ly26mr13505960ejb.252.1574335736421; Thu, 21 Nov 2019 03:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574335736; cv=none; d=google.com; s=arc-20160816; b=TzPZEquBVrLiSv9HxxBdUasiQuZYfVY0KPe7jVTAlUrbGNu4TG3pqo/XXzbcLwZ26d 3dvRqUATd6b9tLHlAhvbpZ6jHwEDKJxlHz7fLFHH5BZNjB52PfkySzHT1vpqQWz0blGz 7fcWKuzGGQawcLiRRKtWAKKSFGbvIcC0jrrIJlmuwtTwwHO6qbWUWlqSwTlz9HdKiuDd VNyuR2Fc8J0L8Y2q7j7U+D51RwJwaAfEmclN5insdRqPRDhea1U0TWwP+7EeGeaOxtjk RUoQ7Gu8OjQtx14M+w11w3QoornTz/t7A3IWSqlsCTY0pp4lTK7AnnR9wP9F3MZQMkAN KF+g== 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=8F/1EMrMqiCIud3weHtiG0X4yALUJPB2SuIwyvEOrNE=; b=Najwd2zhmI66KZDvNvAMLnFD2rzDYWedZLKW8C8e+cMKE8RxA2Ss2ZOiohSYuqxR6d rc6/cp1aEjIJQ6IcwnfTrzQxsFgvj90U74qOmmvR9QbjHjHGj44LNVQPgu1ZRrG8g4kn FVEvEonC7yLxeJ3PlBZkhhlimTQOtvv8FxH/NQ0wxRrp6eLFszPl/Y/+B8i2pDS7Dkx2 s7EqnN0kvEu6p50d0PF7yd4bjex5qG3N8u1bGUZUgQYU0NmiMN6ytbOOoeez4VR8MlEC GbG+Op7MWbvFo3JfVzVjGT0UDi7FB5jgx9JSCrKKDIdYnn4RmrALNqFzdtWDfMZHlcNp ckzA== 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 cb6si1451537ejb.359.2019.11.21.03.28.31; Thu, 21 Nov 2019 03:28:56 -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 S1726689AbfKUL1a (ORCPT + 99 others); Thu, 21 Nov 2019 06:27:30 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:48327 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbfKUL1a (ORCPT ); Thu, 21 Nov 2019 06:27:30 -0500 Received: from [79.140.122.151] (helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iXkcL-0005p8-6z; Thu, 21 Nov 2019 11:27:21 +0000 Date: Thu, 21 Nov 2019 12:27:20 +0100 From: Christian Brauner To: "Michael Kerrisk (man-pages)" Cc: Christian Brauner , adrian@lisas.de, akpm@linux-foundation.org, arnd@arndb.de, avagin@gmail.com, dhowells@redhat.com, fweimer@redhat.com, jannh@google.com, keescook@chromium.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, linux-man@vger.kernel.org, mingo@elte.hu, oleg@redhat.com, xemul@virtuozzo.com Subject: Re: [PATCH] clone.2: Mention that CLONE_PARENT is off-limits for inits Message-ID: <20191121112719.lg3qxptnowjkpxlg@wittgenstein> References: <20191120104504.22411-1-christian@brauner.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 21, 2019 at 10:53:50AM +0100, Michael Kerrisk (man-pages) wrote: > Hello Christian, > > On 11/20/19 11:45 AM, Christian Brauner wrote: > > From: Christian Brauner > > > > The CLONE_PARENT flag cannot but used by init processes. Let's mention > > this in the manpages to prevent suprises. > > > > Signed-off-by: Christian Brauner > > --- > > man2/clone.2 | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/man2/clone.2 b/man2/clone.2 > > index f0f29d6f1..aa98ab79b 100644 > > --- a/man2/clone.2 > > +++ b/man2/clone.2 > > @@ -646,6 +646,13 @@ if > > .B CLONE_PARENT > > is set, then the parent of the calling process, rather than the > > calling process itself, will be signaled. > > +.IP > > +The kernel will not allow global init and init processes in pid > > +namespaces to use the > > +.B CLONE_PARENT > > +flag. This is done to prevent the creation of multi-rooted process > > +trees. It also avoids unreapable zombies in the initial pid > > +namespace. > > .TP > > .BR CLONE_PARENT_SETTID " (since Linux 2.5.49)" > > Store the child thread ID at the location pointed to by > > Thank. I applied, and then tweaked the text a little, > and noted the associated EINVAL error. In the end, the > change is as below. Thanks! Christian