]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 19 Dec 2019 15:58:30 +0000 (15:58 +0000)
commitb66be89569dd5b233622edd83ccf291d8cefc13d
tree2a6d1bfd7e2369d89584fa6010854c9e3831cd6c
parente19a0f181e9702a55f6b12db58abd2a649e141f4
ceph: just skip unrecognized info in ceph_reply_info_extra

commit 1d3f87233e26362fc3d4e59f0f31a71b570f90b9 upstream.

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.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ceph/mds_client.c