linux_dsm_epyc7002/fs/ceph
Luis Henriques 03f219041f ceph: check i_nlink while converting a file handle to dentry
Converting a file handle to a dentry can be done call after the inode
unlink.  This means that __fh_to_dentry() requires an extra check to
verify the number of links is not 0.

The issue can be easily reproduced using xfstest generic/426, which does
something like:

    name_to_handle_at(&fh)
    echo 3 > /proc/sys/vm/drop_caches
    unlink()
    open_by_handle_at(&fh)

The call to open_by_handle_at() should fail, as the file doesn't exist
anymore.

Link: http://tracker.ceph.com/issues/19958
Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-06-14 19:32:43 +02:00
..
acl.c ceph: Propagate dentry down to inode_change_ok() 2016-09-22 10:56:19 +02:00
addr.c The two main items are support for disabling automatic rbd exclusive 2017-05-10 08:42:33 -07:00
cache.c ceph: fix spelling mistake: "enabing" -> "enabling" 2017-02-20 12:16:05 +01:00
cache.h ceph: improve fscache revalidation 2016-06-01 10:31:50 +02:00
caps.c ceph: handle epoch barriers in cap messages 2017-05-04 09:19:21 +02:00
ceph_frag.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
debugfs.c The two main items are support for disabling automatic rbd exclusive 2017-05-10 08:42:33 -07:00
dir.c ceph: choose readdir frag based on previous readdir reply 2017-05-04 09:19:24 +02:00
export.c ceph: check i_nlink while converting a file handle to dentry 2017-06-14 19:32:43 +02:00
file.c ceph: check that the new inode size is within limits in ceph_fallocate() 2017-05-24 18:10:54 +02:00
inode.c ceph: make seeky readdir more efficient 2017-05-04 09:19:20 +02:00
ioctl.c ceph: fix bogus endianness change in ceph_ioctl_set_layout 2017-02-20 12:16:07 +01:00
ioctl.h ceph: fully initialize new layout 2012-05-16 14:28:27 -05:00
Kconfig ceph: add acl for cephfs 2013-12-31 20:32:01 +02:00
locks.c ceph: fix mandatory flock check 2016-10-03 16:13:49 +02:00
Makefile ceph: add acl for cephfs 2013-12-31 20:32:01 +02:00
mds_client.c The two main items are support for disabling automatic rbd exclusive 2017-05-10 08:42:33 -07:00
mds_client.h ceph: handle epoch barriers in cap messages 2017-05-04 09:19:21 +02:00
mdsmap.c ceph: allow connecting to mds whose rank >= mdsmap::m_max_mds 2017-05-04 09:19:20 +02:00
snap.c ceph: convert ceph_cap_snap.nref from atomic_t to refcount_t 2017-05-04 09:19:18 +02:00
strings.c ceph: handle CEPH_SESSION_REJECT message 2016-10-03 16:13:50 +02:00
super.c The two main items are support for disabling automatic rbd exclusive 2017-05-10 08:42:33 -07:00
super.h The two main items are support for disabling automatic rbd exclusive 2017-05-10 08:42:33 -07:00
xattr.c ceph: fix memory leak in __ceph_setxattr() 2017-05-04 09:19:24 +02:00