Actions
Bug #63310
closeduse-after-move in OSDService::build_incremental_map_msg()
% Done:
0%
Source:
Backport:
pacific quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
OSD
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v18.0.0-6885-g927a76c4118
Released In:
v19.2.0~1355
Upkeep Timestamp:
2025-07-11T21:11:24+00:00
Description
The 'bl' variable is moved from, then accessed:
for (epoch_t e = since + 1; e <= to; ++e) {
bufferlist bl;
if (get_inc_map_bl(e, bl)) {
m->incremental_maps[e] = std::move(bl);
} else {
dout(10) << __func__ << " missing incremental map " << e << dendl;
if (!get_map_bl(e, bl)) {
derr << __func__ << " also missing full map " << e << dendl;
goto panic;
}
m->maps[e] = std::move(bl); // <<<--------------
}
max--;
max_bytes -= bl.length(); // <<<-------------
if (max <= 0 || max_bytes <= 0) {
break;
}
}
Updated by Ronen Friedman over 2 years ago
Possibly the cause of https://tracker.ceph.com/issues/62934
Updated by Ronen Friedman over 2 years ago
- Status changed from New to Fix Under Review
- Assignee set to Ronen Friedman
- Pull request ID set to 54177
Updated by Yuri Weinstein over 2 years ago
Updated by Ronen Friedman over 2 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Ronen Friedman over 2 years ago
- Backport changed from Reef, Quincy, Pacific to pacific quincy reef
Updated by Ronen Friedman over 2 years ago
- Copied to Backport #63370: quincy: use-after-move in OSDService::build_incremental_map_msg() added
Updated by Ronen Friedman over 2 years ago
- Copied to Backport #63371: reef: use-after-move in OSDService::build_incremental_map_msg() added
Updated by Ronen Friedman over 2 years ago
- Copied to Backport #63372: pacific: use-after-move in OSDService::build_incremental_map_msg() added
Updated by Yuri Weinstein over 2 years ago
Updated by Ronen Friedman almost 2 years ago
- Status changed from Pending Backport to Resolved
Updated by Upkeep Bot 8 months ago
- Merge Commit set to 927a76c41187a8110dd99d214bd39dfec603c638
- Fixed In set to v18.0.0-6885-g927a76c4118
- Released In set to v19.2.0~1355
- Upkeep Timestamp set to 2025-07-11T21:11:24+00:00
Actions