ceph: zero the dir_entries memory when allocating it
authorXiubo Li <xiubli@redhat.com>
Thu, 17 Feb 2022 08:15:42 +0000 (16:15 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 1 Mar 2022 17:26:37 +0000 (18:26 +0100)
commit2941bf53f59c5fb4def7e5883cb452ae7b2ee304
tree288070c1d928498d71651ca3046d3e104f12ac84
parentab58a5a1c0487b67f7409f39d3c8593d416d4e7f
ceph: zero the dir_entries memory when allocating it

This potentially will cause a bug in future if using an old ceph
version that sends a smaller inode struct, which can cause some members
to be skipped in handle_reply.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c