ceph: just skip unrecognized info in ceph_reply_info_extra
authorJeff Layton <jlayton@kernel.org>
Thu, 26 Sep 2019 20:05:11 +0000 (16:05 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 15 Oct 2019 15:43:10 +0000 (17:43 +0200)
commit1d3f87233e26362fc3d4e59f0f31a71b570f90b9
tree1a9f6944e50eac6d2675e78338a259780f95df4c
parent4f5cafb5cb8471e54afdc9054d973535614f7675
ceph: just skip unrecognized info in ceph_reply_info_extra

In the future, we're going to want to extend the ceph_reply_info_extra
for create replies. Currently though, the kernel code doesn't accept an
extra blob that is larger than the expected data.

Change the code to skip over any unrecognized fields at the end of the
extra blob, rather than returning -EIO.

Cc: stable@vger.kernel.org
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c