Repository navigation
fix(vm): bound OCI bootstrap image extraction - #5943
Merged
Merged
Conversation
Signed-off-by: Adrien Langou <[email protected]>
Signed-off-by: Adrien Langou <[email protected]>
Signed-off-by: Adrien Langou <[email protected]>
Signed-off-by: Adrien Langou <[email protected]>
Signed-off-by: Adrien Langou <[email protected]>
alangou
force-pushed
the
fix/limit-bootstrap-extraction/alangou
branch
from
November 24, 2026 16:12
f1b10b0 to
0cb2037
Compare
TaylorMutch
approved these changes
Nov 24, 2026
TaylorMutch
left a comment
Contributor
There was a problem hiding this comment.
Reviewed the extraction budget, sparse and hard-link accounting, cleanup, configuration forwarding, and rebase interactions. No actionable findings. Eight isolated VM extraction and directory-safety tests passed against the reviewed code; full VM integration suites were not rerun.
5 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Bound how much data the VM driver expands on its host when it prepares an operator-selected registry bootstrap image.
What changed
Apply a per-image budget across layers in manifest order. Decoded tar streams, including headers and padding, must fit the limit. The output budget covers staging and merge, sparse logical sizes, and copies of hard links. A 4 KiB minimum per entry and per staged parent component bounds amplification from empty files and implicit directories. Downloads and digest checks remain parallel.
Set
bootstrap_extraction_max_bytesin the VM driver configuration to override the 10 GiB default. A rejected build removes its staging tree and creates no cache entry.Scope
This covers cold registry bootstrap preparation. Compressed downloads, filesystem metadata, final ext4 formatting and local container-engine exports have separate storage costs.
Verification
Continues #5816 from a branch in this repository with the same commits.