]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: encode the correct extra info depending on the feature bits
authorXiubo Li <xiubli@redhat.com>
Tue, 28 May 2024 04:23:57 +0000 (12:23 +0800)
committerJos Collin <jcollin@redhat.com>
Thu, 11 Jul 2024 01:36:26 +0000 (07:06 +0530)
commit9c5cc339d363dc040e3b2fd195ce472ecec904ab
treed035e18db7ff3acf5cbef1987d72961d5bc9a63e
parent22ce460c0de7758b33bd7cd20c790ea3de3c7473
mds: encode the correct extra info depending on the feature bits

In the client side it will decode the extra info depending on the
feature bits, but if we always encode it with the old version then
the client could crash or gets the corrupted data. More detail
please see "parse_reply_info_create()" in kclient code.

Fixes: https://tracker.ceph.com/issues/63265
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 1f1198b81b2442e5d6c0566bdade2f5d7dd23d12)
src/mds/Server.cc