linux/fs/ceph
Jeff Layton f295172062 ceph: don't try fill file_lock on unsuccessful GETFILELOCK reply
commit 28a282616f upstream.

When ceph_mdsc_do_request returns an error, we can't assume that the
filelock_reply pointer will be set. Only try to fetch fields out of
the r_reply_info when it returns success.

Cc: stable@vger.kernel.org
Reported-by: Hector Martin <hector@marcansoft.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-29 08:28:50 +02:00
..
acl.c
addr.c ceph: clear page dirty before invalidate page 2019-08-29 08:28:50 +02:00
cache.c
cache.h
caps.c ceph: hold i_ceph_lock when removing caps for freeing inode 2019-08-04 09:30:57 +02:00
ceph_frag.c
debugfs.c
dir.c ceph: ensure d_name stability in ceph_dentry_hash() 2019-05-02 09:58:54 +02:00
export.c
file.c
inode.c ceph: fix use-after-free on symlink traversal 2019-05-04 09:20:21 +02:00
ioctl.c
ioctl.h
Kconfig
locks.c ceph: don't try fill file_lock on unsuccessful GETFILELOCK reply 2019-08-29 08:28:50 +02:00
Makefile
mds_client.c ceph: fix ci->i_head_snapc leak 2019-05-02 09:58:54 +02:00
mds_client.h
mdsmap.c
quota.c
snap.c ceph: fix ci->i_head_snapc leak 2019-05-02 09:58:54 +02:00
strings.c
super.c ceph: flush dirty inodes before proceeding with remount 2019-05-25 18:23:31 +02:00
super.h ceph: fix improper use of smp_mb__before_atomic() 2019-08-06 19:06:50 +02:00
xattr.c ceph: return -ERANGE if virtual xattr value didn't fit in buffer 2019-08-06 19:06:50 +02:00