fix(libSceSystemService): declare the PsmKit local process exports #6939

Merged
milescoviello merged 1 commit from upstream-pr/6939 into main 2026-10-19 14:05:01 +00:00
milescoviello commented 2026-10-16 20:20:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T20:20:24Z.


What

Forever Launcher (PPSA99030, bizkut/ps5-forever, catalog 01.000.006) imports sceSystemServiceAddLocalProcessForPsmKit (cltshBrDLC0) and sceSystemServiceKillLocalProcessForPsmKit (7cTc7seJLfQ) from libSceSystemService. Neither is exported. On main with #6915 (physhm_open, physhm_unlink) and #6028 (sysarch) merged, the title still stops at load:

./app.elf: symbol lookup error: ./app.elf: undefined symbol: 7cTc7seJLfQ

On that stack, nm lists three imports that no library exports: these two and K1A7IJp5xYc (sceKeyboardSetProcessPrivilege), which #6787 adds.

The launcher uses these calls to start Wine as a local process and to stop it (ps5/probes/psmkit-wine/runtime-parent.c). AnyPS5 runs one process and starts no other, so both throw (NotImplemented_nid_no_patch) without reading their arguments, as sceSystemServiceLaunchApp does. The parameters follow the title's own firmware 5.50 probes. ps5/probes/localproc/psmkit-parent.c has a path, a null-terminated argv and a 0x90-byte parameter block, and the kill takes the int32_t handle the add returns (ps5/probes/psmkit-wine/runtime-parent.c). The console's results are unknown, and the entry under Unknown function info in docs/dev/debt/libSceSystemService.md says so.

Tested

Ubuntu 24.04, GCC 13.3, Release.

  • guest_system_service: both calls throw, including with null arguments, and the parameter block is left untouched. Passes 3 of 3. On main the test does not link, because both exports are missing. Both SystemService tests pass.
  • Forever Launcher (PPSA99030, 01.000.006), 60 s with pad input, on main 1b1f8483c with #6915, #6028, #6787 and this PR merged: in 2 of 2 runs the title loads and reaches its next stop, sysctl_nid_postfix: unsupported MIB 1.14.32.3 (kern.proc.vmmap), which this PR does not cover. With only #6915 and #6028 merged, it stops at load on 7cTc7seJLfQ (above).

Not checked: Windows, macOS.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (Forever Launcher reaches these imports only with #6915, #6028 and #6787)
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4893807798 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6939). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-16T20:20:24Z. --- ### What Forever Launcher (PPSA99030, [bizkut/ps5-forever](https://github.com/bizkut/ps5-forever), catalog 01.000.006) imports `sceSystemServiceAddLocalProcessForPsmKit` (`cltshBrDLC0`) and `sceSystemServiceKillLocalProcessForPsmKit` (`7cTc7seJLfQ`) from libSceSystemService. Neither is exported. On `main` with #6915 (`physhm_open`, `physhm_unlink`) and #6028 (`sysarch`) merged, the title still stops at load: ``` ./app.elf: symbol lookup error: ./app.elf: undefined symbol: 7cTc7seJLfQ ``` On that stack, `nm` lists three imports that no library exports: these two and `K1A7IJp5xYc` (`sceKeyboardSetProcessPrivilege`), which #6787 adds. The launcher uses these calls to start Wine as a local process and to stop it (`ps5/probes/psmkit-wine/runtime-parent.c`). AnyPS5 runs one process and starts no other, so both throw (`NotImplemented_nid_no_patch`) without reading their arguments, as `sceSystemServiceLaunchApp` does. The parameters follow the title's own firmware 5.50 probes. `ps5/probes/localproc/psmkit-parent.c` has a path, a null-terminated argv and a 0x90-byte parameter block, and the kill takes the `int32_t` handle the add returns (`ps5/probes/psmkit-wine/runtime-parent.c`). The console's results are unknown, and the entry under Unknown function info in `docs/dev/debt/libSceSystemService.md` says so. ### Tested Ubuntu 24.04, GCC 13.3, Release. - `guest_system_service`: both calls throw, including with null arguments, and the parameter block is left untouched. Passes 3 of 3. On `main` the test does not link, because both exports are missing. Both SystemService tests pass. - Forever Launcher (PPSA99030, 01.000.006), 60 s with pad input, on `main` 1b1f8483c with #6915, #6028, #6787 and this PR merged: in 2 of 2 runs the title loads and reaches its next stop, `sysctl_nid_postfix: unsupported MIB 1.14.32.3` (kern.proc.vmmap), which this PR does not cover. With only #6915 and #6028 merged, it stops at load on `7cTc7seJLfQ` (above). Not checked: Windows, macOS. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none (Forever Launcher reaches these imports only with #6915, #6028 and #6787) - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-16 20:21:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T20:21:06Z.


Progress report (3e83446 → f69e6c0)

📉 System libraries: 89.6% (-0.05%, +2 declared functions)

🆕 2 declared as stubs
Library Name
libSceSystemService sceSystemServiceAddLocalProcessForPsmKit
libSceSystemService sceSystemServiceKillLocalProcessForPsmKit
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6223969163 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6939#issuecomment-6223969163). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T20:21:06Z. --- <!-- progress-report --> ### Progress report (3e83446 → f69e6c0) 📉 **System libraries**: 89.6% (-0.05%, +2 declared functions) <details> <summary>🆕 2 declared as stubs</summary> | Library | Name | | - | - | | libSceSystemService | `sceSystemServiceAddLocalProcessForPsmKit` | | libSceSystemService | `sceSystemServiceKillLocalProcessForPsmKit` | </details>
github-actions[bot] commented 2026-10-16 20:29:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T20:29:38Z.


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.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestSystemService.cpp
PR 7201 core/libs/prx/libSceSystemService/Export.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6224111494 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6939#issuecomment-6224111494). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T20:29:38Z. --- <!-- pr-overlap --> 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. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestSystemService.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceSystemService/Export.cpp` |
adriadam10 commented 2026-10-19 14:05:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T14:05:57Z.


Checked: both exports throw NotImplemented_nid_no_patch without reading their arguments, like sceSystemServiceLaunchApp; the test pins the throw (normal and null args, parameter block untouched) and cannot link without the exports; the Unknown function info entry records the unverified signatures; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6269143017 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6939#issuecomment-6269143017). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T14:05:57Z. --- Checked: both exports throw `NotImplemented_nid_no_patch` without reading their arguments, like `sceSystemServiceLaunchApp`; the test pins the throw (normal and null args, parameter block untouched) and cannot link without the exports; the Unknown function info entry records the unverified signatures; merged.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!6939
No description provided.