WSL2-Linux-Kernel/fs/ceph
Jeff Layton f546faa216 ceph: don't leak snap_rwsem in handle_cap_grant
commit 58dd438557 upstream.

When handle_cap_grant is called on an IMPORT op, then the snap_rwsem is
held and the function is expected to release it before returning. It
currently fails to do that in all cases which could lead to a deadlock.

Fixes: 6f05b30ea0 ("ceph: reset i_requested_max_size if file write is not wanted")
Link: https://tracker.ceph.com/issues/55857
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Luís Henriques <lhenriques@suse.de>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-25 11:40:13 +02:00
..
Kconfig
Makefile
acl.c
addr.c ceph: switch netfs read ops to use rreq->inode instead of rreq->mapping->host 2022-07-21 21:24:30 +02:00
cache.c
cache.h
caps.c ceph: don't leak snap_rwsem in handle_cap_grant 2022-08-25 11:40:13 +02:00
ceph_frag.c
debugfs.c
dir.c ceph: fix memory leak in ceph_readdir when note_last_dentry returns error 2022-04-13 20:59:10 +02:00
export.c
file.c ceph: fix setting of xattrs on async created inodes 2022-05-18 10:26:55 +02:00
inode.c ceph: fix inode reference leakage in ceph_get_snapdir() 2022-04-13 20:59:10 +02:00
io.c
io.h
ioctl.c
ioctl.h
locks.c
mds_client.c ceph: use correct index when encoding client supported features 2022-08-25 11:40:13 +02:00
mds_client.h ceph: use correct index when encoding client supported features 2022-08-25 11:40:13 +02:00
mdsmap.c ceph: fix mdsmap decode when there are MDS's beyond max_mds 2021-11-18 19:17:15 +01:00
metric.c
metric.h
quota.c
snap.c
strings.c
super.c ceph: properly handle statfs on multifs setups 2021-12-01 09:04:55 +01:00
super.h
util.c
xattr.c ceph: allow ceph.dir.rctime xattr to be updatable 2022-06-14 18:36:23 +02:00