XMem: pin short records in tracked CPU mappings #2441
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2441
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2441/head"
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?
@R0Y00 on GitHub · 2026-11-25 16:56 UTC · original
R0Y00:codex/indirect-dispatch-refresh→main· +75 −14 · 5 files · 1 commits · merged 2026-11-25 17:02 UTCRefs #1914.
A consumer that records a short command argument can encounter a tracked XMem CPU mapping outside the graphics mirror. Version 2 of the existing in-process section lease API can pin a record within one committed physical page and verify that the same backing still covers it later. The pin keeps the original slot alive across unmapping, grant retirement and reuse of the virtual address. Version 1 retains its mirrored, potentially multi-page contract.
The CPU regression covers a 12-byte record ending at the page boundary, late writes to the original view, same-address replacement, an unleased prefix, crossing the page, holes, mismatched API versions and duplicate release.
Windows 11 build 26200, Release with MSVC x64. The local fixture and regressions passed 10/10 with zero skips, including RTX 4060 Laptop (32.0.16.1656) and WARP.