Retry late faults at installed console instruction patches #4194
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!4194
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4193"
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?
@Hellwire on GitHub · 2026-11-30 17:17 UTC · original
Hellwire:fix/late-console-instruction-fault→main· +58 −7 · 1 files · 1 commits · closed without mergingProblem
A title thread can take an illegal-instruction fault just before another thread finishes replacing the instruction. When the fault handler examines the address, it then sees the replacement bytes and cannot decode the original instruction.
Change
Record the bytes of each successful atomic patch. Retry a fault at the same instruction pointer once per thread when the current bytes match the exact replacement installed at that address. The existing handler can then resume through the patched instruction. An unrecognized or mismatching site follows the original unhandled path.
Verification
The loader regression fixture exercises the installed replacement, repeated faults at the same address, and identical bytes at an unrecorded address. The Windows loader tests passed on the submitted source.
@trustno1-coder on GitHub · 2026-12-01 18:45 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed