]> git.baikalelectronics.ru Git - kernel.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)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 15 Oct 2019 15:43:10 +0000 (17:43 +0200)
commit3ace3c37944a2f1d11bbf0b2afc914cbd8616edf
tree1a9f6944e50eac6d2675e78338a259780f95df4c
parent1eba4f95a783c5666881b1e9b4c3de4b05c4f502
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