Loader: keep the CLZERO test pointed at free memory #4633

Open
github-bot wants to merge 1 commit from github-bot/gh-4632 into main AGit
Owner

@⁠tyr0nsur on GitHub · 2026-12-01 00:23 UTC · original
tyr0nsur:codex/clzero-free-memory-test-20261201 → main · +4 −3 · 1 files · 1 commits · open

What it changes

The last assertion of clzero_on_a_guarded_line_goes_through_the_guard uses the address of a page it just released. A parallel test can claim it before the check. The emulator then sees a writable line and returns CONTINUE_EXECUTION (-1), as happened in the Windows check for #4400.

Point the free-memory case at an aligned address below Windows' first application address. VirtualQuery(0x40) reports MEM_FREE on the test host, and parallel allocations cannot claim that address. The guarded cases and the emulator are untouched.

How it was tested

  • GPU and profile: Windows 11, Ryzen 7 5800X. The loader test uses no GPU or title data.
  • Before: explicitly reoccupying the released test page reproduced the exact -1 versus 0 failure.
  • After: the low-address case passed under the same reoccupation control.
  • cargo test --locked -p victory-loader --lib: 76 passed. The same test binary passed 40 runs of the parallel lib suite.
  • cargo clippy --locked -p victory-loader --all-targets -- -D warnings passed. Staged asset policy passed.

Checked for overlap

  • I searched open and closed issues and pull requests by test name, assertion, and CLZERO symptom, and inspected the open PRs touching console_insn.rs. Related: #698 added the guard behavior. #4194 and #4196 handle late faults at installed instruction patches. I found no open PR changing this free-memory fixture.

Reviewed with Claude Code (Opus 5.5).

**@⁠tyr0nsur** on GitHub · 2026-12-01 00:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4632) `tyr0nsur:codex/clzero-free-memory-test-20261201` → `main` · +4 −3 · 1 files · 1 commits · open ## What it changes The last assertion of `clzero_on_a_guarded_line_goes_through_the_guard` uses the address of a page it just released. A parallel test can claim it before the check. The emulator then sees a writable line and returns `CONTINUE_EXECUTION` (`-1`), as happened in the [Windows check for #4400](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46540897894/job/142278968283). Point the free-memory case at an aligned address [below Windows' first application address](https://devblogs.microsoft.com/oldnewthing/20221216-00/?p=107598). `VirtualQuery(0x40)` reports `MEM_FREE` on the test host, and parallel allocations cannot claim that address. The guarded cases and the emulator are untouched. ## How it was tested - GPU and profile: Windows 11, Ryzen 7 5800X. The loader test uses no GPU or title data. - Before: explicitly reoccupying the released test page reproduced the exact `-1` versus `0` failure. - After: the low-address case passed under the same reoccupation control. - `cargo test --locked -p victory-loader --lib`: 76 passed. The same test binary passed 40 runs of the parallel lib suite. - `cargo clippy --locked -p victory-loader --all-targets -- -D warnings` passed. Staged asset policy passed. ## Checked for overlap - [x] I searched open and closed issues and pull requests by test name, assertion, and CLZERO symptom, and inspected the open PRs touching `console_insn.rs`. Related: #698 added the guard behavior. #4194 and #4196 handle late faults at installed instruction patches. I found no open PR changing this free-memory fixture. Reviewed with Claude Code (Opus 5.5).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 00:23:38 +00:00
github-bot changed title from [pr-tests] Loader: keep the CLZERO test pointed at free memory to Loader: keep the CLZERO test pointed at free memory 2026-12-01 00:29:17 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4633/head:github-bot/gh-4632'
git switch 'github-bot/gh-4632'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4632'
git switch 'github-bot/gh-4632'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4632'
git switch 'github-bot/gh-4632'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4632'
git switch 'main'
git merge --squash 'github-bot/gh-4632'
git switch 'main'
git merge --ff-only 'github-bot/gh-4632'
git switch 'main'
git merge 'github-bot/gh-4632'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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