]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix use-after-free in Migrater 33751/head
authorYan, Zheng <zyan@redhat.com>
Fri, 14 Feb 2020 02:45:47 +0000 (10:45 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 5 Mar 2020 15:48:27 +0000 (07:48 -0800)
commit9c37b12b29753bcfa07da576d8e4e8f60d758f5d
tree45845f4e0c87af358573dc1d07cd15ae46bb1803
parent484192e676e1f1f0f21e470d6637d6b3de65f70a
mds: fix use-after-free in Migrater

use PIN_PTRWAITER to pin CDir in MigratorContext. Also pin CDir to
MDRequest because export may get cancelled while acquiring locks.

Fixes: https://tracker.ceph.com/issues/43909
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 6203c27b1e48438450524b7c40bb036e5897f207)
src/mds/Migrator.cc