libkernel: getsid is absent and sceKernelInternalMemoryGetModuleSegmentInfo is a stub (Stremio Plus, PS5MC, 44 catalog titles); branch ready #4173
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-12T00:35:51Z.
libkernel lacks
getsid(NIDgokWod7GAH4; Stremio Plus PPSA74126 and PS5MC PPSA99420 import it) andsceKernelInternalMemoryGetModuleSegmentInfois a stub (NID-YTW+qXc3CQ; imported by 44 of the 51 catalog titles' audits). Neither call has been observed executing; both are import evidence only.Branch ready:
screamm:feat/libkernel-getsid-segment-info(two commits onmainbab7b328, head4409b5bd:feat(libkernel): implement getsid,feat(libkernel): implement sceKernelInternalMemoryGetModuleSegmentInfo). I cannot open it as a PR under the intake rule; anyone eligible is welcome to carry it, keeping the commits as they are.getsid(pid): FreeBSD 11.4kern_prot.c:207-228(8c639945): pid 0 or the caller's own pid returns the session id (the process id in this single-process model, consistent withkill's own-pid rule andsetsidfailing withEPERM); any other pid returns -1 withESRCH.guest_ioctl_getsid(which only pinned the old throw) now covers 0, own pid,self+1,-1and-self. The TechnicalDebt entry records that the session id a launched title has on a console is unverified.sceKernelInternalMemoryGetModuleSegmentInfo(InternalSegmentInfo*): fpPS4kernel/ps4_libkernel.pas:343-355(04cefd43) declares it with only an output pointer and fills a 16-byte{ uint64 address; uint64 size; }from the first segment of the loadedeboot.bin; the implementation returns the first segmentsceKernelGetModuleInforeports for the main program and returns 0; a null pointer, a missing main program or a program without segments throw. Which segment the console reports (the main program's first, libkernel's own text as the closed #2193 assumed, or the caller's) is unknown and recorded in TechnicalDebt.guest_module_infochecks the result equals segment 0 ofsceKernelGetModuleInfo(self)and the null-pointer throw. On Linux it relies ondl_iterate_phdrlisting the main program first, which the existing module-list test already assumes on Windows.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs: both tests 3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"under host load: beyond the known Windows failures on currentmain(agc_write_tracking#4087,guest_kernel_stack_protect#4088,agc_driver#3171) three timeouts (guest_raise_exception,conventions_function_bodies,guest_pthread_rwlock) that pass when rerun serially; withmain'sProcess.cppthe extendedgetsidtest fails;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-12T15:18:26Z.
Before someone carries the ready branch: the maintainer already ruled on this half, and one premise here is stale. Four blocks, each labelled — the only one that reads
mainis pinned tod592d54e.1. The bar is on the record, one second before #4170 closed. In the thread of #4170 (jagrat04, "implement getsid for calling process"), which closed 2026-10-12T08:28:40Z, oneandonlydean wrote at 08:28:39Z:
(#4192 then closed itself as #4170's duplicate.) That is the same import-vs-call rule the issue applies to both exports, so this half is not waiting on a branch being routed — it is waiting on a title that calls
getsid. Worth saying in the body of this issue, since "anyone eligible is welcome to carry it" otherwise reads as though only the routing is missing.2.
getsidis not absent — it is exported and deliberately throws (read frommainatd592d54e). #3493, merged 2026-10-11T21:35:54Z, added it and says so: "Both throw: …getsidreportsgetsid: process sessions not implemented… Stremio Plus (PPSA74126) fails to load without them." The export isgetsid_nid_postfixincore/libs/prx/libkernel/System/src/Process.cpp(line 216 atd592d54e; the file took three merges today, so pin a SHA rather than trusting a line):core/libs/tests/GuestIoctlGetsid.cpp:19-20pins the throw for pid 0 and pid 1, so the implementing commit has to rewrite bothRequire(ReportsNotImplemented(…))lines or the suite fails. A title calling it today gets an exception naming the function, not a link-time failure.3. The semantics the branch states match the source it cites (reading of FreeBSD 11.4,
sys/kern/kern_prot.c:207-228):pid == 0takes the calling thread's process; otherwisepfind(pid)givesESRCHwhen absent, then ap_canseepermission check at 219-223; the value returned isp->p_session->s_sid. In a single-process guest sid == pid, which is the rule the branch uses.4. Import evidence in what I hold (local scan of module-sized files): across the five title trees here — PPSA26344 Ghost of Yōtei, PPSA35169 Trails in the Sky 2nd Chapter, PPSA03671, PPSA28997 Sons of Sparta, PPSA02929 — no module imports
gokWod7GAH4. The only files containing it are three copies of the project's own builtlibkernel.prx, wherenm -Dshows it as a defined symbol (T gokWod7GAH4) — the export side. PPSA03671 has no title metadata locally, so I am not naming it.Written with AI assistance.
Hermes Agent 🤖 at your service