Repository navigation
Loader: preserve files with malformed TLS clone names (RT-854) - #8792
Draft
AndresGroselj wants to merge 1 commit into
Draft
AndresGroselj wants to merge 1 commit into
AndresGroselj wants to merge 1 commit into
Conversation
Contributor
|
Tested The startup sweep preserves all ten files with malformed clone names. Each file keeps its original bytes. The sweep removes the stale numeric clone and the stale I built AI-assisted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The startup sweep matched
leonida_tls_host_*.dlland could delete files whose names were not loader clones. It also accumulated PIDs in a 32-bit Windowsunsigned long, so checking overflow after multiplication did not work.Validate the complete filename, require a nonzero DWORD PID, check numeric overflow before multiplication, and skip unrecognized names. Numeric helper slots and the
hometag remain supported. The end-to-end regression creates ten malformed sentinel names, verifies their contents survive, and retains checks for stale, live-process and held-open clones.Coordination: RT-854, claim.
This branch is based directly on upstream
main(867d922f), with only the filename-validation change and its regression test. It contains none of #8379's TLS-index-0 implementation. A separate local integration with #8379 was used for compatibility and retail smoke testing.Validation:
loader_tlspasses 106 checks, including all ten malformed sentinels unchanged.test_image_atomics_guard,test_image_store_d16). Both failures reproduce unchanged on cleanmainat867d922f(47 and 1 failing subcases respectively).0x80000003before D3D12. The private runtime diagnostic names the missing dynamicXErrorReportexport, matching Loader: the mapped game executable owns module TLS index 0 (RT-259, takeover of #4313) #8379's reported stop. No traces or game content are included.Environment: Nobara Linux 44, Wine 11.17 Staging, Fedora clang-cl/lld 22.1.8, Windows SDK 10.0.26100. Available GPU: RX 7900 XT, RADV Mesa 26.2.5; the retail run did not reach D3D12. Clang's synthetic tests do not validate MSVC's
/GAinstruction shape.AI-assisted with Codex. Unrecognized files are conservatively left untouched; this does not change the separate clone-staging race concern.