linux-stable/fs/ceph
Xiubo Li 6ab4fd508f ceph: fix deadlock or deadcode of misusing dget()
[ Upstream commit b493ad718b ]

The lock order is incorrect between denty and its parent, we should
always make sure that the parent get the lock first.

But since this deadcode is never used and the parent dir will always
be set from the callers, let's just remove it.

Link: https://lore.kernel.org/r/20231116081919.GZ1957730@ZenIV
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-23 08:25:03 +01:00
..
Kconfig ceph: add selinux support 2019-07-08 14:01:42 +02:00
Makefile ceph: add buffered/direct exclusionary locking for reads and writes 2019-09-16 12:06:25 +02:00
acl.c ceph: rename struct ceph_acls_info to ceph_acl_sec_ctx 2019-07-08 14:01:42 +02:00
addr.c ceph: remove bogus checks and WARN_ONs from ceph_set_page_dirty 2021-07-20 16:10:48 +02:00
cache.c ceph: include ceph_debug.h in cache.c 2019-09-16 12:06:25 +02:00
cache.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 188 2019-05-30 11:29:21 -07:00
caps.c ceph: fix deadlock or deadcode of misusing dget() 2024-02-23 08:25:03 +01:00
ceph_frag.c
debugfs.c ceph: show tasks waiting on caps in debugfs caps file 2023-08-11 11:54:00 +02:00
dir.c ceph: set sec_context xattr on symlink creation 2020-08-21 13:05:28 +02:00
export.c ceph: fix inode leak on getattr error in __fh_to_dentry 2021-05-19 10:08:26 +02:00
file.c ceph: don't truncate file in atomic_open 2022-10-15 07:54:39 +02:00
inode.c ceph: fix incorrect revoked caps assert in ceph_fill_file_size() 2023-10-25 11:53:19 +02:00
io.c ceph: add buffered/direct exclusionary locking for reads and writes 2019-09-16 12:06:25 +02:00
io.h ceph: add buffered/direct exclusionary locking for reads and writes 2019-09-16 12:06:25 +02:00
ioctl.c
ioctl.h
locks.c ceph: return -EIO if read/write against filp that lost file locks 2019-09-16 12:06:24 +02:00
mds_client.c ceph: defer stopping mdsc delayed_work 2023-08-11 11:54:01 +02:00
mds_client.h ceph: defer stopping mdsc delayed_work 2023-08-11 11:54:01 +02:00
mdsmap.c ceph: have MDS map decoding use entity_addr_t decoder 2019-07-08 14:01:43 +02:00
quota.c ceph: demote quotarealm lookup warning to a debug message 2020-05-14 07:58:27 +02:00
snap.c ceph: fix use-after-free bug for inodes when flushing capsnaps 2023-06-14 10:59:57 +02:00
strings.c
super.c ceph: defer stopping mdsc delayed_work 2023-08-11 11:54:01 +02:00
super.h ceph: fix handling of "meta" errors 2021-10-27 09:54:27 +02:00
xattr.c ceph: allow ceph.dir.rctime xattr to be updatable 2022-06-14 18:12:01 +02:00