From: Alex Ainscow Date: Thu, 17 Apr 2025 16:23:04 +0000 (+0100) Subject: osd: Fix access-freed-memory issue in EC extent cache. X-Git-Tag: testing/wip-jcollin-testing-20250821.034803-tentacle~109^2~18 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3d52a2356f8e0f0dad322b932ce2ab0554587a8b;p=ceph-ci.git osd: Fix access-freed-memory issue in EC extent cache. A very similar issue has been in product code, but this was found using valgrind. Signed-off-by: Alex Ainscow (cherry picked from commit 1d7425ef1621816e061c4a8d22d9e4f7617912e8) --- diff --git a/src/osd/ECExtentCache.cc b/src/osd/ECExtentCache.cc index e441a32c52d..081e4b5e191 100644 --- a/src/osd/ECExtentCache.cc +++ b/src/osd/ECExtentCache.cc @@ -172,7 +172,6 @@ void ECExtentCache::Object::erase_line(uint64_t offset) { check_seset_empty_for_range(requesting, offset, line_size); do_not_read.erase_stripe(offset, line_size); lines.erase(offset); - delete_maybe(); } void ECExtentCache::Object::invalidate(const OpRef &invalidating_op) {