[BUG] Extent decoding rejects valid maximum lengths and logical endpoints #18
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/e2fsd#18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Extent readers misinterpret the valid initialized length
0x8000as an empty unwritten run. Narrowed exclusive endpoints also reject or omit the final logical block.Reproduction
Use an otherwise admitted leaf with length bytes
00 80, logical start zero and sufficient original device geometry. Separately, use logical startff ff ff ffand length01 00. The first encoding represents 32,768 initialized blocks; the second ends exactly at2^32.Expected and actual behavior
Both intervals should remain readable, traversable and reclaimable. The affected decoder masks the first length to zero; endpoint arithmetic rejects or omits the second interval.
Environment and identity
Affected source: bfc4f7a4, Integration graph 668915f4. This finding uses format fixtures through the original mounted inode/device; no boot image or hardware reproduction is claimed. Last known working revision is unknown.
Evidence and prior checks
The extent format defines distinct initialized and unwritten maxima. Independent literal controls cover lookup, external traversal, rebuild, reclamation, fast commits and output canaries.
Tracking
Correction: #47.
erikinkinen referenced this issue from erix/docs2026-10-02 04:21:49 +02:00
erikinkinen referenced this issue2026-10-02 04:21:49 +02:00
erikinkinen referenced this issue from erix/integration2026-10-02 04:21:51 +02:00
erikinkinen referenced this issue2026-10-02 04:38:55 +02:00
The correction is ready in #47, including the independent format boundaries and interrupted original-journal controls. The issue remains open until the change is merged.