ceph: fix endianness bug when handling MDS session feature bits
authorJeff Layton <jlayton@kernel.org>
Tue, 28 Apr 2020 12:10:22 +0000 (08:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 May 2020 05:58:27 +0000 (07:58 +0200)
commit3fd9f902c08a9506f24c0857c2cb321d3d72c8dc
tree32cbf7b800d49699576cab86a02f67f3e9e5ee8d
parente991f7ded4e11dab9c29c8ddec838f97c1067f35
ceph: fix endianness bug when handling MDS session feature bits

commit 0fa8263367db9287aa0632f96c1a5f93cc478150 upstream.

Eduard reported a problem mounting cephfs on s390 arch. The feature
mask sent by the MDS is little-endian, so we need to convert it
before storing and testing against it.

Cc: stable@vger.kernel.org
Reported-and-Tested-by: Eduard Shishkin <edward6@linux.ibm.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>
fs/ceph/mds_client.c