aboutsummaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorJeff Layton2020-08-04 12:31:56 -0400
committerIlya Dryomov2020-08-05 17:47:07 +0200
commit02e37571f9e79022498fd0525c073b07e9d9ac69 (patch)
tree115edaa75ee9b1084e7665b742a947a5b011fc3b /certs
parent224c7b6778fe08e1880ef88867051bec0a154d6c (diff)
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 0fa8263367db ("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: 0fa8263367db ("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>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions