Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3870602rdb; Thu, 14 Sep 2023 05:28:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyTriOysoX6KIDEAMPTdRvJ7U4N+OonuHbvm967qx2IfgrRN8wWidQaRHtZ+S81PK1hfRv X-Received: by 2002:a17:90a:fe0a:b0:271:ab23:6288 with SMTP id ck10-20020a17090afe0a00b00271ab236288mr4879430pjb.14.1694694507168; Thu, 14 Sep 2023 05:28:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694694507; cv=none; d=google.com; s=arc-20160816; b=IESXyREFa9CuUQFu0SHrJbvLeIJ6UBh4eVKBSHylp2Mb6ppOcQHwKceEYiE3RaNVTG BpUn45Nbs/SXrCSajlSn1X2v9jBUYauu2Vh/Lb+kQXg4NA4Vd2u0ffe0cd8mrLJZLg44 dCzYdhhob/9g+jMUolfz45XYbJbNEbtUe2y2KErRgWRo4WItglx9kzZ6fORJy6aHOF2+ XB+Ywq/0Ms/v1ZjUwoqt6s3HT4n76I9km6bMm8RlLxneU0ZBO1N4/rUjG0G9BNHhcB6u FppxbH1yIcxPehcHsoTYyDbmmsG/m0b3YVoeUaxjPhDpLwfNwZH9KXy9GNts2wYsHs2T l+SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fpyUSA4zqMpJvFIRfLkgjwyN5TLcHnhqRritAX1SXxg=; fh=8tT678c9lVji7TzuBjFkIffME8SFJsDjEwwQ3yj1UwY=; b=tRvRvdhXbzmyVTewEHS/t02eujAc+O1Htijfiy93790ooNUVYWXo3NRVxl/593mw3V EMH8z0ewZld6jgKwGdG987PIWgOdr2DJ6M7M5t3KbN6v+leeE2VWWm7sPrIIn4inmlKa M259qEtLTF1x7D4GPvIDn3hXhgvs590NZuhe2ZRyKgIofXnhkvWWsFvonFJPkRO7wv25 ji7Jmbb++f4gImXMt+fMBcL+WdXVLD5YXuAlVdXXT819qTobJKUH2jgRO1JbzUwPCeb7 kDoPu27y1vViXuHJHyEQva7H/bt/UFTvw0pPEFs+/7dvaWIfNcEtg5FQsx1jReyhAbGO 7x/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=Y94vGfTP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id hk10-20020a17090b224a00b00271a9dda68csi4123316pjb.131.2023.09.14.05.28.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:28:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=Y94vGfTP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 60525806923B; Thu, 14 Sep 2023 02:50:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237777AbjINJuq (ORCPT + 99 others); Thu, 14 Sep 2023 05:50:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237788AbjINJul (ORCPT ); Thu, 14 Sep 2023 05:50:41 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25BE5210D for ; Thu, 14 Sep 2023 02:44:03 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9936b3d0286so108721566b.0 for ; Thu, 14 Sep 2023 02:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1694684642; x=1695289442; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=fpyUSA4zqMpJvFIRfLkgjwyN5TLcHnhqRritAX1SXxg=; b=Y94vGfTPOkhD5b7nXKflpOfEAbD00UKQYbeBzkQMrM69c6ARXeuJXId8LjBubaOUYe 5Yex09MY80gCm0lnPqfVYdEmPtcBJ8i8PUclyrmS/ASRRmUISLS9uroYY65kBseOtVzQ n/BAFc+Ss0SrJBDRw8PO/RWPyDKVaY5ms/oOc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694684642; x=1695289442; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fpyUSA4zqMpJvFIRfLkgjwyN5TLcHnhqRritAX1SXxg=; b=jaGasoKth5758oYvJBum21ngOPvZqrQpB/cNqvYmKuLJIlCaJOVGxpYHYNgA796PgA 1ElE/cDHPEVbKnf24Nr66MmWHgv6iqHAy4hC0BJtyrjiZAwobJ+5YVKKF/Yyu0SCJ2WU da+baU13PnNpi8przZ1WgC1rFO2tmfsJy3wdAMECWJvhk66urR8prOyAt0yiTp/M313K uVQCp790LPVnWl3FGoM07CFtArammidTSHxvrUn6Yq7o9hkySjRjE1S1fVnENBpPLfmG I0ZW1f8H7CnR5zSHLuqb++0kaX/lbWMQMdZb9WpxEJE/q14UEJfRCagwgCpDCZwknieX 4R6g== X-Gm-Message-State: AOJu0Yx4hDp1R4FM+X5INJlUcwHXqGj7LvA4g3zQl6sYfMhc9LtWLQjF CNtD0aHgr2cn2erwM6v1T99RDEji8L0OgDJ3RzQgLQ== X-Received: by 2002:a17:907:77c2:b0:99b:f58d:1c49 with SMTP id kz2-20020a17090777c200b0099bf58d1c49mr3978899ejc.53.1694684642180; Thu, 14 Sep 2023 02:44:02 -0700 (PDT) MIME-Version: 1.0 References: <20230913152238.905247-1-mszeredi@redhat.com> <20230913152238.905247-2-mszeredi@redhat.com> <20230914-himmel-imposant-546bd73250a8@brauner> <20230914-jeweiligen-normung-47816c153531@brauner> In-Reply-To: <20230914-jeweiligen-normung-47816c153531@brauner> From: Miklos Szeredi Date: Thu, 14 Sep 2023 11:43:50 +0200 Message-ID: Subject: Re: [RFC PATCH 1/3] add unique mount ID To: Christian Brauner 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 Content-Type: text/plain; charset="UTF-8" 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 (lipwig.vger.email [0.0.0.0]); Thu, 14 Sep 2023 02:50:52 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email On Thu, 14 Sept 2023 at 11:36, Christian Brauner wrote: > > > 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... Agreed. The old ID is mostly useful for human interaction. > > > 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. Okay. But I'd still leave the 2^32 offset for human confusion avoidance. Thanks, Miklos