Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2591838lqb; Tue, 28 May 2024 05:02:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvfS4tinZudpixWhvNrFf1fw+iUQHcZRo1QeyWMB5oAIwpKlFgPn6+S1iNWMDf+GeOdVVqMLBahIvPXafqG0wDLcIlZ19Ltzi1wqy+NQ== X-Google-Smtp-Source: AGHT+IGvp+THhdsQZKiO8p2zalsdKAS1s+hOupcvHCNRm7EIBi12dw13OaypamBKZILQTVoBmHbC X-Received: by 2002:a17:907:1190:b0:a63:284f:a741 with SMTP id a640c23a62f3a-a63284fa777mr211725066b.75.1716897775466; Tue, 28 May 2024 05:02:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716897775; cv=pass; d=google.com; s=arc-20160816; b=yKio3iAINlSNdmC/SVaEBAuIh9ym7hlXAAHsLbvnCDqKv6hy045h0bykJn65AwNeJd wjfkwjp7G2xjE/HvBvrneFEF/jISdBYRU8n1bZlh159sSYJXxGtsM9OIGjB3Zpur3OrP KhjeC7Njw97wlNg7vFnsbgErMtF8L71QBwJpoKW5GYUNYfwpdgxV7qqgVWDlW7s9FZoQ 3WCaQiecsJv4qDJTbZg9FLIx/AZtBgSxfXEBSI+JzXeOxu2CY/SGsiF1SFbJiTOPTLRI TBf22GlKO3ECyqH5+2sXpSTMeBYW+cQX2Y2tCT593jAyQfLq0XtoR/7GZuJfe1ECxWjS DEJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=c56LmE5EVD7j+b/usANfOmh+EBtk5ZiTU/F1vZzSWfI=; fh=L+qc7iwcbF2S8Y7o9eDN3aa9W+qmEeqB3X2qwnn4y+E=; b=JgKbby63LJ+ooFo0sHmomWeGiPK/6AiMLsYh9cMGgW7GzUbg3icA/xRHO6AJj7zryN LB4KLr0CUIGRLCunSoZo98ETDJbWG06WPVaxLOCP7A/2q7IaWTtW2C9rtHNe+NHfPDR7 iRINMwLJYeD9f0sRqzsfg4BG/U+J4H+vtE2EjfDXIG0q08AWbKQhNZVuKV2zHuFZTsn7 gEs05YniNZhQNEyzXHSyFNiJX3DNDlOWu7U6KzPrdJf3L/wqC/i09zU6gELc9Fnxrtjo 8G12/Iuu7VmWsnmmLNky7Tkb8iF8kjwwRN+9jRLwxb3H8VP4fDhSTkGvInOzq/nmPgaN k0RQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ZeEaFy8H; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-191855-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191855-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6290aebfb7si443823766b.297.2024.05.28.05.02.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:02:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191855-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ZeEaFy8H; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-191855-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191855-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7F8271F24309 for ; Tue, 28 May 2024 07:16:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 666C9131E38; Tue, 28 May 2024 07:15:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="ZeEaFy8H" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6489F762DE; Tue, 28 May 2024 07:15:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716880556; cv=none; b=i57M2O2MEZofpqss8r2EHSgzTAai5iUapzFVwf0L0ooKOwLBqjee7DO5YoBuBxGQbiJAQ7wwrrCySNmrEe8iglR/1bGMFNBCAoYOIGA2k/AFGGuy52+2oenlMcPzEnclr75NTRn2BnSq93QOs83LgJ+mcDLq7IdWcHit+jwkO3Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716880556; c=relaxed/simple; bh=MLD9H2Czeuk8yzIl1o8T8vYs2svQSfY1C3nOel6q2Q8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O1oaacQnHXy1muV+NMQ2jJgVyjQv6pvvP3y6cSHGJ4forfo3vvlkNXntmh+kNlfLPk97LZaLyiwozZ4lxpwXWBx8RvxDVxXwkQiHnTd9RyhTO9Wypl88BaltBD/E3K7D3ycyPTMrhoUVgeiA5ew65msLZuoniZuTHKJqmE4VgXs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=ZeEaFy8H; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=c56LmE5EVD7j+b/usANfOmh+EBtk5ZiTU/F1vZzSWfI=; b=ZeEaFy8HdyEAO9fdeR/nxeNUJF ogdOH5XkKv1kGbNB3Eizu2B5Y8ZeDo9IUNuf4osGALsJAbbuijUbR2lsZOW+bRTPLv8oWDpGF0l22 9pprWxzdsXSkGEgwz8qwjKMiFJYe/K6DGUZRlcX1L1EqDVbQEbMNXCxparCu32Z3Zw4RHX6keIX6z KSi61oaTs02/u0nuzM5DbLrSd4SQ0y4z7v0pOgz5MufyfIYLx+y116pX+FqgDbeD07DP9Hje3rKbh H7Y0acQIZ2yCIMAYquzTUBNbj55FryZzAjnCKshjlCyBl1HdJB0fCtAY6StAy+Q0a5GYsbAQzDIeL gbIk1acQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBr3o-0000000HILb-231F; Tue, 28 May 2024 07:15:52 +0000 Date: Tue, 28 May 2024 00:15:52 -0700 From: "hch@infradead.org" To: Christian Brauner Cc: "hch@infradead.org" , Trond Myklebust , "jack@suse.cz" , "chuck.lever@oracle.com" , "linux-api@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "alex.aring@gmail.com" , "cyphar@cyphar.com" , "viro@zeniv.linux.org.uk" , "jlayton@kernel.org" , "amir73il@gmail.com" , "linux-nfs@vger.kernel.org" Subject: Re: [PATCH RFC v2] fhandle: expose u64 mount id to name_to_handle_at(2) Message-ID: References: <20240523-exportfs-u64-mount-id-v2-1-f9f959f17eb1@cyphar.com> <30137c868039a3ae17f4ae74d07383099bfa4db8.camel@hammerspace.com> <86065f6a4f3d2f3d78f39e7a276a2d6e25bfbc9d.camel@hammerspace.com> <20240528-fraglich-abmildern-cca211d1791c@brauner> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240528-fraglich-abmildern-cca211d1791c@brauner> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Tue, May 28, 2024 at 09:12:33AM +0200, Christian Brauner wrote: > It's also used by userspace for uniquely identifying cgroups via handles > as cgroups and - even without open_by_handle_at() - to check whether a > file is still valid. > > And again a 64bit mount is is a simple way to race-free go to whatever > superblock uuid you want. They cannot be recycled and are unique for the > lifetime of the system. And then break when you reboot. Which you might not care about for cgroups, but which is really bad for the concept of a file handle. See one of my other replies for a proposed interface that is just as easy to use for userspace, a little more complex in the kernel but safe for it. I'd much prefer that over using ay kind of "mount ID" which doesn't fit into the file handle concept at all.