Closed
Rust MaD: add blanket-impl fallback for sink/source/barrier matching and model GlobalAlloc::realloc#22442
GlobalAlloc::realloc#22442Conversation
Co-authored-by: hvitved <3667920+hvitved@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix MaD sink/source/barrier matching to include implements fallback
Rust MaD: add blanket-impl fallback for sink/source/barrier matching and model Aug 27, 2026
GlobalAlloc::realloc
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.
Blanket-impl trait methods now have canonical paths like
<_ as Trait>::method, but Rust MaD sink/source/barrier matching only handled exact path equality. That caused blanket-impl calls (notablyGlobalAllocmethods used bystd::alloc::System) to miss modeled flow.MaD matching parity for non-summary models
FlowSourceFromModel,FlowSinkFromModel,FlowBarrierFromModel, andFlowBarrierGuardFromModelto support animplementsfallback, mirroring summary-side behavior.Dedup guard for concrete impls
<_ as ...>) so concrete impl methods do not match both exact and inherited paths.Missing realloc sink model
core::alloc::global::GlobalAlloc::reallocsink entry inalloc.model.yml(Argument[2],alloc-size), enablingSystem.realloc(..)sink coverage.Targeted MaD barrier coverage
barrierModelandbarrierGuardModelpaths as well.