]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix issues with use-after-free in C_Flush_Journal 62553/head
authorMilind Changire <mchangir@redhat.com>
Thu, 20 Mar 2025 17:01:32 +0000 (22:31 +0530)
committerMilind Changire <mchangir@redhat.com>
Fri, 28 Mar 2025 12:32:14 +0000 (18:02 +0530)
commite1ab8eb78b17b2c0ca606e173f3015c909092700
treeaa4200054685f79245770db9dfbe229d7cf44387
parentd14fb9a44ac481bca9f87900aa6a73ec96a3cdce
mds: fix issues with use-after-free in C_Flush_Journal

Resolved use-after-free issue of ESubtreeMap. The subtreemap event gets
destroyed after it is submitted to the log.

MDLog::submit_event() now returns a sequence number of the submitted event.

Fixes: https://tracker.ceph.com/issues/69953
Signed-off-by: Milind Changire <mchangir@redhat.com>
src/mds/MDLog.cc
src/mds/MDLog.h
src/mds/MDSRank.cc