Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1086546ybi; Fri, 31 May 2019 13:40:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8BrFf4YS/IQMluMdu85AW+sxB5LU00sSMehG2waUYiWhMGcZEDKN/AF/+yWfNj9o4MDVR X-Received: by 2002:a17:90a:aa88:: with SMTP id l8mr11607203pjq.65.1559335232098; Fri, 31 May 2019 13:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559335232; cv=none; d=google.com; s=arc-20160816; b=yP7nqdrd+dNey19lbC8MSV2kIbcOUDF8jIFNbZGPraT4v3hHWZxDdxntHfztcAM+MQ wT0NKc2r3ljmzI1ttUHpzw7G2l3lJKF6rnYCldXK8+6kgoa1DTz4+KjJdGJ53qrIbPgL shHbHVH2804p6O+6gddMwp04Y0DlF7jO+t+d9h8zsAuWnD3HWwv3MFCo5sbsTFROyWtV yfpWZ2AYO6vMfajEitPM+gzXl4iu0hiMLIH7uRiFPTHH9O3kcFjoDMiR1ujfeONy7fX9 Fno5f5hbMeZ7Ape01EDPCDvIkXxLlPSwrGlXQJSKEiZo85LrcA9IZGquKu6YaUu9W8u3 6QmA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=CJg5QUCA0uPT2F+o9Dh7JaPgMKMdBBZHboAZ09rcF54=; b=XUVaw9fpC6fapjaMcfK/uS1tbZBACi+nWiNa3ctGrbLfchq6g2hCNYlc3HS/Oq6KPu AIoLmc7VyNpuj9kSv88ik/QInfkotjGBU6WgFUrgTEG7X+9GQ0TDJT/UlW7nxV3gXKwf tU+GMl+FHLC9dehkc3m+/QcxcpunQl3HFt8wgAKw8Bj+uU41iIY4rMQ6rIjig5pFNbBY DnIE2lKHydOBX3J3RE8oOlmfR3K3Tis8qNYJ336dq4b4DMglb7gebK/5MF5wlGs/ChC6 cpi1ryRYXdDzgxC8MeOxl0atDt/EiWYL5ijxtTjY+OGP6SeklyfOYd84f5irjhOe51ZF zJjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=HfKC+uYB; 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 g7si7355355pgb.109.2019.05.31.13.40.16; Fri, 31 May 2019 13:40:32 -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=@linux-foundation.org header.s=google header.b=HfKC+uYB; 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 S1727615AbfEaUiu (ORCPT + 99 others); Fri, 31 May 2019 16:38:50 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:34963 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726711AbfEaUiu (ORCPT ); Fri, 31 May 2019 16:38:50 -0400 Received: by mail-lj1-f193.google.com with SMTP id h11so10878850ljb.2 for ; Fri, 31 May 2019 13:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CJg5QUCA0uPT2F+o9Dh7JaPgMKMdBBZHboAZ09rcF54=; b=HfKC+uYBIngRJFypqrkOc0/UKsvYuqY5793NSQ4XY5ZlXJ+nUBECGXpPw/5aGC59wy JFNPgtG+Ghy8dk7PmRHD9Jb6iiamQbvnEB3o/mJLZs5MdHJjv1mMjI0sDXPSMAIL9FZE M+O9r4iy3Y5UUwrhzyC/sNO6wPFFFmD2vNTz8= 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:from:date :message-id:subject:to:cc; bh=CJg5QUCA0uPT2F+o9Dh7JaPgMKMdBBZHboAZ09rcF54=; b=q5Z5WbOcLcJX66O5LKWJGV7WeGtiA5ZeiGpi4rZkaFILem2qTjudtr8io/xx+uQXUV 22NFV5sP+gDOAkUMH6VWKv1gBGiBObYuhn5U+tbxgs1zopIWv5Htk2CS2qIIcdZKDGGM OA4kAuvBthm1rw+xeoazMqtoWpG+eZxO8n+aA1bP1wExnnedHiWMEiMaJdb/y/HZyOC9 lef1K3L30pNzNXnMxRBWBN00NQxjKiHfXa3PgfUTDUrT/s4cQ40iQY/z2LRGTU9rRlib D0DjW/1WcNiguvkcSgYH9MoDhsqo02qm7gPqHPi/KfQ0BfqROzp8d+sJQKHfdv6XBZDY RrwQ== X-Gm-Message-State: APjAAAXEIC4BEzZhwuUf2/iRq6IbnIpl0PcQ/I9+jylWOuZfc1lH/Bhm SIu1QjF2qbM+CwcW31WZsijbwsPRDjA= X-Received: by 2002:a2e:7001:: with SMTP id l1mr7074142ljc.11.1559335127642; Fri, 31 May 2019 13:38:47 -0700 (PDT) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id s20sm973471lfb.95.2019.05.31.13.38.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 May 2019 13:38:46 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id a10so7611820ljf.6 for ; Fri, 31 May 2019 13:38:45 -0700 (PDT) X-Received: by 2002:a2e:97d8:: with SMTP id m24mr6980173ljj.52.1559335125640; Fri, 31 May 2019 13:38:45 -0700 (PDT) MIME-Version: 1.0 References: <20190529152237.10719-1-christian@brauner.io> <20190529222414.GA6492@gmail.com> In-Reply-To: <20190529222414.GA6492@gmail.com> From: Linus Torvalds Date: Fri, 31 May 2019 13:38:29 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 1/2] fork: add clone3 To: Andrei Vagin Cc: Christian Brauner , Al Viro , Linux List Kernel Mailing , Jann Horn , Florian Weimer , Oleg Nesterov , Arnd Bergmann , David Howells , Pavel Emelyanov , Andrew Morton , Adrian Reber , Linux API 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 On Wed, May 29, 2019 at 3:24 PM Andrei Vagin wrote: > > Thank you for thinking about time namespaces. I looked at this patch > quickly and I would suggest to move a termination signal out of flags. I > think we can add a separate field (exit_signal) into clone_args. Does it > make sense? For me, exit_signal in flags always looked weird... I agree - the child signal in flags was always just a "it fits" kind of thing, and that was obviously true back then, but is not true now. In fact, if we move it out of flags, we'd open up new flag values for the new interface, in that now the low 8 bits are freed up for more useful things. In fact, even for the old ones, we might just say that instead of the full 8-bit CSIGNAL field, nobody ever *used* more than 6 bits, because _NSIG is 64, and we've never actually had named signals > 31. (Yeah, yeah, somebody could use signal 64, and yes, mips has _NSIG 128, but realistically we could get two new clone signals in the old interface and I think nobody would even notice). In fact, all of the CSIGNAL bits are ignored if CLONE_THREAD or CLONE_PARENT is set. Linus