]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerLaura Flores <lflores@ibm.com>
Wed, 9 Jul 2025 15:47:25 +0000 (15:47 +0000)
A very similar issue has been in product code, but this was found using valgrind.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit 1d7425ef1621816e061c4a8d22d9e4f7617912e8)

src/osd/ECExtentCache.cc

index e441a32c52dcca3b1ca0b256e3e99c70dba13fa0..081e4b5e191947337fedb962016c64e45693cf69 100644 (file)
@@ -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) {