Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2622300ybb; Sat, 30 Mar 2019 09:25:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaVSXB0SsZIqDy5Iog4Q35s8lqRBNubpVO/VE0EF0l4j9nwwiBCi13v4w0wS5wembb+Jem X-Received: by 2002:a63:720e:: with SMTP id n14mr3746343pgc.93.1553963135886; Sat, 30 Mar 2019 09:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553963135; cv=none; d=google.com; s=arc-20160816; b=dLmfhYT8j6SLvat41FbiIkq5d+bYX84pwykA4zGEzI/liOHnVI5K7fqU+daQkky8BD MYUcIRG+1WJ7cN4K0PH7ooJQw897oP1Y9f2Uzpm2U/9E5oocBZe44qBFde/Xex7LbzFG uElh29XQ9iRIn9kMaQKkUIOaxK4ItDV2rVmGOlLdDGlj3/7WcojcCKgaFZiw5vNGqNOX HNhID/PaTqgKOl+BA+CciqbSg9BgYae2h80tuNdkaUf6oBaSGdRkn1ZAII9pSGXFyb+b kGy6fQo6Xtj98hFynciT0ICpLxm3TiQw79XHMB4Zq5QsDwNmMw5qyFzXgpEftjj0RuCW iM8g== 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=Dbf9YjHg9/21PLwzpfRAxu8vfMgIUFianSuRN5KFOGs=; b=TaIPUnM4Kdki8SRLqVYk3yLkr6BmlWrfcz5JWXkbb9DJTqXeLqQU3Wz9xyojXoNnap y0vEUCjQGEb4EMcHa3l13orstcVyH8fUjxPg8p1uHpbfaelqBzSc/M0oaWgfL+2cKDP8 9qacX5iyK+JX5k5hz/WIqBte/DZB8z46Ajv8aGtOKx4Kf8B5qpj49CH5V11pQnqvxAJ4 BOnrjHMX6cgh4JqQ3Okuj0gsBzLV95KWI6gjfZFdIWYFVk8sFrQP7trmRUmC/nOVd5gm iqqG3VBDTDZTtnwc0mGVVIhIUyw93jo2HqQ4B56v5CVvNvAs2plYwbGgi4fDoA3y/7EI s4Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=eQoUyd2t; 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 127si4827862pgf.595.2019.03.30.09.25.20; Sat, 30 Mar 2019 09:25:35 -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=eQoUyd2t; 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 S1730928AbfC3QYo (ORCPT + 99 others); Sat, 30 Mar 2019 12:24:44 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46369 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730537AbfC3QYo (ORCPT ); Sat, 30 Mar 2019 12:24:44 -0400 Received: by mail-lj1-f196.google.com with SMTP id h21so4486640ljk.13 for ; Sat, 30 Mar 2019 09:24:43 -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=Dbf9YjHg9/21PLwzpfRAxu8vfMgIUFianSuRN5KFOGs=; b=eQoUyd2tmJM4OZzMMJJ3rYIZ6iM6IrqaVaXTXgJ5Kr6/EN9kDGymKsj6qpVNG7Qr3W KVCh11VP2ChmbmPhfkkp1CZHmr+lF05mlzfg9Jx0bcL3ZHyx06KmvYYApjRHt4QKa0xy IcuyAxIfgPkMVJFw+7JOx4Gob/AfD3glfZOzw= 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=Dbf9YjHg9/21PLwzpfRAxu8vfMgIUFianSuRN5KFOGs=; b=PLkonJUIDdnVkKdhLGdexzupD0EW35oaOFYCpOmeuD41lNIFDJlBzlHb8uMuu1u1Sw vUaeiJWYBkjYzjIYt6snvbLUgOAWxObwvFebkUT6F/Vt9pwVFWJ66HfXKUp3ROLgR0gx ejTa6w/HOcf1FpnrJjiWgFd3hood1p+8Y1luf7vo+CCaI1+QYiiXNCE1BXD3riDQOdlb 3cbj+AkbGpX/duWA/qAdCpT6PKfVzxRcYBk2jAPMjz5+4NiFAjf+R1lsQhskIGGpsLzH 8HFZkvPdSTl7vbH1x/k0nJPK5y1SEo00i/n277jOQ8+ON3Aho5Y49X5NhNF/dZvqRGTy e7ng== X-Gm-Message-State: APjAAAXMk+Prkdafl/ANixZAY/LkV5zlmTB1pSxt5an6XGzaY7ksK6SW eJR5+JwC+FNmc9PXLu5nq4iR+uLuXPQ= X-Received: by 2002:a2e:97d3:: with SMTP id m19mr30048752ljj.63.1553963081569; Sat, 30 Mar 2019 09:24:41 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id s10sm882048lfc.20.2019.03.30.09.24.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Mar 2019 09:24:40 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id m13so3451063lfb.6 for ; Sat, 30 Mar 2019 09:24:39 -0700 (PDT) X-Received: by 2002:ac2:4424:: with SMTP id w4mr27965950lfl.148.1553963079676; Sat, 30 Mar 2019 09:24:39 -0700 (PDT) MIME-Version: 1.0 References: <20190329155425.26059-1-christian@brauner.io> In-Reply-To: From: Linus Torvalds Date: Sat, 30 Mar 2019 09:24:23 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/5] pid: add pidfd_open() To: Christian Brauner Cc: Jann Horn , Andrew Lutomirski , David Howells , "Serge E. Hallyn" , Linux API , Linux List Kernel Mailing , Arnd Bergmann , "Eric W. Biederman" , Konstantin Khlebnikov , Kees Cook , Alexey Dobriyan , Thomas Gleixner , Michael Kerrisk-manpages , Jonathan Kowalski , "Dmitry V. Levin" , Andrew Morton , Oleg Nesterov , Nagarathnam Muthusamy , Aleksa Sarai , Al Viro , 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 Sat, Mar 30, 2019 at 9:19 AM Christian Brauner wrote: > > From pure API perspective that's all I care about: independence of procfs. > Once we have pidfd_open() we can cleanly signal threads etc. But "independence from procfs" means that you damn well don't then do "oh, now I have a pidfd, I want to turn it into a /proc fd and then munge around there". So I'm literally saying that it had better really *be* independent from /proc. It is the standalone version, but it's most definitely also the version that doesn't then give you secret access to /proc. And it weorries me a lot that people are trying to play these kinds of games. I'm just seeing some android patch that adds this horror and then starts using it. Linus