]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: don't shallow copy when decoding xattr map 35147/head
authorYan, Zheng <zyan@redhat.com>
Wed, 15 Apr 2020 10:49:36 +0000 (18:49 +0800)
committerVicente Cheng <freeze.bilsted@gmail.com>
Wed, 20 May 2020 08:17:15 +0000 (08:17 +0000)
commitf1a360428c0ad19847899617f581f6bfe5da5356
treeea2215cd5609fba2a326a3e7a8ddfdc82fa27604
parent0c857e985a29d90501a285f242ea9c008df49eb8
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>
(cherry picked from commit deff94c8f43bb3734b688ccb828d942b8f150638)
src/mds/CInode.cc
src/mds/CInode.h
src/mds/Locker.cc
src/mds/Server.cc
src/mds/journal.cc
src/mds/mdstypes.h