root_sig_test: the versioned corrupt-checksum check asks the host first, as the unversioned one does (TEST-ROOT-SIG-VERSIONED-WIN10) #1719

Open
github-bot wants to merge 1 commit from github-bot/gh-1719 into main AGit
Owner

@⁠qhukz13 on GitHub · 2026-11-25 09:33 UTC · original
qhukz13:cont/root-sig-versioned-win10 → main · +12 −3 · 1 files · 1 commits · open

Claimed in the coordination issue as: TEST-ROOT-SIG-VERSIONED-WIN10 (claim)

What and why

On Windows 10 19045 root_sig fails one check, versioned shim rejects Xbox flags with corrupt checksum. The
shim's helper refuses to rewrite and re-sign a blob whose DXBC checksum is corrupted and passes it to the host
unchanged, and that in-box D3D12CreateVersionedRootSignatureDeserializer accepts it. The unversioned deserializer
check further down already handles exactly this: it asks the host first and prints
SKIP host-vs-shim corrupted checksum rejection (this host accepts bad checksums) where the host accepts.

The versioned check now does the same: it probes the host's versioned deserializer with the same blob, asserts that
the shim rejects it where the host does, and prints a SKIP line otherwise. The shim is not changed.

(#235, carried over from old-pr/9968, targeted two other checks of this test; its change is already on main.)

Tested

GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo, ctest -R "^root_sig$": fails on
main (FAIL versioned shim rejects Xbox flags with corrupt checksum), passes 3 of 3 with this branch, printing
SKIP versioned host-vs-shim corrupted checksum rejection (this host accepts bad checksums) and
root_sig_test: OK (0 failures). A host that rejects bad checksums keeps the assertion.

GPUs tested: NVIDIA GeForce GTX 1050 Ti, driver 582.66, Windows 10 19045. No game files.

AI-assisted: yes (Claude Code, with Antigravity for the implementation and the runs)

🤖 Generated with Claude Code

**@⁠qhukz13** on GitHub · 2026-11-25 09:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1719) `qhukz13:cont/root-sig-versioned-win10` → `main` · +12 −3 · 1 files · 1 commits · open Claimed in the coordination issue as: TEST-ROOT-SIG-VERSIONED-WIN10 ([claim](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608)) ### What and why On Windows 10 19045 `root_sig` fails one check, `versioned shim rejects Xbox flags with corrupt checksum`. The shim's helper refuses to rewrite and re-sign a blob whose DXBC checksum is corrupted and passes it to the host unchanged, and that in-box `D3D12CreateVersionedRootSignatureDeserializer` accepts it. The unversioned deserializer check further down already handles exactly this: it asks the host first and prints `SKIP host-vs-shim corrupted checksum rejection (this host accepts bad checksums)` where the host accepts. The versioned check now does the same: it probes the host's versioned deserializer with the same blob, asserts that the shim rejects it where the host does, and prints a SKIP line otherwise. The shim is not changed. (#235, carried over from old-pr/9968, targeted two other checks of this test; its change is already on `main`.) ### Tested GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo, `ctest -R "^root_sig$"`: fails on `main` (`FAIL versioned shim rejects Xbox flags with corrupt checksum`), passes 3 of 3 with this branch, printing `SKIP versioned host-vs-shim corrupted checksum rejection (this host accepts bad checksums)` and `root_sig_test: OK (0 failures)`. A host that rejects bad checksums keeps the assertion. GPUs tested: NVIDIA GeForce GTX 1050 Ti, driver 582.66, Windows 10 19045. No game files. AI-assisted: yes (Claude Code, with Antigravity for the implementation and the runs) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On Windows 10 19045, the host's D3D12CreateVersionedRootSignatureDeserializer accepts a DXBC blob with a corrupted checksum. Because the shim's RTS0 helper refuses to rewrite a corrupted container, the shim forwards the blob to the host, which succeeds.

Follow the existing unversioned check's pattern: probe the host's D3D12CreateVersionedRootSignatureDeserializer with the corrupted blob first, assert shim rejection when the host rejects it, and print a SKIP line otherwise.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:02:21 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 18:04 UTC · original

Reviewed 61bf6033 on arm64 Linux; root_sig_test itself needs Windows/MSVC/d3d12.dll, so it could not run here -
I ran the repo gates plus the probe below instead. Compiled the unmodified d3d12_xs_rootsig.cpp against a stub
header to confirm the premise (the helper refuses a corrupted-checksum blob, so the shim forwards it and mirrors
the host), then ran the check block extracted verbatim from your tree under two mock hosts: a rejecting host
asserts exactly as on main (PASS), and your 19045 host turns main's FAIL into the SKIP with no assertion lost.
check_no_game_data and the Linux configure pass. No findings.
AI-assisted review.
Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 18:04 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1719#issuecomment-7170398844) Reviewed 61bf6033 on arm64 Linux; root_sig_test itself needs Windows/MSVC/d3d12.dll, so it could not run here - I ran the repo gates plus the probe below instead. Compiled the unmodified d3d12_xs_rootsig.cpp against a stub header to confirm the premise (the helper refuses a corrupted-checksum blob, so the shim forwards it and mirrors the host), then ran the check block extracted verbatim from your tree under two mock hosts: a rejecting host asserts exactly as on main (PASS), and your 19045 host turns main's FAIL into the SKIP with no assertion lost. check_no_game_data and the Linux configure pass. No findings. AI-assisted review. **Recommendation:** Merge
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1719/head:github-bot/gh-1719'
git switch 'github-bot/gh-1719'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1719'
git switch 'github-bot/gh-1719'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1719'
git switch 'github-bot/gh-1719'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1719'
git switch 'main'
git merge --squash 'github-bot/gh-1719'
git switch 'main'
git merge --ff-only 'github-bot/gh-1719'
git switch 'main'
git merge 'github-bot/gh-1719'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.