fix(libkernel): ignore the input st_size of sceKernelGetModuleInfoFromAddr #3297
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3297"
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 SynnZer0 on 2026-10-11T06:04:06Z.
What
sceKernelGetModuleInfoFromAddrno longer throws when the caller'sst_sizeis notsizeof(ModuleInfoEx). It ignores the input value and, as before, writes the full size into the result. Theflags != 2check is unchanged.PPSA21703 (Vampire Survivors, Unity) aborted with
sceKernelGetModuleInfoFromAddr: unsupported st_size 983040after its title screen. The only caller is the title's bundledlibc.prx(importf7KBOafysXo, call at.textoffset0x3a869). It passes a 0x1A8-byte stack buffer (-0x1d8(%rbp)up to the stack guard at-0x30) and never stores tost_sizebefore the call:So the field holds whatever was on the stack, and the console cannot be requiring it on input. The previous check matched PPSA14632 only because its leftover stack value happened to be right.
Module/src/ModuleInfo.cpp: thest_sizecheck is removed.tests/GuestModuleInfo.cpp: the case that expected a throw forsizeof(ModuleInfoEx) - 8now passes0xf0000and requires success withst_size == sizeof(ModuleInfoEx)written back.docs/dev/TechnicalDebt.md: the entry no longer says that only the fullst_sizeis accepted.Tested
Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs 15.2.0posix-14.0.0-ucrt-r7), full build with
BUILD_TESTING=ON:ctest: 768/768 passed, includingguest_module_info.python tools/check_conventions.py --base origin/main: passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T06:04:15Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:45:18Z.
Checked: the removed
st_sizecheck, the updated test (fails onmain, passes here), and the TechnicalDebt line.guest_module_infoand the libkernel/libs ctest scope pass locally (99/99). shadPS4 and KytyPS5 also ignore the inputst_size. Merging.