WSL2-Linux-Kernel/fs/ceph
Jeff Layton 02e37571f9 ceph: handle zero-length feature mask in session messages
Most session messages contain a feature mask, but the MDS will
routinely send a REJECT message with one that is zero-length.

Commit 0fa8263367 ("ceph: fix endianness bug when handling MDS
session feature bits") fixed the decoding of the feature mask,
but failed to account for the MDS sending a zero-length feature
mask. This causes REJECT message decoding to fail.

Skip trying to decode a feature mask if the word count is zero.

Cc: stable@vger.kernel.org
URL: https://tracker.ceph.com/issues/46823
Fixes: 0fa8263367 ("ceph: fix endianness bug when handling MDS session feature bits")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Tested-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2020-08-05 17:47:07 +02:00
..
Kconfig libceph: replace HTTP links with HTTPS ones 2020-08-03 11:05:26 +02:00
Makefile ceph: add dentry lease metric support 2020-06-01 13:22:51 +02:00
acl.c ceph: add caps perf metric for each superblock 2020-06-01 13:22:51 +02:00
addr.c ceph: move sb->wb_pagevec_pool to be a global mempool 2020-08-04 19:41:12 +02:00
cache.c
cache.h
caps.c ceph: clean up and optimize ceph_check_delayed_caps() 2020-08-03 11:05:21 +02:00
ceph_frag.c
debugfs.c ceph: remove redundant initialization of variable mds 2020-08-03 11:05:28 +02:00
dir.c ceph: set sec_context xattr on symlink creation 2020-08-04 19:41:11 +02:00
export.c ceph: don't return -ESTALE if there's still an open file 2020-06-01 13:22:53 +02:00
file.c ceph: do not access the kiocb after aio requests 2020-08-03 11:05:25 +02:00
inode.c ceph: add caps perf metric for each superblock 2020-06-01 13:22:51 +02:00
io.c
io.h
ioctl.c
ioctl.h
locks.c
mds_client.c ceph: handle zero-length feature mask in session messages 2020-08-05 17:47:07 +02:00
mds_client.h ceph: periodically send perf metrics to MDSes 2020-08-03 11:05:26 +02:00
mdsmap.c ceph: remove unused variables in ceph_mdsmap_decode() 2020-08-03 11:05:27 +02:00
metric.c ceph: periodically send perf metrics to MDSes 2020-08-03 11:05:26 +02:00
metric.h ceph: send client provided metric flags in client metadata 2020-08-03 11:05:27 +02:00
quota.c ceph: allow rename operation under different quota realms 2020-06-01 13:22:53 +02:00
snap.c
strings.c
super.c ceph: move sb->wb_pagevec_pool to be a global mempool 2020-08-04 19:41:12 +02:00
super.h ceph: move sb->wb_pagevec_pool to be a global mempool 2020-08-04 19:41:12 +02:00
util.c
xattr.c ceph: remove unnecessary cast in kfree() 2020-08-03 11:05:26 +02:00