Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4771036ybv; Wed, 26 Feb 2020 02:52:35 -0800 (PST) X-Google-Smtp-Source: APXvYqxdFHkg1tVBp0Cze0KdW7LMbYRhOxN3ULNhnV8/hfVlHfqAobqKHfg9pzcP7Y3e1sj/kbMQ X-Received: by 2002:aca:2813:: with SMTP id 19mr2577809oix.76.1582714355410; Wed, 26 Feb 2020 02:52:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582714355; cv=none; d=google.com; s=arc-20160816; b=glfadjPZEbGzuCIZV5zDKNxpuX/FWXTd1i3i7iWS7F5Ycxw9MxlKlrxuQCEaXBgAjQ blrjbioyA3NpSrwaBkJ2Jcg9RQPBqCk6ZihmCXHljwjUKzQTs2Q3XtCW9TX1sDN6LVfL FNLNrGqu0BVvcYCo1kPlCHW9Bq3khysBNX0ZbZG/YdKa6tQgJiq987J5VQl2TcOmUy15 Fh3szeLHJtikJ37lAmqx/HFW0+TJAKr/sB7kHqsMb7RQKO3VcoWZUOexoVsrPgr7MRkL tedA6tv2dPum2Fc1h0utQWY4cpLK5ZMld0movZpQGAnOv49iEUBmN6874y8fTM/Opwov cx1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=DIx6zuwqR++Y3FFjikNlSkaH8sZ2FNTsX9QKVbo0PI8=; b=HpqyaPfK6b6CjKOxQwHhNB+JC9sZH4unMl3jVbN4fZ+ORbqw60g7tOs6TNw+dZAB8n bgx9QVrfSNh2jMMboXnpsurEx1qL0OAFaZdipKL8canCsG2pNEb/xEn3yw4+bShr/CVa sv4sxhW+IXe40FcPD4U1UkEdIvIHyfOSE6sZn+9Iguv9BHpo0irpJU8Q7fp1WdyevvBO QERTHiO2hA0UKK8xWbRtmlNCHtrxW2bSO+zKugGBxe/CYI6pR0GOP0/8oHklENmH843I B2Lkh2iagnaBDvj3X0sdKh7TROllLblxkq9Bn2Tw7ggVi1f34MUzJ7w4usnGDbFPe5pC dB+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Wem60q21; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si1101229oiy.124.2020.02.26.02.52.22; Wed, 26 Feb 2020 02:52:35 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=Wem60q21; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727894AbgBZKvO (ORCPT + 99 others); Wed, 26 Feb 2020 05:51:14 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:55753 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727785AbgBZKvO (ORCPT ); Wed, 26 Feb 2020 05:51:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582714272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DIx6zuwqR++Y3FFjikNlSkaH8sZ2FNTsX9QKVbo0PI8=; b=Wem60q21aBylUqmCxIz0X0o2ulCA+P9J/RQkAMaMahWAgkV/9RGR62YyqKPKoev9T98n4n s9ikbdjZshO0xKLip95KRFpW/OvZmerfNLdgbRxlPX0UAGqHplt9w3riwM7k4aP6uP6ZtS v6qA4Uh36ikDpFkCbB8Oa4MHs1C1viE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-340-uxeWjtzYOB67Z4LxYrMwyg-1; Wed, 26 Feb 2020 05:51:08 -0500 X-MC-Unique: uxeWjtzYOB67Z4LxYrMwyg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 31F3318B642C; Wed, 26 Feb 2020 10:51:06 +0000 (UTC) Received: from fogou.chygwyn.com (unknown [10.33.36.14]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 900595DA2C; Wed, 26 Feb 2020 10:51:02 +0000 (UTC) Subject: Re: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17] To: Miklos Szeredi , James Bottomley Cc: Miklos Szeredi , David Howells , viro , Ian Kent , Christian Brauner , Jann Horn , "Darrick J. Wong" , Linux API , linux-fsdevel , lkml References: <158230810644.2185128.16726948836367716086.stgit@warthog.procyon.org.uk> <1582316494.3376.45.camel@HansenPartnership.com> <1582556135.3384.4.camel@HansenPartnership.com> <1582644535.3361.8.camel@HansenPartnership.com> From: Steven Whitehouse Message-ID: <39284de5-8eb8-ba1d-7ea6-be9b9b5df42c@redhat.com> Date: Wed, 26 Feb 2020 10:51:00 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 26/02/2020 09:11, Miklos Szeredi wrote: > On Tue, Feb 25, 2020 at 4:29 PM James Bottomley > wrote: > >> The other thing a file descriptor does that sysfs doesn't is that it >> solves the information leak: if I'm in a mount namespace that has no >> access to certain mounts, I can't fspick them and thus I can't see the >> information. By default, with sysfs I can. > That's true, but procfs/sysfs has to deal with various namespacing > issues anyway. If this is just about hiding a number of entries, then > I don't think that's going to be a big deal. > > The syscall API is efficient: single syscall per query instead of > several, no parsing necessary. > > However, it is difficult to extend, because the ABI must be updated, > possibly libc and util-linux also, so that scripts can also consume > the new parameter. With the sysfs approach only the kernel needs to > be updated, and possibly only the filesystem code, not even the VFS. > > So I think the question comes down to: do we need a highly efficient > way to query the superblock parameters all at once, or not? > > Thanks, > Miklos > That is Ian's use case for autofs I think, and it will also be what is needed at start up of most applications using the fs notifications, as well as at resync time if there has been an overrun leading to lost fs notification messages. We do need a solution that can scale to large numbers of mounts efficiently. Being able to extend it is also an important consideration too, so hopefully David has a solution to that, Steve.