Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp7222603ybf; Fri, 6 Mar 2020 12:52:22 -0800 (PST) X-Google-Smtp-Source: ADFU+vtInhy90d7Q6AEfu4TayvPBoGa8CLtdMzwe7+zc9gkHUZDCz2o9G9KZSOte5hNrqk4vCc7Y X-Received: by 2002:a9d:3bc4:: with SMTP id k62mr4275194otc.186.1583527942007; Fri, 06 Mar 2020 12:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583527942; cv=none; d=google.com; s=arc-20160816; b=Qie6tVEoSGZnIsfRRQVZoMxDWtE4pz+w5l2e0gNlADGGJ5HgdPs+ZBy+w7+rGoyXL5 0B0waliuaF21zJrUHE7+QR1cY2s8BVRaotHAqYHpiNqB5UWNEkM5/UaGPWebyJTWW46B J0BOrYYg7b0AwfgBoqA/qDB6lPCj7gEj9HDym6EtPKRV+N//pyeGJAxB23HPLsc77VCT AxBgs8umDI6u7Vp15GLqLnd4P4FWg53Advce18wlyQ2t7/dm4Fc6JO07VF7fi+Njc4OZ IbY5QgVZ2+WnksBYNseqOzLxaEAvy+n+KTqoG8DcNYJSTpUfsRbkU9DCG2nc7xxYG7Sk rtaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yGLtF9/BkDRWldf7v6sxW1Van8tpD2gHUBIr/g2ZUWQ=; b=ddr/LdzNk+tu8GUZeY8b1gPZIl7wDnSLbFcqs7eX5ppBBbrLeDTymRUmk3aCPqJUU0 tdzGI0LHdC083NgqiLeGOMm+QG27+YyiKAMB9lX/u1R30bP9uM8X61eOgowi30ILCI0s P74zWZT/uN+6GfcZMfXbJkhIBmaHClqEcq08S92V4YbgTvFfl22toq25Sr5W+qtmQTB4 bnTcdFvgJQjgil7aYsw8BbQ5J/UeVtaRuIcOPrWHphr34c0Kvakpupdz6pxv1S7Pim+9 1MKaeoO0ep2PBF771INjwo8C2H8XSYrUs7tuXTYGDSXjPEk1RUSPqQOOxPPhakOdkozU qVPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=btIso5bB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si1891151otl.313.2020.03.06.12.52.10; Fri, 06 Mar 2020 12:52:21 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=btIso5bB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726860AbgCFUv0 (ORCPT + 99 others); Fri, 6 Mar 2020 15:51:26 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:41666 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbgCFUv0 (ORCPT ); Fri, 6 Mar 2020 15:51:26 -0500 Received: by mail-io1-f67.google.com with SMTP id m25so3401860ioo.8 for ; Fri, 06 Mar 2020 12:51:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yGLtF9/BkDRWldf7v6sxW1Van8tpD2gHUBIr/g2ZUWQ=; b=btIso5bBh9Rv1yNfjzkAnbfr2G9RML5beBupa0KwwDUB7Vp6++GaqpK9U+yZZ0xHKM ipSc/GpWSMvtp7BCt1SRYDgKseFvcYE6FRrC7IOt6u6eUm9kpmvEnLIf5X0Pj3+wk74Y jXqabBNwRqfd1bnlPa77rD0hXRB/4wM9p0ed8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yGLtF9/BkDRWldf7v6sxW1Van8tpD2gHUBIr/g2ZUWQ=; b=rlR4rBW78Slpuj7l960KtBR7/Dt7y/mlPNhlp631G/zPxYjfDecKFdIsx6YtnsX54a tpswoa+DcrYPg3krexjT4Yvq/NfMz5bXoNkZDJbrw20uTMhDEhDeOn/ju2SFFKXHEfZz n9bSxUtDED4SecJnYEnP6sIsgGNq8tqO6EBMjQ/16jUyC16cB02C89OEARaAFc4IFiBr uoKMxZmEUGqNMwUTXlVRoq5cZbNuBVucxYPJIlo74hhRqfOiAcE4UoQV2s2FG5KnoRcw sxu+3ADuuVsOB7OUAg6RO402zqRYrVhCjB5OlEH6NPs13eyrMhEnP/PcJpcyF/Z5jks5 0tDg== X-Gm-Message-State: ANhLgQ3pcTFh7rED5LriRYXgKPAa+Mf19zS9JLlWzNUOyA92EIU4e2Bx dR0z9/rUDG5gZn273XdHnB12kZKLH3/JHeygckwhvA== X-Received: by 2002:a02:70cc:: with SMTP id f195mr4679379jac.78.1583527883788; Fri, 06 Mar 2020 12:51:23 -0800 (PST) MIME-Version: 1.0 References: <107666.1582907766@warthog.procyon.org.uk> <0403cda7345e34c800eec8e2870a1917a8c07e5c.camel@themaw.net> <20200306162549.GA28467@miu.piliscsaba.redhat.com> <20200306194322.GY23230@ZenIV.linux.org.uk> <20200306195823.GZ23230@ZenIV.linux.org.uk> <20200306200522.GA23230@ZenIV.linux.org.uk> <20200306203705.GB23230@ZenIV.linux.org.uk> <20200306203844.GC23230@ZenIV.linux.org.uk> <20200306204523.GD23230@ZenIV.linux.org.uk> In-Reply-To: <20200306204523.GD23230@ZenIV.linux.org.uk> From: Miklos Szeredi Date: Fri, 6 Mar 2020 21:51:12 +0100 Message-ID: Subject: Re: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17] To: Al Viro Cc: Ian Kent , David Howells , Christian Brauner , James Bottomley , Steven Whitehouse , Miklos Szeredi , Christian Brauner , Jann Horn , "Darrick J. Wong" , Linux API , linux-fsdevel , lkml , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 6, 2020 at 9:45 PM Al Viro wrote: > > On Fri, Mar 06, 2020 at 08:38:44PM +0000, Al Viro wrote: > > On Fri, Mar 06, 2020 at 08:37:05PM +0000, Al Viro wrote: > > > > > You are misreading mntput_no_expire(), BTW - your get_mount() can > > > bloody well race with umount(2), hitting the moment when we are done > > > figuring out whether it's busy but hadn't cleaned ->mnt_ns (let alone > > > set MNT_DOOMED) yet. If somebody calls umount(2) on a filesystem that > > > is not mounted anywhere else, they are not supposed to see the sucker > > > return 0 until the filesystem is shut down. You break that. Ah, good point. > > > > While we are at it, d_alloc_parallel() requires i_rwsem on parent held > > at least shared. Okay. > Egads... Let me see if I got it right - you are providing procfs symlinks > to objects on the internal mount of that thing. And those objects happen > to be directories, so one can get to their parent that way. Or am I misreading > that thing? Yes. Thanks, Miklos