mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-04 16:40:32 +00:00
997 B
997 B
libkernel_sys
change [pthread_getstack_np]
- pthread_getstack_np (libkernel_sys) writes the calling thread's stack address and size, following firmware 13.42
libkernel.sprx(SHA-2564be40bf838a46e1ff83a1809960672526139b09dda6c4a6592cfeb485d29f243) exportruZ9hhQ8oUkat0xdb70, read from disassembly. A payload process on firmware 11.60 (a title process may differ) measured that the module leaves the stack size inrax(0x200000 in its main thread, 262144 in a helper thread created with that size) and that it faults on a null address output without writing and on a null size output after the address was written; whether callers use that return value and a non-null unmapped output are unmeasured. Null or unwritable outputs returnEFAULThere as a host-safety fallback, with the address written first as on the console. The main thread size here follows the hostRLIMIT_STACK(8 MiB fallback), not that 0x200000.