]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Fix access-freed-memory issue in EC extent cache.
authorAlex Ainscow <aainscow@uk.ibm.com>
Thu, 17 Apr 2025 16:23:04 +0000 (17:23 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Tue, 1 Jul 2025 12:03:30 +0000 (13:03 +0100)
A very similar issue has been in product code, but this was found using valgrind.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/osd/ECExtentCache.cc

index 8b5cd1635205b1d5edd0698dee654e380567feb3..2f8586ab6c412cd1c818d3dbb9db0f371c0c74f7 100644 (file)
@@ -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) {