Loader: keep the CLZERO test pointed at free memory #4633
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4633
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4632"
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?
@tyr0nsur on GitHub · 2026-12-01 00:23 UTC · original
tyr0nsur:codex/clzero-free-memory-test-20261201→main· +4 −3 · 1 files · 1 commits · openWhat it changes
The last assertion of
clzero_on_a_guarded_line_goes_through_the_guarduses 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 returnsCONTINUE_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)reportsMEM_FREEon the test host, and parallel allocations cannot claim that address. The guarded cases and the emulator are untouched.How it was tested
-1versus0failure.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 warningspassed. Staged asset policy passed.Checked for overlap
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).
[pr-tests] Loader: keep the CLZERO test pointed at free memoryto Loader: keep the CLZERO test pointed at free memoryView 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.