relinker: God of War Ragnarök's bundled libc.prx has an inline _umtx_op wait (syscall 454) with a non-FreeBSD argument layout #12123
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 B-Howell on 2026-10-27T22:06:54Z.
What happens
God of War Ragnarök (PPSA08329, content version 06.006.000) doesn't convert. The relinker refuses the title's bundled
sce_module/libc.prx(SHA-256a485b34e…04e443) with exit code 2 and writes no output:On
mainf759e165d9(relinker-only Release build, Ubuntu 22.04 WSL, GCC 11.4), the refusal is the same with--windows --to-intel, with--trap-sdk-syscall-stubsadded, and for Linux output. This is the only rawsyscallin the library's executable segment.The refused code
The
syscallis inside a small leaf helper at0x116c50. Its only reference is a tail jump at0x116bb0. I read it statically and haven't run it:rdxis an optional pointer to a 32-bit timeout in microseconds. If it isn't null, the helper pushes atimespec(sec = t / 1000000,nsec = (t % 1000000) * 1000) and keeps its address inrcx. Otherwisercxis 0.rax = 0x1c6(454, FreeBSD_umtx_op).rdigets bit 63 set (bts rdi, 63),rsi = 2(UMTX_OP_WAIT),rdx = 0, andr10 = rcx(the timespec, or null).r8isn't set.syscallit pops the timespec if one was pushed and returns the rawrax. It doesn't check the carry flag.Why this needs console data, not a route to
_umtx_opTwo arguments don't follow the FreeBSD 11
UMTX_OP_WAITthatlibkernel's_umtx_opimplements:uaddr2(r8), with its size inuaddr1(r10). This helper passes thetimespecpointer inuaddr1and leavesuaddr2unset.So the PS5 kernel's ABI for this call is unknown. Neither of the existing paths would work:
--trap-sdk-syscall-stubswould turn the helper into aUD2that the title probably reaches, since it's a wait primitive._umtx_opwould read the wrong timeout and fault on the address.What would settle it is a console measurement of syscall 454 with op 2: an address with bit 63 set, a
timespecinuaddr1anduaddr2null, covering the return value, the carry flag and the wait/timeout behaviour. Then the relinker could match this exact helper and call a host function with that behaviour. @rooklz, your #10789 measurements came from a payload on firmware 13.40; is this something you could check?Related: #10219 covers homebrew SDK stubs whose ABI matches FreeBSD, and #11137 traps the
mountfamily. Neither covers this shape.AI-assisted (Claude Code). Static reading and conversion runs only; nothing was launched.