lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 30 Sep 2014 02:14:46 +0100
From:	Al Viro <viro@...IV.linux.org.uk>
To:	Andy Lutomirski <luto@...capital.net>
Cc:	Linux FS Devel <linux-fsdevel@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"Eric W. Biederman" <ebiederm@...ssion.com>
Subject: Re: Removing shared subtrees?

On Mon, Sep 29, 2014 at 05:36:27PM -0700, Andy Lutomirski wrote:

> Ideally it would leave them around until the whole subtree had no
> references, at which point /mnt and everything under it would
> disappear with no side effects, because it has no references.

So, assuming you've got a stuck NFS mount with a bunch of local stuff
bound on top of it, in your ideal we'd have the latter all remaining
mounted until the server comes back.  Lovely, that...

> I suspect it detaches them immediately, especially after reading the
> rest of your email.

IOW, you *still* have not bothered to say man umount and read the manpage?

Quote:
       -l     Lazy  unmount.  Detach  the filesystem from the filesystem
              hierarchy now, and cleanup all references to the filesystem as
              soon as it is not busy anymore.  (Requires kernel 2.4.11 or
              later.)

> > Such an elegant way to say "I can't be arsed to read"...  For what it's
> > worth: MNT_DETACH is *not* "detach the subtree as whole, busy or not".
> > It's "unmount all mounts within the subtree, busy or not".  At which point
> > the self-LART you keep describing becomes quite easy to comprehend, doesn't
> > it?
> 
> Again, *I have no problem with the current semantics of umount -l*,
> except insofar as they interact really nastily with shared subtrees.
> I have a problem with bidirectional shared subtrees *in general*.

Pardon me, but it really looks like your problem is with reading.  In general
or not, but you are essentially complaining that your *guess* concerning the
semantics of this and that doesn't match the reality all that well, and its
combination with observed bits and pieces is really confusing.

BTW, I certainly agree that documentation of the mount-related utils and
syscalls could've been better.  But you clearly have never bothered to
read the existing one.  I'm sorry, but "I've used this utility with that
flag as root without ever checking what the manpage says about that
flag; results are painful and incomprehensible; whaddya mean, read the
fine manpage?" buys you very little sympathy.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ