fix(libkernel): match module info segment records #8676
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8676"
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 MarcZX10 on 2026-10-20T20:50:23Z.
What
ModuleInfoExobject passed by guest libc to__elf_phdr_match_addr.dl_phdr_infopath.guest_elf_phdr_match_testswith executable, non-executable, and range-boundary cases for the module-info layout.Fixes #8675
Tested
git diff --checkandtools/check_conventions.py --base c6145997ef --head HEADpass.guest_elf_phdr_match_teststarget links using cached build prerequisites. Runtime execution aborts at the repository CPU guard because this host lacks AVX2, BMI2, and other required guest instruction support.Checklist
main; no other open PR implements the same function.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T21:03:12Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libkernel/Module/src/Module.cppcore/libs/prx/libkernel/Module/src/Module.cppcore/libs/tests/GuestElfPhdrMatch.cppcore/libs/prx/libkernel/Module/src/Module.cppcore/libs/prx/libkernel/Module/src/Module.cppcore/libs/prx/libkernel/Module/src/Module.cppcore/libs/prx/libkernel/Module/src/Module.cppcore/libs/prx/libkernel/Module/src/Module.cppImported from boykopovar/AnyPS5. Originally posted by Filip722 on 2026-10-20T21:10:53Z.
Independent Linux runtime testing of head
05cc68cd9540ee9f0294d72fbf7f537be0ab7443: this removes the startup crash reported in #8675, and LEGO Voyagers now reaches its title/menu screen.BUILD_TESTING=ON, bundled dependencies. Built the exact PR'slibkernel,guest_elf_phdr_match_tests, andguest_module_info_tests. The host CPU guard remained enabled and unmodified.a6a4101e190ec408c3ed471d20f06872cae1b4a3: the PR's expanded regression aborts against the old library and passes against this PR. The standalone reproducer from #8675 changes from SIGSEGV to normal exit withmatch=1after querying a real loaded fixture module. The underlying libc binary is identical between these two library sets.libkernel.prxwith the library built from this PR. Verified that all other runtime-library files were unchanged. The game passes the former helper crash, continues asset/audio-bank loading, and reaches a title/menu screen, confirmed by the local user watching the visible launch. It remained running until the deliberate 90-second observation limit (timeoutstatus 124); this was not a spontaneous crash or normal game exit.c6145997ef43e32b0c2119779fe2b5e863e751a6.This confirms the reported startup blocker is removed. Gameplay, full-suite execution, GPU validation-layer coverage, other host platforms and console ABI semantics were not tested.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T21:27:12Z.
Thanks for the exact-head Linux run and baseline-library control. The focused CTests and LEGO Voyagers launch result directly verify the reported helper crash is removed; the stated limits on gameplay and other platforms are clear.