Repository navigation
test(relinker): cover host libc collisions in guest imports - #15585
Merged
adriadam10 merged 1 commit intoNov 7, 2026
Merged
adriadam10 merged 1 commit into
adriadam10 merged 1 commit into
Conversation
Collaborator
|
Checked the new |
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.
What
Extend
linux_guest_named_importswith a symbol that the host C library actually exports:getpid. Existingsharedcases cannot catch a guest import being silently satisfied by host libc.getpidmust return a positive PID. The module initializer checks the NID-provider result before the executable can exit with its success marker.getpid.getpidremain available.This covers the host-libc binding mechanism reported in #9261, following #9180/#9234. No production behavior changes, new dependencies, console-behavior claims, or new title-unblocking claim.
Tested
Linux x86-64 VM, Debian 13, GCC 14.2.0, Release relinker-only build, CTest Python 3.11.15. No GPU or proprietary inputs.
086c0686c8adff3ee648fdbe34e0b0b647e1d511: full build succeeded; 678/680 CTests passed.masked_store_loweringandamd64_only_converterterminate with illegal instructions on this VM.linux_guest_named_importstest passes (focused run 0.26 s).1bf232a64bff04497e272abe2a6a4c90ad061a4c, immediately before the fix(relinker): bind SDK guest module imports on Linux #9261 merge. An independent synthetic runtime probe reproduces the wrong binding with the NID present and absent:LD_DEBUG=bindingsidentifies the module'sgetpidprovider as/lib/x86_64-linux-gnu/libc.so.6; the fixture's deliberate wrong-resultUD2guard fires in both cases..sprxsymlink to the exact same.prxprovider bypasses the old dependency-suffix failure, as described in fix(relinker): bind SDK guest module imports on Linux #9261, without changing symbol binding. The probe uses the same synthetic module call, providers and current host fixture across both relinkers.HoLVWNanBBctoavailable.prxand exits 42; without that NID it reportsundefined symbol: HoLVWNanBBcand exits 127, despite hostgetpidbeing available.linux_named_importsandlinux_guest_named_importsten times each with CTest--repeat until-fail:10: all 20 executions passed (about 4 s total).getpidresolution.python3 tools/check_conventions.py --base origin/main: passed.git diff --check: passed.python3 tools/pr_overlap.py --repo boykopovar/AnyPS5 --branch test/linux-guest-host-libc-collision --jobs 4: completed against 1,762 open PRs; no shared files/exports and no overlap found.Native Windows/macOS execution and full system-library builds were not performed; this test's runtime cases are gated to Linux x86-64. The full local suite is not claimed green.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)