Shaders/own_bits: fix STALE taint propagation for control-dependent a… #516
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!516
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-516"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@pug205gti6 on GitHub · 2026-11-25 01:57 UTC · original
pug205gti6:pr/441-shaders-own-bits→main· +181 −10 · 1 files · 1 commits · open…nd loop-carried mask phis
In
own_bits::Ctx::site, theSTALEcheck missed test-dependent lane masks that outlived their round in three ways:deppropagation overst.phi_masksonly checked the BDD support of incoming edge values, missing control-dependent mask phis whose per-edgegiven(m, edge)folded to constants (TRUE/FALSE) across a tainted branch or path.lpdominated by a test blocktb. Because the own-bit test normally lives in the loop header (tb == h),self.dominates(tb, b)skipped every block inlp, including guards/uses beforetiintband loop-carried mask phis ath.st.masksuser check only flaggedUser::Phi(b2, k2)when!lp[b2], ignoring live loop-header phis atb2 == h.Propagate control-dependent taint into
st.phi_maskswhen incoming edge values differ and a predecessor's reachability or branch condition is tainted, reject tainted loop-header mask phis ath, check guards and instruction mask users against instruction-level dominance after(tb, ti), and treat live phi users athas leaving the round. Add synthetic unit tests covering control-dependent loop-carried, control-dependent post-loop, and direct data-dependent loop-carried tainted masks.@Revens2 on GitHub · 2026-11-25 07:36 UTC · original
Duplicate of #441: @AscilCH opened this patch 65 minutes earlier, and
gh pr diffreturns the same bytes for both (+181/-10 on 1 file(s), same title).Please continue in #441 so the review history and any test data stay in one place.
Thanks.
@Headache3318 on GitHub · 2026-11-25 07:51 UTC · original
Independent verification: PR #516 (Shaders/own_bits: fix STALE taint propagation for control-dependent and loop-carried mask phis) merges cleanly onto main (
8dd30ab). Build: success. Tests: 172/172 shader tests pass; full workspace tests fail on Linux due to known Windows-only dependency issue (unrelated to PR). Only 1 file modified: crates/victory-shader/src/emit/own_bits.rs (+181, -10). PR is clean and ready to merge. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.