Watch: a late lock-free fault no longer undoes the guard taken since #900

Closed
Machad3x wants to merge 2 commits from upstream-pr/900 into main
Machad3x commented 2026-11-28 08:48:18 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Machad3x on 2026-11-28T08:48:18Z.


Fixes #817.

A lock-free write fault that arrives late could undo a guard taken after it, so a later write went untracked and the next fault on that page was an access violation. The late fault now leaves alone any guard taken since it was raised.

  • 477d5c5e: the fix in the watch, with regression test a_late_fault_leaves_the_guard_taken_since.
  • 12f300c0: test-only fix. One test made a view at an address another test was still changing, and section numbers were reported gone before they were closed. This was a hang in cargo test, not in the game.

Testing:

  • cargo test -p victory-gpu: 454 passed, 0 failed (36 ignored), on top of 63b902fe.
  • In our fork this has been in every run since batch 9 (about 10 runs of 240 s on an RTX 3080 Ti, Ryzen 7 5700X) with no access violation from the watch.

First landed in our fork: github.com/Machad3x/VIctory-nvidia-RTX@3175c5dc and github.com/Machad3x/VIctory-nvidia-RTX@df65d657 (fork main since batch 9). Cherry-picked onto current main here.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5538446845 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/900). Originally posted by [Machad3x](https://github.com/Machad3x) on 2026-11-28T08:48:18Z. --- Fixes #817. A lock-free write fault that arrives late could undo a guard taken after it, so a later write went untracked and the next fault on that page was an access violation. The late fault now leaves alone any guard taken since it was raised. - `477d5c5e`: the fix in the watch, with regression test `a_late_fault_leaves_the_guard_taken_since`. - `12f300c0`: test-only fix. One test made a view at an address another test was still changing, and section numbers were reported gone before they were closed. This was a hang in `cargo test`, not in the game. Testing: - `cargo test -p victory-gpu`: 454 passed, 0 failed (36 ignored), on top of `63b902fe`. - In our fork this has been in every run since batch 9 (about 10 runs of 240 s on an RTX 3080 Ti, Ryzen 7 5700X) with no access violation from the watch. First landed in our fork: https://github.com/Machad3x/VIctory-nvidia-RTX/commit/3175c5dc and https://github.com/Machad3x/VIctory-nvidia-RTX/commit/df65d657 (fork main since batch 9). Cherry-picked onto current main here. 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!900
No description provided.