libkernel: __elf_phdr_match_addr reads ModuleInfoEx as dl_phdr_info and crashes LEGO Voyagers (PPSA23732) #8675
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from boykopovar/AnyPS5. Originally posted by Filip722 on 2026-10-20T20:45:49Z.
LEGO Voyagers (PPSA23732, 01.001.000) crashes on Linux in
__elf_phdr_match_addr(Fjc4-n1+y2g). Its bundled libc passes the 0x1A8-byte object returned bysceKernelGetModuleInfoFromAddr; AnyPS5 treats that object asdl_phdr_infoand reads module-name bytes as a program-header pointer. A standalone reproducer using only AnyPS5 and a tiny native fixture triggers the same SIGSEGV without any game files.Tested upstream revision:
a6a4101e190ec408c3ed471d20f06872cae1b4a3, full Release runtime, no other unmerged PRs applied. The title gets through Unity/Vulkan initialization, then crashes before reaching a menu. No fix or bypass was applied.Evidence
sceKernelGetModuleInfoFromAddr(f7KBOafysXo) with flags 2 and a stack buffer, then passes the same buffer to__elf_phdr_match_addr. The two imports were verified against the relinker's generated registry.__elf_phdr_match_addr_nid_postfix+48, oncmpl $0x1,(%rax).0x1A8, a name at offset0x08, segment records at0x160, and segment count at0x1A0, matchingModuleInfoEx.dlpi_phdrfrom offset0x10anddlpi_phnumfrom0x18. Those offsets lie inside the supplied object's name. Short names can mask the mismatch by producing a zero header count.Public source at the tested revision:
Standalone reproduction
Save
anyps5-module-information-fixture.cppin the repository root:Save
module-match-repro.cppalongside it. The declaration deliberately uses the argument layout observed in the title's caller; both functions link to real AnyPS5 implementations.From the repository root, after configuring a full Release build in
build/:Observed, with machine addresses and paths omitted:
Expected: the helper accepts the module-info object passed by this observed caller without treating its name as a header pointer. Exact segment-matching boundaries still require ABI/behavior evidence before implementing a general correction.
Coverage gap
The existing
GuestElfPhdrMatch.cpptest passes against the same libraries: it constructs a FreeBSD-styledl_phdr_info, so it does not exercise this caller's query-to-match sequence. The original implementation in #337 explicitly inferred that signature from FreeBSD without a title run.This report establishes the caller/layout mismatch and Linux crash, not the complete console contract. No independent console-hardware verification, Windows/macOS run, full-suite run, or progress beyond this first title crash is claimed.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T20:49:58Z.
I checked the reported layouts against
ModuleInfoExand the implementation ofsceKernelGetModuleInfoFromAddr: the segment addresses are already relocated,sizeis thePT_LOADmemory span, andprotuses read=1/write=2/execute=4. I am preparing a narrowly scoped compatibility fix that accepts this exact sizedModuleInfoExform while retaining the existingdl_phdr_infopath and tests. This addresses the demonstrated crash without claiming broader console ABI confirmation. The focused regression builds, but this host cannot execute it because its CPU lacks AVX2/BMI2 and other required guest instruction support.