]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: don't shallow copy when decoding xattr map 34571/head
authorYan, Zheng <zyan@redhat.com>
Wed, 15 Apr 2020 10:49:36 +0000 (18:49 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 22 Apr 2020 01:45:58 +0000 (09:45 +0800)
commitdeff94c8f43bb3734b688ccb828d942b8f150638
tree3ef608de0fe7cfeade8d0ff514e7aaa5cb7bca55
parenteff9d0fc9a2ca5888a81d90e12df2dff611e19e4
mds: don't shallow copy when decoding xattr map

Otherwise inodes' xattr maps may reference a large shared buffer
(from omap fetch or journal read). If mds trims and loads inode
repeatly, each inode can reference different large buffer in the
worst case.

Fixes: https://tracker.ceph.com/issues/45090
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/CInode.cc
src/mds/CInode.h
src/mds/Locker.cc
src/mds/Server.cc
src/mds/journal.cc
src/mds/mdstypes.h