fix(libSceAjm.native): refuse a nonzero reserved in sceAjmModuleRegister as firmware 13.42 does #15491
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15491"
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 BunnyFl on 2026-11-03T15:27:37Z.
What
sceAjmModuleRegisterreturned 0 whatever its third argument (reserved) held. Firmware 13.42 refuses a nonzero value with0x80930005(INVALID_PARAMETER) before it sends its driver request, and this change does the same. A zeroreservedstill returns 0 without recording the codec, as before; that silent stub stays in the debt file, which now names the one check.Firmware 13.42
system/common/lib/libSceAjm.native.sprx(sha2568eea270172e7ea177e69fa7865493b72131670f87afa91798d7d749ac183d5c0),sceAjmModuleRegister(Q3dyFuwGn64), read from disassembly, not measured on a console:The test at
0x56ereads all 64 bits ofrdx; the change compares theint64_tparameter whole as well.Tested
guest_ajmpasses (1 of 1). The new rows incore/libs/tests/GuestAjm.cppcheckreserved1 and -1 (refused), 0 (accepted), andsceAjmModuleUnregisterafter it.main'score/libs/prx/libSceAjm.native/src/Ajm.cppaborts (0xc0000409, 1 of 1 failed).tools/check_conventions.py --base upstream/main: all checks pass.tools/pr_overlap.py --branch: 7 PRs share files. Two couldn't be compared automatically (they conflict withmain), and I checked those by hand: #13486 (relinker) and #14212 (debt formatting) don't touchsceAjmModuleRegisteror the changed lines. #14212 reformats debt files; whichever lands second may need a trivial rebase of the debt line.sceAjmModuleRegister; I haven't checked what they pass asreserved.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)🤖 Generated with Claude Code