Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4150743yba; Mon, 29 Apr 2019 14:41:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7itxgWfpawjalrEW/hNOwAJ5sXHR0IRGydD0mnUzQl9FvLMOK0SOgKRRG79qyq4ML4+Qb X-Received: by 2002:a05:6a00:cc:: with SMTP id e12mr6822166pfj.207.1556574081737; Mon, 29 Apr 2019 14:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556574081; cv=none; d=google.com; s=arc-20160816; b=IvIS4N/2v24PxFxDMUJzNMmWrMvZ0UekR8S/yGhxzhMZxvTlwocADDM+ZQtxbVl29u LYnpz+2VVlH8oO6zGhvufcgOIodWmw4+vHsz/pIuEALqHg/qH3w623IE1U08DH416h4h 6NGIFkDotGZh4zhgBjpjofOEEipOvL6GUKMeJySWA7M0hq9xscu5fsOzVD/rWE3U+OtQ I5Mvl6oYX/+4FuMMU66Sp4z9igOSCpnirb4aWeR7Er9VWQOFBB+CICaWWMHzm5pDNVSS dFNRdCXk/lX0IpRVd/euEip9OoYCLca9470+PcUlG6WtfCvKylUY4f4xRTBP/XjdEaVM XKHA== 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=xn/5jS+m49YEHy9VewaGSeXNPslEqie8PTvJU6EXUNw=; b=jUUuge3GFTSSvUtL4HeuF8yq79LYzLjanGd/id2QF4bJJuvZRVUe9oC+qtnG0KJBs5 bUCS+bSjcpKEMn1o6B0obfhsAxVIG55YQMB6EaUkeAR0JN08A0GiZwwevLVffI90VFSe b4Ok/qIBKr9f7eH+FCYBsoTzsjinZdaCHPTV36nlqRgzni2KKPEKzgJdgmAGEda5YfoU To+B9Wt1evHpCX54Bx4oCX61LlU6D8m+qM71q+UdJvIa6e33orh4gbo+bGdkhYI+N5Xy zaC3+PaLgy6k814ZM8MA8aE2ns9LSCqoco/Fe41KYzdyL4eL3s+141xS/2K/8RKT9HMJ IO2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=hxFbqa4e; 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 bf9si17141993plb.85.2019.04.29.14.41.05; Mon, 29 Apr 2019 14:41:21 -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=hxFbqa4e; 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 S1729365AbfD2Vjg (ORCPT + 99 others); Mon, 29 Apr 2019 17:39:36 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:38750 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729252AbfD2Vjg (ORCPT ); Mon, 29 Apr 2019 17:39:36 -0400 Received: by mail-lj1-f193.google.com with SMTP id e18so4898146lja.5 for ; Mon, 29 Apr 2019 14:39:35 -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=xn/5jS+m49YEHy9VewaGSeXNPslEqie8PTvJU6EXUNw=; b=hxFbqa4ewa41rSYJkjywqzmK/JSCoGBv9pbM0qVpY7Jcn8QmH+hVBPBdi7+D/zJmdk nmh191WRMCDQnlnOa+BZyyPstDYFCZkzpGRd0yKcaYhaQ9NmaL1Wd+MyXvvygdZSo+wh 4K4v5k4yhv7oc8csttKN+MRZCq2FU2n6mdTIY= 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=xn/5jS+m49YEHy9VewaGSeXNPslEqie8PTvJU6EXUNw=; b=QpxnMYP4XDxxWgV0++z8R0nn9BpBQCGsR7g3FD6fhEqn42ckiuhRgW7EHE99dv6/et 9QjENIIJsv08Yv9a5PKe67pFFGafbDsZvWAT28dBGnvC+lnYaNOKje4VhkQQR8EmLTzr +OtCvmkmJhqdf2ah/XuAviiLdfPrBlQwi9EKgnb51ciqy3DHY4C4U82lCvnOU9gLJVhH qCcMltpXAH/LRSvKPq/qz+clGWvCtJhFuA9N7/uYxZmv49U/C51BWrlwD8azNP9eh1nO QlQFNLqJ7GiTdJi6P6/BK3tEmptufppDN4XdB7CtC+Qr2SwvGTq8c/P/Sxp6MmHjvAlk +xDA== X-Gm-Message-State: APjAAAUDKtGA77/VvWBz1mirguH6T5GJjd2gYc8fPapg5un9bmEu0ljT xykN6JF/1jgpkQB7VcHzRjkB3EggK1c= X-Received: by 2002:a2e:7605:: with SMTP id r5mr12689234ljc.161.1556573974394; Mon, 29 Apr 2019 14:39:34 -0700 (PDT) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com. [209.85.167.41]) by smtp.gmail.com with ESMTPSA id i64sm8165140lfe.18.2019.04.29.14.39.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Apr 2019 14:39:34 -0700 (PDT) Received: by mail-lf1-f41.google.com with SMTP id w23so9043877lfc.9 for ; Mon, 29 Apr 2019 14:39:34 -0700 (PDT) X-Received: by 2002:ac2:43cf:: with SMTP id u15mr3927622lfl.67.1556573506825; Mon, 29 Apr 2019 14:31:46 -0700 (PDT) MIME-Version: 1.0 References: <20190414201436.19502-1-christian@brauner.io> <20190415195911.z7b7miwsj67ha54y@yavin> <20190420071406.GA22257@ip-172-31-15-78> <87zho8bl8x.fsf@oldenburg2.str.redhat.com> In-Reply-To: <87zho8bl8x.fsf@oldenburg2.str.redhat.com> From: Linus Torvalds Date: Mon, 29 Apr 2019 14:31:30 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: RFC: on adding new CLONE_* flags [WAS Re: [PATCH 0/4] clone: add CLONE_PIDFD] To: Florian Weimer Cc: Jann Horn , Kevin Easton , Andy Lutomirski , Christian Brauner , Aleksa Sarai , "Enrico Weigelt, metux IT consult" , Al Viro , David Howells , Linux API , LKML , "Serge E. Hallyn" , Arnd Bergmann , "Eric W. Biederman" , Kees Cook , Thomas Gleixner , Michael Kerrisk , Andrew Morton , Oleg Nesterov , Joel Fernandes , Daniel Colascione 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 Mon, Apr 29, 2019 at 1:38 PM Florian Weimer wrote: > > In Linux-as-the-ABI (as opposed to Linux-as-the-implementation), vfork > is sometimes implemented as fork, so applications cannot rely on the > vfork behavior regarding the stopped parent and the shared address > space. What broken library does that? Sure, we didn't have a proper vfork() long long long ago. But that predates both git and BK, so it's some time in the 90's. We've had a proper vfork() *forever*. > In fact, it would be nice to have a flag we can check in the posix_spawn > implementation, so that we can support vfork-as-fork without any run > time cost to native Linux. No. Just make a bug-report to whatever broken library you use. What's the point of having a library that can't even get vfork() right? Why would you want to have a flag to say "vfork is broken"? Linus