open_by_handle_at on disconnected dentry

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

 



Hi,

I've been playing with open_by_handle_at and noticed that I can get
/proc/self/fd/X to contain just '/' by opening a handle in a directory
that's not in cache (either through /proc/sys/vm/drop_cache or reboot)

Looking a bit further it looks like the path.dentry is disconnected
(DCACHE_DISCONNECTED flag, and points to itself/d_name is /).

I see exportfs_decode_fh can call reconnect_path in this case for
directories, or non-directly-acceptable files - maybe open_by_handle_at
should make sure we're always connected, or have an open flag for it?

I'm not sure what other implications there are aside of the odd filename
for its own /proc/self/fd and fanotify.


Thanks,
-- 
Dominique Martinet
--
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