fix(libSceSysmodule): return INVALID_VALUE for module id 0 #3538
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3538"
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 hugodearaujo on 2026-10-11T12:40:05Z.
What
After
sceHmd2Initializefails, Propagation: Paradise Hotel (PPSA15878) unloadsSCE_SYSMODULE_HMD2with id 0, andmainthrows:Measured on a PS5 (firmware 13.60) with a payload that calls the console's
libSceSysmodule:IsLoaded(0),LoadModule(0),UnloadModule(0)(twice)0x805A1000LoadModuleInternal,UnloadModuleInternalwith 0 or0x800000000x805A1000LoadModuleInternalWithArgwith 0 or0x800000000x805A1000,*retuntouchedUnloadModule/IsLoadedon known modules that are not loaded (271, 272, 298)0x805A1001, asmainalready returnsThese six functions now return
0x805A1000(SCE_SYSMODULE_ERROR_INVALID_VALUE) for id 0 instead of throwing.sceSysmoduleGetModuleHandleInternalwas not measured and still throws.The title expects this code. With this change its own log reads:
It then creates its Vulkan device, loads its shader library and stops later, in
Initializing Engine, which is a separate problem.Tested
guest_sysmodulenow checks every row of the table; it aborts onmainand passes with this change.guest_kernel_sys,windows_exceptionsandguest_filesystemexit with0xc0000409the same way on currentmainin this VM.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 MarcZX10 on 2026-10-11T12:50:22Z.
The current CI failures appear unrelated to this patch: the checks use base
1e8fff68c, where3rdparty/imguiis an orphan gitlink without a.gitmodulesURL.actions/checkoutfails during cleanup withfatal: No url found for submodule path ...before compilation or convention checking. The same failure reproduces on PR #3535 and was fixed on main in #3511; rebasing onto the fixed base and rerunning checks should distinguish this environmental failure from any patch issue.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T16:31:41Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/tests/GuestSysmodule.cppL40-42, L100core/libs/tests/GuestSysmodule.cppL40-41Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:32:21Z.
Checked the six id-0 paths against the table in the description,
guest_sysmoduleandguest_sysmodule_maps_scanpass, andguest_sysmodulefails when theExport.cppchange is reverted. CI on the current head is green; merging.