Repository navigation
fix(libkernel): resolve original .prx names to relinked .guest.prx in lstat - #5401
Closed
EagleBearerYS wants to merge 1 commit into
Closed
EagleBearerYS wants to merge 1 commit into
EagleBearerYS wants to merge 1 commit into
Conversation
… lstat boykopovar#4688 made stat, sceKernelStat, read-only open and sceKernelCheckReachability find X.guest.prx when a title asks for X, the name the relinker replaced. lstat still answered ENOENT for the same path, so a title that stats a plugin with lstat saw it missing while stat and dlopen found it. lstat now resolves the name the same way; an existing X, including a dangling symlink, is still reported as is.
This was referenced Oct 13, 2026
Collaborator
|
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line. |
12 tasks done
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
#4688 made
stat,sceKernelStat, read-onlysceKernelOpenandsceKernelCheckReachabilityfindX.guest.prxwhen a title asks forX, the name the relinker replaced, and listedlstatas not covered.lstatstill answeredENOENTfor the same path, so code that checks for a plugin withlstatsaw it missing whilestatanddlopenfound it.lstatnow resolves the name throughFile::PathOrRelinkedModule, assceKernelCheckReachabilitydoes. An existingX, including a dangling symbolic link, is still reported as it is; only a missingXfalls back toX.guest.prx.#4938 and #4691 both rewrite
lstat_nid_postfix. Whichever of them lands after this carries the one line over.No title is claimed.
Related: #4225
Tested
On GitHub's runners from my fork, on
mainat 18c438b (run):-DANYPS5_ENABLE_SPIRV_TOOLS=ON.On both:
TestRelinkedModuleNamesinguest_filesystemgains twolstatchecks:ENOENTwhile neither name exists, and the relinked file's size onceX.guest.prxexists. Withmain'sStdio.cppthe test aborts at the second check, wherelstatstill reportsENOENT. With the change it passes 20 runs in a row.core/libs/prx/libcandcore/libs/prx/libkernelpasses: 69 and 124 on Linux, 90 and 127 on Windows.tools/check_conventions.py --base origin/mainpasses.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)