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: v21.0.0~256^2~277^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1d7425ef1621816e061c4a8d22d9e4f7617912e8;p=ceph.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 --- diff --git a/src/osd/ECExtentCache.cc b/src/osd/ECExtentCache.cc index 8b5cd1635205..2f8586ab6c41 100644 --- a/src/osd/ECExtentCache.cc +++ b/src/osd/ECExtentCache.cc @@ -173,7 +173,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) {