]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: fix issues with use-after-free in C_Flush_Journal
authorMilind Changire <mchangir@redhat.com>
Wed, 19 Mar 2025 05:49:21 +0000 (11:19 +0530)
committerMilind Changire <mchangir@redhat.com>
Wed, 20 Aug 2025 06:32:15 +0000 (12:02 +0530)
commitcdea0ee3d091a6932206be687f362583ec2cd2f2
tree885417fba0e213cb6fb44fafd921de5bd4ff5816
parent7b7520e21a98493f42f4dfa14c0c59bd5ea6c0e8
mds: fix issues with use-after-free in C_Flush_Journal

Moved dout() statement out of trim_expired_segments() to avoid
dereferencing 'this' object after object deletion via context completion
handler.

Fixes: https://tracker.ceph.com/issues/69953
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit d14fb9a44ac481bca9f87900aa6a73ec96a3cdce)

Conflicts:
src/mds/MDSRank.cc
- resolved conflicts between main and squid branches
src/mds/MDSRank.cc