Actions
Bug #66570
closed
ID
ID
diff-iterate in fast-diff mode reports incorrect offsets when encryption is loaded
Bug #66570:
diff-iterate in fast-diff mode reports incorrect offsets when encryption is loaded
Due date:
% Done:
0%
Source:
Backport:
quincy,reef,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v19.3.0-3074-g314971d6d8
Released In:
v20.2.0~2593
Upkeep Timestamp:
2026-08-28T01:38:03+00:00
Description
diff-iterate in fast-diff mode assumes that all offsets are raw -- no remapping takes place for DATA area even if encryption is loaded. This means that the callback gets invoked with incorrect image offsets.
For example, for an LUKS1-encrypted image where something was written (with encryption loaded) to the object at offsets 0 and 20M, diff-iterate (with encryption loaded) reports
0~4194304 4194304~4194304 25165824~4194304instead of
0~4194304 20971520~4194304as "exists". For any piece of code that is using diff-iterate to optimize block-by-block image processing (e.g. copy from an encrypted source image to a differently-encrypted destination image), this is a disaster: based on that report, it would skip processing block 20971520~4194304 which has data and instead process block 25165824~4194304 which doesn't have any data and could be skipped.
ID Updated by Ilya Dryomov over 2 years ago
- Subject changed from diff-iterate in fast-diff doesn't work if encryption is loaded to diff-iterate in fast-diff mode reports incorrect offsets if encryption is loaded
ID Updated by Ilya Dryomov over 2 years ago
- Subject changed from diff-iterate in fast-diff mode reports incorrect offsets if encryption is loaded to diff-iterate in fast-diff mode reports incorrect offsets when encryption is loaded
ID Updated by Ilya Dryomov over 2 years ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 58201
ID Updated by Ilya Dryomov over 2 years ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot over 2 years ago
- Copied to Backport #66743: reef: diff-iterate in fast-diff mode reports incorrect offsets when encryption is loaded added
UB Updated by Upkeep Bot over 2 years ago
- Copied to Backport #66744: squid: diff-iterate in fast-diff mode reports incorrect offsets when encryption is loaded added
UB Updated by Upkeep Bot over 2 years ago
- Copied to Backport #66745: quincy: diff-iterate in fast-diff mode reports incorrect offsets when encryption is loaded added
UB Updated by Upkeep Bot over 2 years ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot over 2 years ago
- Status changed from Pending Backport to Resolved
While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to 314971d6d838e0d86a060142d978c7a0ef447663
- Fixed In set to v19.3.0-3074-g314971d6d83
- Upkeep Timestamp set to 2025-07-10T23:38:09+00:00
UB Updated by Upkeep Bot over 1 year ago
- Fixed In changed from v19.3.0-3074-g314971d6d83 to v19.3.0-3074-g314971d6d8
- Upkeep Timestamp changed from 2025-07-10T23:38:09+00:00 to 2025-07-14T22:42:48+00:00
UB Updated by Upkeep Bot about 1 year ago
- Released In set to v20.2.0~2593
- Upkeep Timestamp changed from 2025-07-14T22:42:48+00:00 to 2025-11-01T01:33:17+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2025-11-01T01:33:17+00:00 to 2026-08-28T01:38:03+00:00
Actions