Exports for PPSA01530, PPSA23827 and PPSA13356 imports #3177
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 xXPBSXx on 2026-10-11T00:14:28Z.
AI-assisted (Claude Code), reviewed by the contributor.
Three titles fail to load on Windows because of imports no library exports. Found with the relinker audit, fixed on one branch on current
main: https://github.com/xXPBSXx/AnyPS5/tree/fix/export-ppsa01530-ppsa23827-ppsa13356-imports (tools/check_conventions.pypasses; new testsguest_ppsa01530_exportsandguest_ult_thread_underscoredcreatepass)._sceUltWaitingQueueResourcePoolCreateand_sceUltSemaphoreCreateare forwarded to the existing calls, the same way_sceUltUlthreadRuntimeCreateand its siblings already are (that the argument lists match is inferred from those siblings, not measured).sceNetShowIfconfig,sceNpWebApi2GetMemoryPoolStatsandsce::Json::Value::setNullAccessCallBackare declared and throw "not implemented".kqueueandkeventare declared and throw. They are BSD calls, not thesceKernel*Equeuefamily, so I did not forward them. I did not get this title to run past the audit (no.esbakELF copy in my dump).n3kSX62fgNo) is declared under that NID and throws.After the change the audit of PPSA01530 and PPSA13356 reports no absent imports. Signatures are unknown for all declared-only calls; they are listed in
docs/dev/TechnicalDebt.md. Not opened as a PR because intake is paused for new contributors.Next stop for Puyo Puyo Tetris 2 with these exports:
compute shader 0x200169d00: AGC graphics: storage image access to depth/stencil surface ... is not implemented, the same error as in #1409 (I will add the detail there).Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T00:26:16Z.
Update on PPSA23827 (Cloudberry Kingdom): the declared-only
kqueuewas not enough, the title calls it right after start-up. I captured the firstkeventcall with gdb: one change,ident3 (a file descriptor),filter-4 (EVFILT_VNODE),flags0x25 (EV_ADD|EV_ENABLE|EV_CLEAR),fflags0x37 (NOTE_DELETE|NOTE_WRITE|NOTE_EXTEND|NOTE_LINK|NOTE_RENAME); the constants are from FreeBSD 11'ssys/event.h. So it is a file watch.I added one more commit to the branch (
b4581629) that implements exactly that and nothing more:kqueuereturns a placeholder descriptor,keventaccepts vnode registrations (they never fire), waits for the given timeout (or forever without one), and throws on any other filter. New testguest_kqueue; listed indocs/dev/TechnicalDebt.mdwith its limits.With it the title ran 100 s without an error on Windows and was compiling shaders and creating textures when I stopped it. I did not look at the window, so I can not say what it shows.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by danzaio on 2026-10-11T01:42:40Z.
Windows validation for this branch.
Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), Ninja, Release, BUILD_TESTING=ON, branch b4581629a: guest_ppsa01530_exports and the guest_ult_thread set pass 6/6.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by orishamir on 2026-10-11T08:01:29Z.
Linux replica of
fix/export-ppsa01530-ppsa23827-ppsa13356-imports(b4581629), since the runs above are Windows. Branch merged ontomain2bb78d2c(clean; the diff stays the branch's 13 files, +305/-1), CI'slinuxjob replicated: ubuntu 24.04, GCC 13.3, Mesa 25.2.8 llvmpipe,ctest --parallel 4 --timeout 120.guest_ppsa01530_exports,guest_kqueueand the fiveguest_ult_thread_*cases (underscoredcreateincluded) pass 3/3. Full suite 792/793; the one failure isagc_driver_image_plane_address_on_line_implicit_lod, which fails onmainthe same way (#3222).main'slibSceUlt/Export.cppwith the branch's tests fails to link (undefined reference to _sceUltWaitingQueueResourcePoolCreate); restored, the five cases pass again.AI-assisted: yes (Claude Code Fable 5.1 xhigh)
Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T08:06:18Z.
Carried your first two commits (
e5831c99,2eb35317) unchanged as #3337: the exports and the throwingkqueue/kevent. On Windows 11 / GCC 15.2,guest_ppsa01530_exports, theguest_ult_thread_*tests andguest_padpass 3/3.I left out
b4581629(theEVFILT_VNODEkqueue/kevent) for two reasons you may want to look at before it goes up on its own:queuesis keyed by the placeholder descriptor and is never cleared when the guest closes it. If that descriptor number is later reused for an ordinary file,keventon it finds the old entry,DescriptorIsOpen_nid_no_patchis true, and the file is treated as a kqueue instead of failing withEBADF. Forgetting the entry insceKernelClose(asForgetRandomDevice/ForgetDirectoryDescriptordo) would fix that.keventsleeps in one-hour steps forever, without a cancellation check. A watch that can never fire is the kind of "accept and do nothing" path the project usually asks to throw instead, unless a title is shown to need it. For Cloudberry Kingdom you found that the throwing version stops it right after start-up, so the log line for that stop would help justify the never-firing watch.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T14:08:09Z.
Thank you @AchrafReyani for carrying this (#3337, merged). One part is not on
main: the commitb4581629on the same branch implementskqueueandkeventfor the one use I measured (Cloudberry Kingdom registers a singleEVFILT_VNODEwatch and then runs on), whilemainstill has the two as throwing stubs, so Cloudberry (PPSA23827) still stops atkqueue_nid_postfix not implemented. I'm rebasing that commit onto currentmainas its own branch (it also has to drop the stubs and the two names fromGuestPPSA01530Exports) and will link it here.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T14:14:21Z.
The
kqueue/keventimplementation is rebased onto currentmain(a11c8f7f7) as its own branch: https://github.com/xXPBSXx/AnyPS5/tree/feat/libkernel-kqueue-vnode-v2 (one commit:Equeue/src/Kqueue.cpp, the two stubs and their entries inGuestPPSA01530Exportsremoved, new testguest_kqueue, TechnicalDebt entry with its limits).guest_kqueueandguest_ppsa01530_exportsand the conventions check pass. With it Cloudberry Kingdom (PPSA23827) gets pastkqueue; as measured earlier, its oneEVFILT_VNODEwatch (fd 3,EV_ADD|EV_ENABLE|EV_CLEAR,NOTE_DELETE|WRITE|EXTEND|LINK|RENAME) is what it registers.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T18:29:35Z.
Raiden III x MIKADO MANIAX (PPSA13356) on current
maina11c8f7f7, Windows, relinked from the decrypted ELF (2 modules, 0 absent imports in the import audit): a 60 s run aborts at start-up onThis is the declared, parameterless stub (
libScePad/Export.cpp), so it is the one call from this issue's imports that this title still reaches. What a gdb breakpoint on it shows (60 s run under the game lock, one hit): the call iscall <thunk>withrdipointing to a small heap object that the title created just before (a 1-byte allocation constructed by its own code and kept in a global);rsi,rdx,rcx,r8,r9hold values left over from earlier code, so there is no evidence of a second argument. In the 10 instructions after the call the return value inraxis not read: the next instruction loads another global intorbx, and the code goes on constructing the next singletons. I did not follow what the callee would do with the object, so this does not give a signature, and I am not proposing an implementation: whether returning 0 without touching the object is correct is unknown.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T20:59:06Z.
Raiden III x MIKADO MANIAX (PPSA13356) on
main(0a8b1d32b, plain main, after #3337 merged), 120 s run: it now stops atscePadUnknown_n3kSX62fgNo not implemented(std::runtime_error, abort). The export exists as a throwing stub with no known name or signature, so the title cannot go on until someone with a source for that call decides what it returns. Not checked: what the title does with the result.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T21:26:29Z.
Sources for
scePadUnknown_n3kSX62fgNo(NIDn3kSX62fgNo), searched on GitHub code search; none gives a name or a signature:src/libs/libPad.cpp,PadUnknownN3kSX62fgNo): takes sixuint64_targuments, logs them as "argc-style args", zero-fillsarg3bytes atarg0whenarg0 >= 0x10000and0 < arg3 <= 0x1000, and returns 0. The six-argument form and the zero fill are a guess; nothing in it says what the call is.SharpEmu.Libs/Pad/PadExports.cs): same NID underscePadUnknownN3kSX62fgNo,libScePad, Gen5 only, and it just returns 0 without touching memory.So the two implementations disagree about whether the call writes to memory, and neither documents what it is. What I measured in Raiden III is in the comment above: one pointer argument (
rdi, a small object the title created) and the return value is not used in the next instructions. That fits both guesses and decides neither. What would settle it is a call on a console, for example with a buffer filled with a known pattern asrdiand the other registers varied, to see whether anything is written and what is returned; a console oracle capture like the ones prosper keeps for other libraries would do. Until then I would not implement it.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-12T07:33:53Z.
@hugodearaujo, would you have time to run a small probe on your PS5 for this one? Your console measurements for
libSceRudp(#3073) and in #1397/#1407/#1496 are what this needs, and I copied your approach directly. It uses ps5-payload-sdk v0.43,prospero-clang -O1 -rdynamic,dlopen("libScePad.sprx"), and the sameprobe.hon TCP 9301.The probe is at https://gist.github.com/overlordxrz-source/45b691cae9351253ef627110d758e618 (
pad_n3kSX62fgNo/). It looks upn3kSX62fgNoboth by raw NID throughdlsymand throughkernel_dynlib_resolve. Then it calls the function withrdipointing into a canary-filled buffer that hasPROT_NONEguard pages on each side. That covers the title's case (a single pointer to a small object; see xXPBSXx's trace above), including a 1-byte object, and runs before and afterscePadInit, with and without ascePadOpenhandle. A few extra variants test KytyPS5's "arg3 bytes zero-filled at arg0" guess. Each case prints the return value and exactly which bytes changed. NULL and a guard-page pointer run last, under a SIGSEGV catcher. The probe does not unload or terminate anything except the pad handle it opens itself.It compiles against the SDK, but I have not run it on a console. Pasting
pad_probe.txtfromPROBE|toPROBE DONEwould show whether SharpEmu's "return 0, touch nothing" or KytyPS5's zero-fill is right.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-13T14:55:32Z.
Ran
pad_n3kSX62fgNoon my PS5 (firmware 13.60), unchanged from the gist, code dump left off.scePadInit: returns0x80920005.scePadInit(rc 0): returns0x809200FFin all 12 cases (pointer with zeros, KytyPS5's length variants 0x10–0x1000, a1..a5=1, a second pointer, repeat, the 1-byte object, NULL and the guard-page pointer).rdiat all here.So neither guess matches: it does not zero-fill (KytyPS5) and does not return 0 (SharpEmu). One limit:
scePadOpenfailed in the payload (0x809b0081;sceUserServiceInitializegave0x80960005, the payload is not a game process), so the "open handle" cases did not run, and the answer could differ in a title with an open pad.pad_probe.txt
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T06:01:05Z.
Opened #5676 with the status-only behavior measured in the firmware 13.60 probe:
0x80920005beforescePadInitand0x809200ffafterward. It does not infer the NID name/signature or controller-open behavior; I have not verified whether this lets PPSA13356 proceed further.Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-14T19:34:46Z.
@hugodearaujo thank you, this is exactly the data we were missing.
So on 13.60,
n3kSX62fgNoreturns0x80920005beforescePadInitand0x809200FFafter it, and it never touchesrdi(NULL and the guard page don't fault). Neither emulator's guess holds: KytyPS5 zero-fills a buffer the console never writes, and SharpEmu returns 0 where the console returns an error.The open question is the one you flagged: whether
0x809200FFis just what a non-game process gets. Since the console never writes throughrdiin any case, the part I'd take into an implementation now is "no memory writes,0x80920005before init". I won't open a PR for the post-init return value until a game process confirms it. If you ever run it from a homebrew app that has a pad open, that one line would settle it.AI-assisted: yes