linux-stable/fs/ceph
Jeff Layton 75bd1d78e8 ceph: fix potential race in ceph_check_caps
[ Upstream commit dc3da0461c ]

Nothing ensures that session will still be valid by the time we
dereference the pointer. Take and put a reference.

In principle, we should always be able to get a reference here, but
throw a warning if that's ever not the case.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:12:46 +02:00
..
acl.c
addr.c
cache.c
cache.h
caps.c ceph: fix potential race in ceph_check_caps 2020-10-01 13:12:46 +02:00
ceph_frag.c
debugfs.c
dir.c ceph: ensure d_name stability in ceph_dentry_hash() 2019-05-02 09:40:29 +02:00
export.c ceph: return ceph_mdsc_do_request() errors from __get_parent() 2020-05-02 17:24:13 +02:00
file.c ceph: don't allow setlease on cephfs 2020-09-09 19:03:06 +02:00
inode.c ceph: fix dentry leak in ceph_readdir_prepopulate 2019-12-01 09:13:44 +01:00
ioctl.c
ioctl.h
Kconfig
locks.c ceph: don't try fill file_lock on unsuccessful GETFILELOCK reply 2019-08-29 08:26:42 +02:00
Makefile
mds_client.c ceph: fix potential mdsc use-after-free crash 2020-09-03 11:22:27 +02:00
mds_client.h
mdsmap.c
snap.c ceph: fix buffer free while holding i_ceph_lock in __ceph_build_xattrs_blob() 2019-09-10 10:32:18 +01:00
strings.c
super.c ceph: canonicalize server path in place 2020-04-13 10:34:35 +02:00
super.h ceph: canonicalize server path in place 2020-04-13 10:34:35 +02:00
xattr.c ceph: fix buffer free while holding i_ceph_lock in __ceph_build_xattrs_blob() 2019-09-10 10:32:18 +01:00