diff options
| author | Kal0s-design <356578040+Kal0s-design@users.noreply.github.com> | 2026-11-30 11:28:39 +0100 |
|---|---|---|
| committer | Kal0s-design <356578040+Kal0s-design@users.noreply.github.com> | 2026-11-30 11:28:39 +0100 |
| commit | 42b1f4ae4bd0aa40b79066f66d5ff11736231643 (patch) | |
| tree | 67d8168352a67d58874f5b0f8053d581c3c2540e /runtime/test/cpp_unwind_test.cpp | |
| parent | 454df8e954815e716888785df0b2e65ecfc82cf7 (diff) | |
d3d12: a guard page fails a copy and stays a guard page
Title memory has guard pages: stack guards, and guards the title sets up
itself. A copy, put or merge of title memory (safecopy, under the
write-catch handler in watch.rs) that touched one took
STATUS_GUARD_PAGE_VIOLATION, which clears the page's guard flag. The
handler sent every fault inside a copy to the copy's failing exit,
whatever the code, and nothing set the flag again: the page stayed an
ordinary page, so the title's next touch of it no longer raised the
guard fault it was set up for.
A guard fault inside a copy now sets the guard flag again on its page,
with the protection the page has, and fails the copy as before. The
re-arm checks that the page is still committed and that VirtualProtect
succeeds; a re-arm that fails, or a guard fault with no address, is
counted (NOT_REARMED) and the first one is logged. A guard fault outside
a copy still goes on to the next handler.
Tests: the source and destination cases for copy, put and merge (all four
fail on main with "...cleared the guard flag" / "the guard flag was
consumed"), and a_page_that_cannot_be_guarded_again_is_counted.
Port of zocram4cc's fix and tests in the sibling VIctory tree
(TaynanGT/Vice-Tay fa11650 and c277533, GPL-3.0).
Co-Authored-By: zocram4cc <79211006+zocram4cc@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions