Skip to content

Commit 1f1198b

Browse files
lxbszxiubli
authored andcommitted
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 <[email protected]>
1 parent 6615a56 commit 1f1198b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mds/Server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,7 @@ void Server::handle_client_request(const cref_t<MClientRequest> &req)
25742574
auto reply = make_message<MClientReply>(*req, 0);
25752575
if (created != inodeno_t()) {
25762576
bufferlist extra;
2577-
encode(created, extra);
2577+
set_reply_extra_bl(req, created, extra);
25782578
reply->set_extra_bl(extra);
25792579
}
25802580
mds->send_message_client(reply, session);

0 commit comments

Comments
 (0)