Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1899441ybp; Fri, 11 Oct 2019 23:57:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqy423Lk8T8slDOojlPyb+VzsmLYxYfJDTOUp8hx730qpYVLibwsVOxfpkhyZndNfRt9eko4 X-Received: by 2002:a17:906:474d:: with SMTP id j13mr17902003ejs.166.1570863468699; Fri, 11 Oct 2019 23:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570863468; cv=none; d=google.com; s=arc-20160816; b=rW6jwTi+MhiIFazuyn7RGjmjCRVZI48myacot5bqc8x/YNW7PbLhFokJR9SqgSSFU/ A+9AxdddCipIMAnk+kIBKiMub+Yriss7YNMIevQ9g8w9jyQDp2WYYEBRhcGOwitfOjqo bDrv/+uutM/1FmDg4uoDU9g/+t+jLsrFvijnnqUqbSYC6fKFuSvaXbbibm1MgX29/fgn rROWDS5ejvAGoWJUpQABNKWFLzJ8hsCvjIPMX1Fs/TVkDxKR2AKvQ3dgNpOovt3Ugn22 Ibl9uVTMNWyaDeARHdgCQJ7IE2oD8GqzPEZ4s6soybL/hz5AnfS19IThT3ZvLQkPJ984 ncsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=BHDcnsQSrbWE+Pwo7S+n8GHA2q4eny0JAFUJGKe7xZ8=; b=QZcC0bLNfWwyvlwzjPMxn/G+OC+jDEHo22My7rEm24rWTff4nCKflz3xMMwiL98aFt 7ywSeCl2Q1l8z/dGlL3fWbNiXN5HPQoEmH/HLKLa4/X0wyIsTmrmcqOx4QDPN15WTIPW HKKqVRoQ+VfMeihNk4Gm1r1uM9kxU/NlGvWPlsxHCDFxGzo6ovp3Wn+DlRLrbvIf6H0a MxtwhaECZNNvGpYO/kPmWwAhkH51wdZXiyt9TFJmzIOIRVy4FeYYJN7sPJrQhr0PAjfi +0+BgRo4DFMWj4eTcZ/jTXW+/IIsKX9j6woPQeBrsv0ow8rIaSy36Gkp80SH1Omwyupg 6NvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PbU0a8ko; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w34si8274647edc.252.2019.10.11.23.57.25; Fri, 11 Oct 2019 23:57:48 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PbU0a8ko; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729184AbfJLGxs (ORCPT + 99 others); Sat, 12 Oct 2019 02:53:48 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:35414 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728821AbfJLGxs (ORCPT ); Sat, 12 Oct 2019 02:53:48 -0400 Received: by mail-ed1-f67.google.com with SMTP id v8so10565719eds.2; Fri, 11 Oct 2019 23:53:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=BHDcnsQSrbWE+Pwo7S+n8GHA2q4eny0JAFUJGKe7xZ8=; b=PbU0a8kowD3t6HBy71saesdP3fKlVa1vMs/phqLjOSTHNJKbukN3u4Tyw9JBYTjfGK KmjzoK9sb6/xvZtwS8NTny6aibTAjo9w830m/FVcOSEmeFlewHjgCWFjLA+mAYpESwL2 dCI6N/Gk/gs51Hlh21r0vZZsjgEB0Xj3xfhVTiAE7Z3rTQzx0kpRLu4Ux+XjL/NMf940 VUgjoXAcZq/oplrXxk6tTvgQiYQpyrsxkI8Td0rRZh/q3On+yiAM62rjCwjOMjTAfn7y 4Xh6Dw1JvVN8hkEQh/TnEtedqvIlQc7gU9wdiJtJkm05Mjs+2zdTWXCclY3CwXFrxap+ xM6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=BHDcnsQSrbWE+Pwo7S+n8GHA2q4eny0JAFUJGKe7xZ8=; b=P86Q/i/6HQ0AhQAEuqsV1U12x+nQA6XvmfWvWsgIUWaxY0HqYwYTgql8x+mcqsMVGn oZ48u9C/20AKMiJU3eUhFdjG5kva2IBa1OjAR3dN+jkux1HrNjoaRWh4w1AP3pfloaWP um20eo6OieRHVp304VSQ/xzm9k54IDaDXWqplLQbqiWkujU8U/vSNDo0FFMXDZZyBBcC VamOG6sYku0Aj9/X80AtDOJTLVozVAsAiSTYGU4ug7b/gPmyS+2HzB/2UVe3jmszwqAv yFqVY1JXCUSegqvR4FZwnUGMMtJ0qwaH+gKf4nNlW9vhAsdmB2kUX8Y4Xr+e24ptrHQc obEw== X-Gm-Message-State: APjAAAUtWAm3bCK2E8fP+doT6mrakWLDMNJlzxA5paeKI8B4l9JzF93O +6WO74RvSk/LlVvT3fTJkqU8xKAyhr1rPb1kk5s= X-Received: by 2002:a17:906:792:: with SMTP id l18mr17349024ejc.170.1570863226323; Fri, 11 Oct 2019 23:53:46 -0700 (PDT) MIME-Version: 1.0 References: <20191010133518.5420-1-christian.brauner@ubuntu.com> <20191011221208.5eglbazksfigliob@yavin.dot.cyphar.com> In-Reply-To: <20191011221208.5eglbazksfigliob@yavin.dot.cyphar.com> Reply-To: mtk.manpages@gmail.com From: "Michael Kerrisk (man-pages)" Date: Sat, 12 Oct 2019 08:53:34 +0200 Message-ID: Subject: Re: [PATCH 1/2] clone3: add CLONE3_CLEAR_SIGHAND To: Aleksa Sarai Cc: Christian Brauner , Linux Kernel , Oleg Nesterov , Florian Weimer , "libc-alpha@sourceware.org" , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Shuah Khan , Andrew Morton , Michal Hocko , Elena Reshetova , Thomas Gleixner , Roman Gushchin , Andrea Arcangeli , Al Viro , "Dmitry V. Levin" , linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Aleksa, On Sat, 12 Oct 2019 at 00:12, Aleksa Sarai wrote: > > On 2019-10-11, Michael Kerrisk wrote: > > Why CLONE3_CLEAR_SIGHAND rather than just CLONE_CLEAR_SIGHAND? > > There are no more flag bits left for the classic clone()/clone2() (the > last one was used up by CLONE_PIDFD) -- thus this flag is clone3()-only. Yes, I understand that. But, I'm not sure that the "3" in the prefix is necessary. "CLONE_" still seems better to me. Consider this: sometime in the near future we will probably have time namespaces. The new flag for those namespaces will only be usable with clone3(). It should NOT be called CLONE3_NEWTIME, but rather CLONE_NEWTIME (or similar), because that same flag will presumably also be used in other APIs such as unshare() and setns(). (Hmm -- I wonder if we are going to need a new unshare2() or some such...) Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/