Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp45155img; Wed, 20 Mar 2019 13:40:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyxnhHVJNJzOu+cnNb2TzwmX5haoGCx7uiy2WowUaKDDoHT7ELjhzWtz90+iHYQD0YLp+W X-Received: by 2002:a63:6985:: with SMTP id e127mr9335598pgc.101.1553114446355; Wed, 20 Mar 2019 13:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553114446; cv=none; d=google.com; s=arc-20160816; b=cDV5jJVMydh/ycWlj7M2aAyIHNSKiYHlW/xhLFtByclAPRiFZ6am9Rtic4Jb8xOyXx jHiSvIaPA0YUDMSjbRXewA49w+VB54iZco0+GwU5L7WXgiliddhveJkcCskjZxV77IE9 Wcn37Iiv7rm85AcYSL37Ji37j2kEZ5EzlCmSqGey0CQFLaYpzrWSlPQN9jRcO9Q5kA1o V4fwhEz+lieMcn60n9QxVlnIyo0L+EiuOqG3stIh2lqG1Z/1I7PKl/mK+UXPNTgwXNJy ZOJlFiM8ineeu8ysJVkzYj1LJKq0IkTfqToeqeJ4jiOMWdF5ZDWCCqWjl2TsENx56W4M xu2A== 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:dkim-signature; bh=QtXCkD1EGRDrRYjOnCfs08SvF8/UAvCiKGLbAEX6Tyk=; b=S1ye2ma4BLrz+XiwkMVTAEpGSFu3jXlJ2NxYI3O0996coU3omPE69LeHeDR3QyTtGV mVbCG1CML0PsJp7v2wjofucBGGcOwf+NPow06aWAv7t+qDA/jMBUBjnPcURff/q0lAL4 Sh0lj/NE8vyv489ZP1DEes9bywizoQZbkSzgu9mmebPzjuSCG8QKB1yK+bpvr38J1Ecb ETix27LTbOBY88uoPTUEuBobSojvGbrtBCwkYy1Imq2w0/aULme9/VFh6ZuYSnDOnNQ3 gxBjrGvfMmAJ2cERT1+aD8DoHLkz0Lap6LtjwnAT+302cSMd99x7z87ZVjO+8J8CNdL/ CVCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uRlEoDHM; 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 q6si2647016pll.130.2019.03.20.13.40.31; Wed, 20 Mar 2019 13:40:46 -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=uRlEoDHM; 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 S1727404AbfCTUjP (ORCPT + 99 others); Wed, 20 Mar 2019 16:39:15 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:51340 "EHLO mail-wm1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726686AbfCTUjP (ORCPT ); Wed, 20 Mar 2019 16:39:15 -0400 Received: by mail-wm1-f45.google.com with SMTP id 4so85756wmf.1 for ; Wed, 20 Mar 2019 13:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QtXCkD1EGRDrRYjOnCfs08SvF8/UAvCiKGLbAEX6Tyk=; b=uRlEoDHMUNPxQ0L/OeP4I2isOxExoQJM3UPDqJcINRU99uIicizH06iF9ngtPo7F6O kbPjJmebnnpBWMxQVa0tMsWCM0pjkLknc4zXuw2CBVG61oUnXygAMsgUdIHvEbXzXtnv YhPxhtThpLMBtp8c8ncIUY8d5WBtiSqjQpG47/0+PSARLHrFLjZQzhHWi2lUccAU7sqd kPcKG60+StMq6ukb8gXa7dF4IEpWjVUb+K7g6A06kAWbe4DB1j7S3nK4Saom4I+n/1jz XKffmoDfmehsFIYSVWCl9FKL8iyJffPULFDLq32xl7GU5d9mtp1ENoiT6PzNrrUxL3iV jo4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QtXCkD1EGRDrRYjOnCfs08SvF8/UAvCiKGLbAEX6Tyk=; b=f1rphB9Ldh4OHXYeXxSYEe8It4uUpq8vLek1AVczHCwmBzGukMNhJm4bLhhJCDeHQh ScMaLBBRnYEpj0MJM6eSUbLV9d1Fgd/DDiV8bIIXDtp0Gtd7QUlAaVcSQgAaoR/e+/At aibdoml24GqCFt3hGl6VEAZ+Jq1idZOse4at9bgWmf5IGJPUP6SPBiL8uHTswfTlMptU 4uCNLo0VEpYUQqgwKJBwNHQSijpzrL0qa+kA1BzgAaBad3cLrlRpW+d5jfHhBY90Uzbh Xgaeju9KMUXv9Xh5c2q5HFtRO/83WRv1kuTo7+eMdandJjyph281tUCsKNWPJQgn5y65 JVQA== X-Gm-Message-State: APjAAAUNLDiNALDjBPFYN2lr/6j3IITUhJx2ycrDu9vpJsshDoLqd7lt FkW6YOxVX+cCbvoeW4OCfw== X-Received: by 2002:a7b:c301:: with SMTP id k1mr146626wmj.117.1553114353760; Wed, 20 Mar 2019 13:39:13 -0700 (PDT) Received: from avx2 ([46.53.240.229]) by smtp.gmail.com with ESMTPSA id e16sm6404190wrs.0.2019.03.20.13.39.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 13:39:12 -0700 (PDT) Date: Wed, 20 Mar 2019 23:39:10 +0300 From: Alexey Dobriyan To: Daniel Colascione Cc: Christian Brauner , linux-kernel , Joel Fernandes , Andy Lutomirski Subject: Re: pidfd design Message-ID: <20190320203910.GA2842@avx2> References: <20190320200702.GA27111@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 20, 2019 at 01:14:01PM -0700, Daniel Colascione wrote: > On Wed, Mar 20, 2019 at 1:07 PM Alexey Dobriyan wrote: > > > What would be your opinion to having a > > > /proc//handle > > > file instead of having a dirfd. > > > > This is even worse than depending on PROC_FS. Just for the dependency > > pidfd code should be backed out immediately. Forget about /proc. > > We already have pidfds, and we've had them since /proc was added ages > ago. New pidfd code (or whatever the name) should NOT depend on /proc and should not interact with VFS at all at any point (other than probably being a descriptor on a fake filesystem). The reason is that /proc is full of crap and you don't want to spill that into new and hopefully properly designed part of new code.