Re: [2.6.38] Deadlock between rename_lock and vfsmount_lock.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 18, 2011 at 12:07:48PM +0000, Al Viro wrote:

> Actually, why do we hold vfsmount_lock over that loop at all?  We already
> hold namespace_sem, so ->mnt_parent is protected...

Argh...  No, it isn't.  We flip it to final (mnt->mnt_parent = mnt)
outside of namespace_sem in release_mounts().  HOWEVER, by that point
we have already cleared ->mnt_ns - under namespace_sem.

So what we need is check_mnt(new.mnt) in addition to test for root.mnt
we already have there.  That'll be enough.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux