← Back to Pull requests

[rocjitsu][fi] Mutate qualified CDNA5 ordinary load addresses #16785

Open
unknown opened this pull request with 248 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 25, 2026 07:55 UTC
Author

The acquire query can identify ordinary loads on gfx1250 and gfx1251,
but callers cannot yet turn those selections into address mutants. Editing
the load without retaining its qualification proof would also lose the
wait/cache and ownership conditions that define the candidate set.

Add OrdinaryWrongAddress mutation for the CDNA5 wave32
Cdna5GlobalB32 profile, together with the shared ordinary-address CLI path.
Reuse the existing acquire discovery and exact/qualified-ordinal selector.
Before applying an edit, check source identity, membership and every saved
proof byte, then decode the original load again to confirm its form,
immediate and scope. A stale or mismatched selection cannot produce output.

Apply a positive, four-byte-aligned delta no greater than 0x7fffff to the
signed24 byte immediate. Reject overflow and an unaligned resulting offset.
Construct a complete replacement through the existing source-preserving
field helper and checked writer, retaining operands, scope, cache hints,
waits and continuations. Preserve scale_offset: it scales the vector
offset, while the immediate and requested delta remain byte offsets.

Each request uses a fresh replacement batch from the pristine image, so
independent mutants do not accumulate edits. The CLI exposes qualified
listing, exact/ordinal selection, capabilities and checked new-file output.
RDNA4 acquire profiles remain query-only in this PR.

For example, an illustrative qualified CDNA5 sequence has these fields;
register operands and unrelated modifiers are omitted:

global_load_b32 ... offset:-4 scale_offset:1 scope:Device
s_wait_loadcnt 0
global_inv ...

delta +8  -> load immediate +4; scale_offset remains 1
delta +16 -> independent load immediate +12 from the original -4

Both mutants retain the original wait/cache association. A delta of 2
is rejected without producing a mutant; a load without the required
acquire sequence never enters this mode's qualified inventory.

Diff: 248 lines (+186 / -62) across 3 files Reviewer: hanhanW Review duration: 8649m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 248 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.330
Real PR Conversation Timeline
1 comments
"Review active on #16785"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 38.9% (MEDIUM) · Higher = larger blast radius
38.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 20.8% · Safe to merge
20.8%