Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3799673rdb; Thu, 14 Sep 2023 03:05:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKakxxjg2X/4bKmOE03D6N6SGD7GpZaFbPyvcGN4tp/7BNQlSAef3pfZraRia64ambhko2 X-Received: by 2002:a05:6a20:9151:b0:154:90ba:70e with SMTP id x17-20020a056a20915100b0015490ba070emr5191945pzc.48.1694685943500; Thu, 14 Sep 2023 03:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694685943; cv=none; d=google.com; s=arc-20160816; b=KnUovXaUOtXn91GSOWYGoHLa6m2k5Hw3SMuzcE09U+nqPgPXHMFiqR2wtMn8T+K7NJ Z08bpzJSAgup5U0BndLa3a3TbOlQ0wlsxjYvwQcNBkt7WhwgaW1aXJvMDk34SRscjLlj CSmXBgtH+3EXT91AP3mkC65N+LRDniEbDHevSF8CchAshPDWJLWtlkJZ0hAcXCeB6Mvp pL8exIBRAQlCP4wBSVOrRPaN6hMVzR5o5kzCS3LFZdUBFVEukMzWETTrOe1gin41K79D mhzSQOnoJUhHo2oGtIxsfehGwuFr4H82AiViTolfEcn37O3jlJiANmxrfyvYboMzPVPr 4Eyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yyg0B/GwfdT/xz+UDeL/jcvB6gQAnuKuQ4WDk4Db3kc=; fh=VpstnDe/303RIS/YtVK19dBbszkNI2YN3KmT5HnfDCA=; b=0/Db1BMVl33hWLQa8XlkZV7RcYw+Lvktjfn98c3eBYooPCoYLMe6RlwAp2iO6VjalE bpMRuyfSN2dMiEFkRUZor709/l6h4e5DTvOZRzaBm3+LEP4XgpKoUrkGZmPxXtXC2/Uq oo14Y2ByBqf6JZmflrwXwqotj2VvNk2rGLDxW/DgNCZL0wfgD1sameZIImAIEJGZp6n/ H8Q75o11BIDkcpA7fLt1o9nGy2NEzLPExM2Q9Vc037tZS9Uhyh2CkuyXwvjZQoJMTZ78 mTk/IIElg7fe84P4oF/xt7T5DxXrTtQ9efsDYmOtRxDD65mnaUqvdKDhbgIbzlNMBWHT EAAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BasUXXnD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id ef6-20020a056a002c8600b0068e32814eeesi1205312pfb.317.2023.09.14.03.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:05:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BasUXXnD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 77DA1804C18E; Thu, 14 Sep 2023 02:36:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237264AbjINJg5 (ORCPT + 99 others); Thu, 14 Sep 2023 05:36:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237244AbjINJgw (ORCPT ); Thu, 14 Sep 2023 05:36:52 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D75D51BEF; Thu, 14 Sep 2023 02:36:47 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCE55C433C8; Thu, 14 Sep 2023 09:36:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694684206; bh=H2srYEKdzkCILZo1VmZDz5SnBJ+dNxreB69yshcWmz8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BasUXXnDxP2Rf1ySoLlqGBiOwNwHrCwX08D9JXdLGTuYH3KyF4dy6Wk6VpqBNA3MZ 3tKSUWXRKYOMAVga/s4v06Fj1tkON+XAOoUCL96KWim7Kp9F+vtuZMblcZycUuNFlK Z8Znf7Eh6J+7mnU3yyU/e6x2YtwQbQ59nV0yhA2sZwAginnQZTx+MTXkyS2/8jTSyA 7uourZWptEgtc21TYZam4B6atbCW6zTHySGqU5dLdlwOZ6vh30FtgGhmE2APU6LO1J OMQ8FisgUilhC7bbHIrgf7pYb/LQdBxMbYKeynHLaoSAuXeIlQUhyKiLzCqH3xqn5a FZ8E5Jta5HyUg== Date: Thu, 14 Sep 2023 11:36:35 +0200 From: Christian Brauner To: Miklos Szeredi Cc: Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org, linux-security-module@vger.kernel.org, Karel Zak , Ian Kent , David Howells , Linus Torvalds , Al Viro , Christian Brauner , Amir Goldstein Subject: Re: [RFC PATCH 1/3] add unique mount ID Message-ID: <20230914-jeweiligen-normung-47816c153531@brauner> References: <20230913152238.905247-1-mszeredi@redhat.com> <20230913152238.905247-2-mszeredi@redhat.com> <20230914-himmel-imposant-546bd73250a8@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 02:36:56 -0700 (PDT) > Yes, one concern is that humans confuse the old and the new ID. > > I also think it makes sense to allow the new interfaces to look up the > mount based on either the old or the new ID. But I could be wrong Hm, mount id recycling may happen so quickly that for service restarts with a lot of mounts this becomes mostly useless... > there, since that might encourage bad code. Maybe the new interface > should only use take the new ID, which means no mixed use of > /proc/$$/mountinfo and statmnt/listmnt. ... so I think that is indeed the better way of doing things. There's no need to encourage userspace to mix both identifiers.