Repository navigation
Conversation
Only +0 (title limit) and +8 (title used) were written, so engines that size streaming pools from the fast-memory (GPU-optimal bandwidth) pair read stack garbage. Now +0x10..+0x4F are written too: tools limit / used 0, stack used and page count 0, fast-memory limit and used = the title's (one pool here), the tools' fast memory 0, kernel pool 0. Every caller has those 0x50 bytes; nothing is written at or past +0x50, where an older caller's stack cookie is (zeroing 0x78 bytes once failed its cookie check, 0xC0000409). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No open or merged PR fills more of XMemGetWorkingSetStatistics; #3352 adds XMemGetPhysicalMemoryLayout next to it and does not overlap. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
Review (head dc4f69f, diff read, not a merge-check; draft):
Fine: the test checks every field up to +0x50 and that nothing at or past +0x50 is touched, for both buffer sizes. Reporting the fast-memory pair as the title's limit and use fits XCL's one pool, and the helper keeps the null check and the AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
Status: a guess that needs evidence before it can be merged. The layout of XMemGetWorkingSetStatistics' output past +0x8 (the fast-memory pair and the other fields up to +0x4F) is reasoned from how titles call the API and from the PC's D3D12; it is not taken from any console documentation, and no title has confirmed it yet. Draft until then.
Evidence that would confirm it: a title that reads those fields: a streaming pool sized from them (in the title's own log or its memory use), with and without this change. The retail game used for the regression run does not get there.
If you run a title that gets there, please post those lines here (not the whole log, which names your paths).
Only +0 (title limit) and +8 (title used) were written, so engines that size
streaming pools from the fast-memory (GPU-optimal bandwidth) pair read stack
garbage. Now +0x10..+0x4F are written too: tools limit / used 0, stack used
and page count 0, fast-memory limit and used = the title's (one pool here),
the tools' fast memory 0, kernel pool 0. Every caller has those 0x50 bytes;
nothing is written at or past +0x50, where an older caller's stack cookie is
(zeroing 0x78 bytes once failed its cookie check, 0xC0000409).
What is in it
crates/xcl/src/hle/kernelx.rs: +31 / -3new tests:
working_set_statistics_fill_the_fields_up_to_0x50_onlyTested
NVIDIA RTX 2070 SUPER (driver 32.0.16.2140), AMD Ryzen 5 3600XT, Windows 11 build 26300, Rust 1.100.0 MSVC; tests in debug
cargo test --workspace --no-fail-fast -- --test-threads=4ondc4f69fb(built onmain336fddda; it merges into the currentmaine429936cwithout conflict): 2123 passed, 9 failed, 48 ignored, 25SKIPPEDlines (21 no wave64, 3 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426, 1 no heap windows).The 9 failures are the ones
mainhas (3e2etitle tests and 6 split-wave64 GPU tests, main e429936 on NVIDIA: 3 e2e title tests and 6 split-wave64 GPU tests fail since #2959 #3093:main336fdddagives 2122 passed, 9 failed, 48 ignored); the set of failing tests is identical to it.working_set_statistics_fill_the_fields_up_to_0x50_only: ok in that run; fails without the changeRegression run
Both 60-second runs used the same warm DXIL cache directory.
Not tested
Full preparation. The smoke runs used
XCL_PREPARE=0.The two structure sizes are not told apart: the fields up to +0x50, inside every caller's buffer, are written for all callers; the tests check a 0x50-byte and a 0x78-byte buffer. A title reading these fields: none checked.
AMD and Intel GPUs; wave64 hardware (the RTX 2070 SUPER is wave32).
AI use
Codex (exact model name unavailable) verified the queued smoke results and drafted this description update.
patch-worker on Claude Sonnet 5.5 (self-reported); reviewed by Claude Opus 5.5: the code and tests. The description and the test / suite runs: Claude Code, Claude Sonnet 5.5 and Claude Opus 5.5.
🤖 Generated with Claude Code