Skip to content

Fix: update-server switch_default_boot_image causing erase-inverted-range - #2772

Closed
imlvts wants to merge 1 commit into
oxidecomputer:masterfrom
imlvts:fix-stage0-promote-full-erase
Closed

imlvts wants to merge 1 commit into
oxidecomputer:masterfrom
imlvts:fix-stage0-promote-full-erase

Conversation

@imlvts

@imlvts imlvts commented Nov 10, 2026

Copy link
Copy Markdown

flash_erase_range assumes the caller to check the math.

If the write lands on the block boundary, flash_erase_range gets called with an empty range, which calls start_erase_range with an inverted range, and the FlashSim gives erase-inverted-range:.

The fix is to skip erasing an empty range.

`flash_erase_range` assumes the caller to check the math.

If the write lands on the block boundary, `flash_erase_range`
gets called with an empty range, which calls `start_erase_range`
with an inverted range, and the FlashSim gives `erase-inverted-range:`.

The fix is to skip erasing an empty range.
@imlvts
imlvts force-pushed the fix-stage0-promote-full-erase branch from 52a41a1 to bcde0fe Compare November 10, 2026 03:47
@imlvts

imlvts commented Nov 12, 2026

Copy link
Copy Markdown
Author

closing in favor of #2771 , which will get a combined fix

@imlvts imlvts closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant