fix(msan): harden loader path handling to avoid uninitialized reads#755
Draft
MrSpideyNihal wants to merge 6 commits intometacall:developfrom
Draft
fix(msan): harden loader path handling to avoid uninitialized reads#755MrSpideyNihal wants to merge 6 commits intometacall:developfrom
MrSpideyNihal wants to merge 6 commits intometacall:developfrom
Conversation
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.
This PR fixes repeated MemorySanitizer uninitialized-read reports in the loader execution-path flow by hardening path construction and storage across configuration, loader core, and ext loader.
What changed
1.ext_loader: bounded path conversion using LOADER_PATH_SIZE
2.loader core: normalize deferred execution paths before storage
3.configuration: bound and terminate child path copy
Why
MSan showed repeated use-of-uninitialized-value in ext_loader execution path handling. Root cause is partially initialized path-buffer propagation through loader path flow. This PR prevents reading beyond initialized bytes and aligns bounds with loader path size contracts.