GPU watch marks unaligned zero-byte writes and can drop live aliases on empty remaps #2009
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from Marvisak/VIctory. Originally posted by tyr0nsur on 2026-11-25T02:53:29Z.
On
940d32f,writing(base + 1, 0)reports a write to a clean 64 KiB page and its alias. Rounding the unaligned start down and the identical end up produces a one-page range. The same rounding intitle_memory_remappedcan remove an alias link on an empty remap.The regression links two tracked pages and consumes the initial dirty range. It checks the empty write both while the guard lives and after dropping it, checks the empty remap, and then verifies that a real one-byte write through the first address still dirties the second. It uses the existing test helpers.
I reproduced the first empty-write assertion failure on Windows x64 at the revision above. With the small guard and range changes, the regression and the GPU library suite pass. Apply the linked patch, then run
cargo test --locked -p victory-gpu --lib watch::tests::empty_writes_and_remaps_leave_a_clean_page_and_its_alias_untouched -- --exact.Standalone patch and regression test
Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-25T03:07:34Z.
Independent Windows validation on
940d32f. I split the two behaviors into separate synthetic probes so each executes on the upstream baseline.All 9 watch tests passed with the linked patch, including its original regression and both local probes. The full GPU library suite with that patch had 144 passed, 2 failed, 2 ignored on RTX 3080. Both failures were the known NVIDIA descriptor-heap tests. Adding #1751 separately brought it to 146 passed, 0 failed, 2 ignored.
All inputs were synthetic. No game files were used. AI-assisted (OpenAI Codex).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T12:49:48Z.
Automated triage for the maintainers.
Confirmed in
main(940d32f). Incrates/victory-gpu/src/watch.rs, bothwritingandtitle_memory_remappedcompute(at / PAGE, (at + len).div_ceil(PAGE))with no check forlen == 0, so an unaligned empty range covers one page:writingmarks it (and its aliases) changed, andtitle_memory_remappedremoves that page's alias links.Open PR: #2021, which carries this change against
main, so review can continue there rather than on the patch file in the fork.Generated by Claude Code