Repository navigation
fix(libSceSystemService): safely probe the path of the LoadExec calls - #20638
Merged
oneandonlydean merged 1 commit intoNov 15, 2026
Merged
oneandonlydean merged 1 commit into
oneandonlydean merged 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sceSystemServiceLoadExecchecked*path, compared it with"exit"and handed it toPrepareLaunch, all straight through the guest pointer.sceLncUtilLoadExecreadpath[0]the same way before forwarding. A non-null path pointing at unmapped memory faulted the host.Both now copy the path into a host string with
CopyGuestPath_nid_no_patch(1024 bytes, the limit the other path calls use) before looking at it.sceLncUtilLoadExecforwards the copy. An unreadable path, or one without a terminator in 1024 bytes, returns the error each function gives a null path:SCE_SYSTEM_SERVICE_ERROR_PARAMETERandSCE_LNC_UTIL_ERROR_INVALID_ARGUMENT. The empty-path results (PARAMETER, and the throw insceLncUtilLoadExec), the"exit"path, the launch checks and their messages are unchanged. The argument vector is still read in place.The debt entry goes in a fragment under
docs/dev/debt/changes/and records this as unmeasured.Tested
Linux (Ubuntu 26.04.1), GCC 15.2, Release.
guest_system_exit_parameters: an unmapped path (0x10) returnsSCE_SYSTEM_SERVICE_ERROR_PARAMETERfromsceSystemServiceLoadExecandSCE_LNC_UTIL_ERROR_INVALID_ARGUMENTfromsceLncUtilLoadExec. The existing null, empty and rejected-path cases still pass.guest_system_exitandguest_lnc_util_load_exec_exit(the"exit"path through each call) still pass.Export.cppfrommainand these tests,guest_system_exit_parameterssegfaults.git merge-treeagainst the open PRs that touchlibSceSystemService/Export.cpporGuestSystemExit.cpp(feat(libSceSystemService): store the GNM profiler flag #20511, feat(libSceSystemService): track the accessibility zoom lock #20510, feat(libSceSystemService): store the notice screen skip flag #20509, feat(libSceSystemService): answer the app category type #20508, feat(libSceSystemService): answer the main app title ID #20507, fix(libSceSystemService): safely copy out launched flag in sceLncUtilIsAppLaunched #19729, fix(libSceSystemService): find a converted executable by the main executable's extension #18857, feat(run-report): recover the report of a run that ended without writing one #15973, fix(libSceSystemService): return PARAMETER from sceSystemServiceParamGetString for an unwritable buffer #14877, refactor(libSceSystemService): throw the documented unknown-title rejection #14202, feat(libSceSystemService): answer app lookups for titles and app IDs that are not running #13327, feat(libSceSystemService): initialize the launcher utility and answer the app-message query #8651): no new conflicts (feat(libSceSystemService): store the GNM profiler flag #20511, feat(run-report): recover the report of a run that ended without writing one #15973 and feat(libSceSystemService): initialize the launcher utility and answer the app-message query #8651 already conflict withmain).tools/check_conventions.pypasses on the branch and this body;tools/debt_fold.py --checkpasses with the fragment applied tomain.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)