]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita74d5096632a3bafa78762aa81d81a4d0ad5fd96
tree288070c1d928498d71651ca3046d3e104f12ac84
parent123e609edec9eee4eb0fdabcc172e9fa257a63db
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