80 KiB
libkernel_sys technical debt
Functional
- 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 and not measured on a console. The module leaves the stack size inrax; whether callers use that unspecified return value is unmeasured. Null or unwritable outputs returnEFAULThere as a host-safety fallback, where the module faults, and the first output remains written when the second faults.
Silent stubs
- sceKernelCallIndirectBuffer2 (libkernel_sys) - always writes a zero result, as
sceAmprAmmSubmitCommandBuffer2does here; in firmware 13.42 the library passes the result pointer to a kernel ioctl, and what the kernel writes there is not known
Unknown function info
-
sceKernelGetCpuUsage and sceKernelSetFsstParam (libkernel_sys) - throw through
NotImplemented_nid_no_patch; behaviour and the PS5 prototypes are unmeasured. The parameter lists come from a single source, the PS4 OpenOrbislibkernel.h, with no second reference:off_tandssize_tare taken as 64-bit, theSet*parameters are unnamed there (the names here are guesses), and theProc_StatsofsceKernelGetCpuUsageis declared asvoid*because its layout is unknown. -
sceKernelLwfsAllocateBlock, sceKernelLwfsLseek, sceKernelLwfsSetAttribute, sceKernelLwfsWrite and sceKernelSetCompressionAttribute (libkernel_sys) - success on an LWFS descriptor is unmeasured and unimplemented; no LWFS mount exists here. Measured on PS5 firmware 13.590.001: closed descriptors return EBADF, regular files, directories,
/dev/null, pipes and kqueues ENOTTY, and TCP sockets errno 49; all set errno.sceKernelSetCompressionAttributerejects attributes other than 0 or 1 with EINVAL before the descriptor check and leaves errno alone. Errno 49 on non-TCP sockets is extrapolated and unmeasured. A bad nonempty write buffer returns EFAULT before descriptor validation as a host-safety fallback; pointer errors and their precedence are unmeasured.sceKernelLwfsTrimBlockwas not measured and still throws. Parameter lists come from OpenOrbis only. -
Nine unnamed additional exports (libkernel_sys, NIDs
pCbBddNl66Y,zAloppPJxy0,vq2+HyP5U5I,z+e0vV-tnH4,gJ5gpW45mU0,N94a0T4F4+U,C49jelxiaVE,1WXQlxMpnNA,FR0odl35yQY) - return what firmware 13.42'ssystem/common/lib/libkernel_sys.sprxreturns, read from disassembly to the return and confirmed in a payload process on a PS5 Pro (firmware 13.60; a title process may differ), which returned exactly these values. The first five arexor %eax,%eax; ret,N94a0T4F4+Uismov $0x8002004e,%eax; retandC49jelxiaVEismov $0x20018,%eax; ret.1WXQlxMpnNAstores 1 to a zero-initialised module byte and returns 0, andFR0odl35yQYreturns that byte zero-extended; no other code in the module touches the byte. None reads an argument, so the declarations are parameterless; the 32-bit loads clear the upper half ofrax, so they returnstd::uint64_t. Names, intended parameters and callers are unknown. -
libkernel_sys additional exports - 299 callable exports have import-resolution declarations only. Parameter lists, return types and behavior remain unverified. Parameterless
intdeclarations are placeholders, not verified ABI prototypes; every entry throws throughNotImplemented_nid_no_patch. Unresolved names use literal NID aliases; no runtime functionality or data objects are fabricated. Existing providers and exports supplied by open pull requests are excluded. Kernel variant imports already resolve throughlibkernel, thenlibc; existing providers remain unchanged. Six native data exports (errno,__stack_chk_guard,_sigintr,__progname,environ, and NIDAxgW94umKqU) require separate storage, layout, TLS and ownership validation and are not added as callable aliases or fabricated globals.
| Name | NID |
|---|---|
__cfi_slowpath |
Bq2a8HmmUoY |
__cfi_slowpath_diag |
-cbfK7bCKQU |
__freeze |
nSSPVGJLMjE |
__sceKernelGetGPI |
3JYhkiIHkJc |
__sys_debug_init |
zdaF5N-Xe2M |
__sys_dl_get_info |
YbAunrti+54 |
__sys_dl_get_info_2 |
lCp17SqY3Nc |
__sys_dl_get_list |
XujojypwYYc |
__sys_dl_get_metadata |
7OpNDDNMJyo |
__sys_dynlib_get_info2 |
nTc+tFajGqQ |
__sys_dynlib_get_info_for_libdbg |
K7xiuldOPKw |
__sys_dynlib_get_list2 |
P0jjY6bxakI |
__sys_dynlib_get_list_for_libdbg |
vpo3SbGFuEk |
__sys_dynlib_load_prx |
nZHk+lpqwVQ |
__sys_dynlib_unload_prx |
GQli4UAXTfQ |
__sys_get_proc_type_info |
nG-FYqFutUo |
__sys_kqueueex |
2M+dFM8Wmq4 |
__sys_netabort |
UTR6wAkajxk |
__sys_netcontrol |
zsTvhCDrOjQ |
__sys_netgetiflist |
X86Q0qQJ1m0 |
__sys_netgetsockinfo |
Wx2+2t1mX1E |
__sys_opmc_disable |
iZFJYJJoZS8 |
__sys_opmc_enable |
MGrj20+EK+U |
__sys_opmc_get_ctr |
h+4DJpAXs4I |
__sys_opmc_get_hw |
IglowNcOePQ |
__sys_opmc_set_ctl |
vS-RnoD1BSY |
__sys_opmc_set_ctr |
ztNqqNCl1Tw |
__sys_opmc_set_hw |
PIt9WYaoBqU |
__sys_osem_close |
raO+bB7q2cY |
__sys_osem_open |
kPGXeSQeoWc |
__sys_randomized_path |
n0ErFZ2hmKs |
__sys_rdup |
9Iem9Wk07xU |
__sys_regmgr_call |
7NwggrWJ5cA |
__sys_resume_internal_hdd |
NTNdYQluihk |
__sys_resume_process |
6wXisPohifE |
__sys_set_uevt |
ByogDrS-Xw8 |
__sys_socketclose |
t+rTx5NW+qU |
__sys_suspend_process |
-rXkJO1hOk0 |
__sys_test_debug_rwmem |
EeVthQocE3Y |
__sys_workaround8849 |
jTPE1AS7uak |
mmap2 |
tGtH2GTWbyE |
pthread_setschedother_np |
ymCrwbFD4fk |
sceKernelAddDynlibEvent |
dGFwUPT+BK8 |
sceKernelAddFGCInfo |
M+vuTJQ3F8Y |
sceKernelDeleteDynlibEvent |
0GquoxOD3Aw |
sceKernelDeleteFGCInfo |
ZGfk6FwQozw |
sceKernelEnableDmemAliasing3 |
RbhD-epf6c0 |
sceKernelExtendMaximumModuleNumber |
ClMdHuu+R1A |
sceKernelGetAioDebugRequestInfo |
iWe19fLnD0Y |
sceKernelGetAioDebugSubmitInfo |
uepHNAxXJ6s |
sceKernelGetAmprCounter |
6bX1434czj4 |
sceKernelGetAppCategoryTypeByAppId |
fh-Bb3wl0Vs |
sceKernelGetAppInfo2 |
d7xu4QDJw8Q |
sceKernelGetAppInfoListForMinisyscore |
OeLAM9FL10U |
sceKernelGetCpuCoreClock |
8Ejov5Yq8ck |
sceKernelGetNandInfo |
W+BEVqLrDXo |
sceKernelGetPackageInfo |
4kJiTvD4tsA |
sceKernelGetResidentFmemCount2 |
zx9n-9bt7IA |
sceKernelGetToolMemoryRange |
dkBx0YqFQ+Y |
sceKernelGetUpdatemode |
NMf5gHfsrYs |
sceKernelIccClearEmcCrashReport |
qq-gRlUwTPk |
sceKernelIccDisableExtBDDriveOperation |
pv+JNjlZJgI |
sceKernelIccGetBDDriveChuckingState |
-uPq82VbRMI |
sceKernelIccGetBuzzerDimSetting |
8uGeBlkKoDE |
sceKernelIccGetBuzzerOffSetting |
qbx9P0mc2Bk |
sceKernelIccGetDynamicLedDimSetting |
LdcAla8x5QI |
sceKernelIccGetEmcBtDownload |
hhzesncETPw |
sceKernelIccGetEmcCrashNumOfBlocks |
G0KaQ+fpNWY |
sceKernelIccGetEmcCrashReport |
4NEVlgkAjNk |
sceKernelIccGetFloydVersion |
N8YJA7a+T2U |
sceKernelIccGetWlanBtGpio |
Ck1ezcV7c-Y |
sceKernelIccIsExtBDDriveAttached |
1ns3nDImmno |
sceKernelIccIsThermalAlert |
Mrc6Jc4kC1A |
sceKernelIccSetBootTimestamp |
Ht23vmmuP0Q |
sceKernelIccSetBuzzerDimSetting |
UhDIvuRtbHc |
sceKernelIccSetBuzzerOffSetting |
3Fj1v0puUz4 |
sceKernelIccSetDynamicLedDimSetting |
SOWF3EWyJlo |
sceKernelIccSetEmcBtDownload |
AJjZOx0GwYU |
sceKernelIccSetPriorityBuzzerEx |
PGdGn+-opZg |
sceKernelIccSetPriorityBuzzer |
eV6oaavMeI0 |
sceKernelIccSetWlanBtGpio |
9D07JRs47Fg |
sceKernelIccSetWlanBtManuTestMode |
7Ud-rED9ooU |
sceKernelIsAuthenticTrinity |
X0HkB92+NRE |
sceKernelIsCloudDevkit |
XyW5rUlKP1w |
sceKernelIsCloudkit |
rm1EC-NwS6A |
sceKernelIsCronos |
nQ5AHlyJghQ |
sceKernelIsEcoChargeAvailable |
a9683+DNj84 |
sceKernelIsSpmemAvailable |
QEvYMQNJGMU |
sceKernelKernelHeapGetCount |
rd23OgUSfZQ |
sceKernelKernelHeapUsage2 |
pQiLz-exzR4 |
sceKernelMapFlexibleMemoryInternal2 |
dYK287SsmDs |
sceKernelMapFlexibleMemoryInternal |
z68xkNPqNRk |
sceKernelMapNamedFlexibleMemoryInternal2 |
n7I71nQgO3M |
sceKernelMapNamedSystemFlexibleMemory2 |
QS0AbROQuJM |
sceKernelMapperGetIndirectBufferInfo |
kz6S+-e2e74 |
sceKernelMapperGetUsageStatsData |
CEbYeyYuiPQ |
sceKernelMapperSetPageTablePoolOccupancyNotificationThreshold |
V-DUYmkNleQ |
sceKernelPltTrap |
cMs2CQrqAN0 |
sceKernelSetAcKeyRegResult |
mpTUqam2SgY |
sceKernelSetAppInfoByAppId |
fIyST5BItRg |
sceKernelSetUpdatemodeDirect |
MsmPuiJdZ1Q |
sceKernelTraceAutoCaptureCreate |
A3MDcIJe1tg |
sceKernelTraceAutoCaptureDelete |
4uDeONzVc04 |
sceKernelTraceAutoCaptureMap |
0t79VtA5FwY |
sceKernelTraceAutoCaptureStart |
SoN+jQ6T788 |
sceKernelTraceAutoCaptureStop |
TqLPe9eIbng |
sceKernelTraceAutoCaptureStore |
51iRQnpGof0 |
sceKernelTraceAutoCaptureUnmap |
stvymc0mgcY |
sceKernelUseCronosKura |
7lZJYy0+evk |
sceKernelUseCronosStreaming |
ind6aqzel+Y |
scePthreadRegisterThreadDeathHook |
DlCg0QhcgYQ |
Unknown |
+1mj9RYU1rs |
Unknown |
+MZfwzH65JQ |
sceKernelGetAmprSysInfo |
+ooJjRJ+xR4 |
Unknown |
-PNB3tfnD8c |
sceKernelGetAppLibcData |
-QipytgE4x0 |
Unknown |
-sYN8ucoAWw |
Unknown |
0CV40L3tznI |
Unknown |
1v23w7Rnkic |
Unknown |
1v6DjTPunjs |
Unknown |
2+KZ4mZKp6E |
sceKernelInternalCreateMapperSharedMemory |
2ICp74QsULo |
Unknown |
2XwZJG3Dkss |
Unknown |
2YWCKF9-3gM |
Unknown |
2fPLezHAV2E |
Unknown |
2wKjID0iGVM |
Unknown |
2xg4JXvaJ6k |
Unknown |
3BwLcdWeZLs |
Unknown |
3YkQPLocySc |
Unknown |
3jw-vq4gYLs |
Unknown |
4AMTAyz32fk |
sceKernelIsCloudkitForDecid |
5EThc7n+PpM |
Unknown |
5KHFhRhBR78 |
sceKernelIccGetButtonStatus |
5uP89EdDbB0 |
sceKernelAbortWithContext |
6nv1h9JH1Lk |
sceKernelGetCanvasHandleByPid |
6yzl0ibATw0 |
Unknown |
7BUHmsuhcq4 |
Unknown |
7FNl8FfSGNw |
Unknown |
7Sd1vnnqEqU |
sceKernelIccReadWlanArea |
8B-r5ubQLZs |
Unknown |
8U0nlN0TpDU |
Unknown |
8YkbXeSRxnM |
Unknown |
940JfV9yJto |
sceKernelGetAppMemoryInfo |
9KpeTiVh5Hk |
Unknown |
9ncS0kCRRSA |
Unknown |
A+S5E4RCh7Y |
Unknown |
AGHqSV1gdIY |
Unknown |
AhBZlHQYeA8 |
Unknown |
ApbTseKUKCI |
Unknown |
B70jHzr4Jj4 |
Unknown |
BJvWKKfmj4w |
Unknown |
BjmZn9pYSuk |
Unknown |
C3ToW2CA+hM |
Unknown |
C3xgqN95IoE |
sceKernelSwitchToTrinityMode |
Cz48pcLnLCY |
sceKernelIsGenuineCronosCex |
DB0muDALi4Y |
Unknown |
DWWduhQYA3I |
Unknown |
Dv8In6FvzuM |
Unknown |
E58GHGcQT7I |
Unknown |
EIz+fSlYCn8 |
sceKernelTraceMarkerBookmark |
EKMWpdzszVo |
Unknown |
EaepepH-LmI |
Unknown |
FIUPjhnoI+o |
sceKernelIccGetExtBDDriveStatus |
GADbvgNm4tY |
Unknown |
GTyjVeZcdRM |
Unknown |
Gtncco+mxio |
Unknown |
HRrfx1wytn0 |
Unknown |
HnWsxkpJya0 |
Unknown |
HruYl9uBnNo |
Unknown |
IJQeoUQ3pb4 |
sceKernelInternalUnlockMapperMemory |
IJnZ6pAGPcA |
Unknown |
Ipau2b5eaHM |
Unknown |
Ishr1Sdu024 |
sceKernelIdTableGetStats |
J2dqh+RUwEY |
Unknown |
JFpAREOJnag |
Unknown |
JN1D3WtbDPs |
sceKernelIccNotifyPowerState |
JcG0kUg4TrE |
Unknown |
KoDy4Jazz40 |
Unknown |
KoSCciXA1N0 |
Unknown |
L4GARHYRW0U |
Unknown |
LPXIR37gw3c |
Unknown |
LVRydXoXt7U |
Unknown |
LwGBaXgvFaY |
Unknown |
MJ-err8l-XY |
Unknown |
MKlp-bW1bz8 |
Unknown |
NhFlyw-77cY |
Unknown |
OZBJnWxt7d4 |
Unknown |
PBq-OUg5A5s |
Unknown |
PTDuAbCYfm0 |
Unknown |
QTGIeqEjeFc |
Unknown |
Qk38ESxhDEQ |
Unknown |
R3QLLyp9MEU |
Unknown |
RA5mXLPd5V4 |
Unknown |
RDjusrvQ-44 |
Unknown |
RfzgytiWey0 |
Unknown |
SEKlG1AMRGQ |
sceKernelGetContentVersion |
SP37+6t8PUw |
Unknown |
Sesgl6Zl8YI |
sceKernelTraceMarkerPop |
SgxG1rkVqu8 |
sceKernelInternalLockMapperMemory |
TC+IFjP+pJc |
Unknown |
TVB77yVa+RU |
Unknown |
Tca8tetUZCw |
sceKernelAddExternalTriggerEvent |
U-zqHonxxm4 |
Unknown |
U9B58Hc5C+8 |
Unknown |
V4f3CEBQyuM |
Unknown |
VU1YkdCmYto |
Unknown |
W1Cg5WPD4IQ |
Unknown |
W7Vpt62Xtf4 |
Unknown |
WLC94v0XY+0 |
Unknown |
WtA8Aq-0cyY |
Unknown |
WyZULCQhjdY |
Unknown |
X4R-jzzFYac |
Unknown |
Xj9nET9tctI |
Unknown |
XvONqaRmAPE |
Unknown |
YP7qj+uSJwo |
Unknown |
Z+8fq02NpM0 |
Unknown |
ZFhVeS+BQJs |
Unknown |
aH3bEULQH54 |
Unknown |
aJK9UjBtwi4 |
Unknown |
aL9DwvoSDzs |
Unknown |
aekYw+lydSg |
Unknown |
aj7wRdAWFeM |
Unknown |
ak6t3JzhOtg |
sceKernelGetSandboxConfig |
b3Q5U48bJLI |
Unknown |
bQ+8uJVyxII |
sceKernelIccResetBootTimestamp |
c1xs7KJ+uf0 |
Unknown |
cH6vM6sF5YA |
Unknown |
cReByBlM5XE |
Unknown |
cafDxa64sO4 |
Unknown |
ciYlptMdvhc |
sceKernelIccWriteWlanArea |
cp8qj9i8zMM |
Unknown |
culoiinnxDA |
sceKernelCheckProsperoSdkVersion |
cvFtKaAYbHE |
Unknown |
dnzOA7Vx1AE |
Unknown |
drv94FQk-Qw |
Unknown |
e7oZmNPlBbU |
Unknown |
eSgYzXvTPQI |
sceKernelTraceMarkerPlot |
eu1IgkLPYh8 |
Unknown |
ftHBlCfIEQo |
Unknown |
g7MGwZ5UxBE |
Unknown |
gBiaAGKEvHM |
Unknown |
gSIiye3ERqo |
Unknown |
gpgi-GwE2Is |
Unknown |
guq+otVpgj0 |
Unknown |
gvq6XRoDogE |
Unknown |
h26nEKnW8VI |
Unknown |
h35fpAz5tf4 |
sceKernelTraceMarkerPush |
hYEEJrcB3wU |
Unknown |
hmqw8GlN+tI |
sceKernelGetCanvasHandle |
i9ghW7uPndU |
sceKernelSetSandboxId |
iZEvDaPnNL4 |
Unknown |
ilQLkGlAjWA |
Unknown |
j6bGtwZkxOQ |
Unknown |
jESbu+uFJYU |
Unknown |
jMuNoBRCPUg |
Unknown |
jkLbtOA587w |
Unknown |
k+J3KBjfkNk |
Unknown |
km8Fr2Jn4Gg |
Unknown |
l-QGmU3VU+Q |
Unknown |
l67TRPy55-U |
sceKernelDeleteExternalTriggerEvent |
lRD35KDvDzE |
Unknown |
mIkJUpP5vKo |
Unknown |
ncrollDo5u4 |
Unknown |
nsq826qQ2EI |
Unknown |
o141x2VDeVc |
sceKernelGetMainSocSubId |
oSQQA8I595Y |
sceKernelInternalUnmapMapperSharedMemory |
pAI+17im1o0 |
Unknown |
pOClGbxrx94 |
sceKernelSetAppLibcData |
pn68p6w2eK0 |
Unknown |
pp+G+UZhiqY |
Unknown |
q-2Uxlg-faU |
Unknown |
qGzuTSD9cPQ |
Unknown |
qHVs+dxCumg |
Unknown |
qSleeVC6lwI |
Unknown |
qe5JmcCj4zg |
Unknown |
qtHOLtFWq7Y |
Unknown |
r6qUkFmQFr0 |
Unknown |
rC7zr-oAHCo |
Unknown |
rD4PS3f+jKw |
Unknown |
rLBfsmdAuvo |
sceKernelIccDisableButton |
rqiBT75A1po |
Unknown |
sFW+Ilmw+58 |
Unknown |
tkZiGUoRJok |
Unknown |
u9lxqerTKeA |
Unknown |
uV+YilcHqAs |
Unknown |
ulVjluL9TzM |
Unknown |
v+qTlNjF6kE |
Unknown |
vfYaxkxnJXQ |
sceKernelSetCanvasHandle |
wXnNof3LrrU |
Unknown |
wn0XzOue4EM |
Unknown |
wwWv+0MzhGM |
sceKernelDebugPauseWithDebugContext |
x0DQK0TXDk0 |
Unknown |
xpB6yv8NhhE |
Unknown |
yWOJkfd-DhA |
Unknown |
yn0b42DApAI |
Unknown |
yzvrk3YrPlE |
Unknown |
z0qKN5kkVj0 |
-
sceKernelGetHwModelName (libkernel_sys) - throws. On a CFI-2014 PS5 (firmware 13.60) a payload process got 0 from
sceKernelGetHwModelName(char*), which wrote "CFI-2014 A01X" and a terminator (14 bytes). The model string belongs to one console and the buffer size and null behaviour are not known, so it is not implemented -
sceKernelGetCompiledSdkVersionByPid (libkernel_sys) - accepts 0, -1 or the caller's PID and rejects other PIDs with
0x80020003(ESRCH), as other process queries do, and returns the 32-bit field at offset0x10of the process parameters per the PS5 payload SDK, assceKernelGetCompiledSdkVersiondoes (firmware 11.60 payloads read0x12590001,0x80020016for a null output).SCE_KERNEL_ERROR_EFAULTfor an unwritable pointer is an unmeasured host-safety fallback. Closes when: measured in a title process on a PS5 -
sceKernelGetProsperoCompiledSdkVersionByPid, sceKernelGetPs4CompiledSdkVersion and sceKernelGetPs4CompiledSdkVersionByPid (libkernel_sys) - the ByPid forms accept 0, -1 or the caller's PID and reject other PIDs with
0x80020003(ESRCH). The PS5 payload SDK declares a 32-bit PS4 SDK version at offset0x10of the process parameters and a PS5 (Prospero) one at0x14; the Ps4 getter reads0x10and the Prospero getter0x14; a payload process on firmware 11.60 got0x11600005and0x12590001, and0x80020016for null.EINVALfor null followssceKernelGetCompiledSdkVersionandSCE_KERNEL_ERROR_EFAULTfor an unwritable pointer is an unmeasured host-safety fallback. What each returns for a parameters block with no value in its field is unmeasured. Closes when: measured in a title process on a PS5 -
sceKernelGetCpumodeGame (libkernel_sys) - returning
SCE_KERNEL_ERROR_EFAULT(0x8002000E) for an unwritable mode pointer is a host-safety fallback; firmware 13.42 disassembly stores the result directly (16a8c: mov %eax,(%r14)), so the console faults -
sceKernelIsModuleLoaded (libkernel_sys) - returning
SCE_KERNEL_ERROR_EFAULT(0x8002000E) for an unreadable name pointer is a host-safety fallback; firmware 13.42 disassembly reads the caller string in place without copy checks, so the console faults -
scePthreadCondattrGetclock (libkernel_sys) - a null clock pointer with a valid attribute throws
std::invalid_argument, where a payload process measured on a device faults. A null or destroyed attribute with a null output returnsSCE_KERNEL_ERROR_EINVAL(0x80020016) because FreeBSD 11.4 libthr checks the attribute first; that pair returnsSCE_KERNEL_ERROR_EINVALwithout faulting in a payload process on a PS5 Pro (firmware 13.60). ReturningSCE_KERNEL_ERROR_EFAULT(0x8002000E) for an unwritable clock pointer is a host-safety fallback; firmware 13.42 disassembly stores the clock directly, so the console faults. Stale handles are not validated -
scePthreadTimedjoin (libkernel_sys, NID
HLUSF4Oi7Pc) - the signature is not measured on a console and not present in the Orbital type database; it adopts the relative microsecond deadline form(Pthread, void**, KernelUseconds)of its siblingscePthread*Timed*functions (scePthreadMutexTimedlock,scePthreadCondTimedwait,scePthreadRwlockTimedrdlock) and converts the deadline relative toCLOCK_REALTIMEbefore forwarding topthread_timedjoin_np. -
scePthreadBarrier*, scePthreadBarrierattr*, scePthreadGetcpuclockid, scePthreadGetconcurrency and sceKernelMsync (libkernel_sys) call libkernel's
pthread_barrier*,pthread_getcpuclockid,pthread_getconcurrencyandmsyncand turn a POSIX error into0x80020000 | errno; that the console'ssceforms do the same is not measured. Signatures follow the Orbital type database;scePthreadBarrierWaitreturns -1 to the serial thread as in shadPS4 (PS4). On the PS5 (payload process, firmware 11.60)scePthreadBarrierInitwith a name of 40 characters returned0x8002003f(ENAMETOOLONG) and with a NULL name returned 0, and a count-1scePthreadBarrierWaitreturned -1; AnyPS5 returnsENAMETOOLONGfor a name of 32 or more characters, the limit that the console applies topthread_barrier_setname_np(31 characters accepted, 32 rejected), and the limit forscePthreadBarrierInititself is measured only at 40 characters. Whether a title process differs and whether the name is checked before the count and the barrier pointer are not measured.scePthreadGetconcurrencyreturns 0 for level 0 and0x80020000 | levelotherwise, as measured on a PS5 payload process (firmware 11.60, levels 1, 4, 8 and 1000, UTC 2026-11-09 04:54); a title process may differ -
scePthreadAttrGetscope, scePthreadAttrSetscope, scePthreadAtfork and scePthreadSetconcurrency (libkernel_sys) call libkernel's
pthread_attr_getscope,pthread_attr_setscope,pthread_atforkandpthread_setconcurrencyand turn a POSIX error into0x80020000 | errno, as shadPS4 exportsscePthreadAttrGetscopeasORBIS(posix_pthread_attr_getscope); shadPS4 has no export for the other three, whose names and NIDs are in the symbol database and whose signatures follow the same POSIX forms. Not measured on a console. As in libkernel, the scope is 0 (process) or 2 (system), andscePthreadAtforkhandlers are only recorded, as no process forks -
sceKernelEnableDmemAliasing2 (libkernel_sys) returns 0 for the same reason as
sceKernelEnableDmemAliasing: direct memory can always be mapped more than once here, so there is nothing to enable. Whether the2variant differs from the plain call is unmeasured. -
scePthreadMutexInitForInternalLibc, scePthreadMutexattrInitForInternalLibc (libkernel_sys) - not measured on a console. They call
pthread_mutex_initandpthread_mutexattr_initas shadPS4 and ChonkyStation4 (PS4) do, with shadPS4's0x80020000 | errnoerrors; a mutex without attributes checks errors. FreeBSD's malloc-internal_pthread_mutex_init_calloc_cbdisagrees, making a normal mutex that defers signals. A name argument, signal deferral and allocation are unknown; the PS5 payload SDK only lists the exports; calling it from a payload process on firmware 13.60 aborts the process with "Can't call MutexInitForInternalLibc twice" (errno 2), so libkernel_sys calls it while loading the module and payloads must not call it -
AMM kernel write commands (libkernel_sys) - signatures of the map, map direct, unmap, remap, multimap and protection writers and their GPU mask id forms taken from ampr_emu's libkernel hook targets, which forward to the real kernel; the measure mode (
dstnull reports the size,outSizenull skips the report) follows ampr_emu's measure-then-record calls, not confirmed on a title. Each writer builds its record with the encoder of itslibSceAmprcommand buffer sibling, so it applies the sibling's checks and writes its bytes. The GPU mask id is ignored, as by the siblings, and a protection or mask with bits above 32 is rejected, as bysceKernelWriteModifyMtypeProtectCommand. A widertypeis cut to the record's 32 bits, as by that writer; the console's handling is not measured -
AMM kernel write command checks (libkernel_sys) - the map, map direct, unmap, remap, multimap and protection writers apply their libSceAmpr siblings' checks, not those of firmware 13.42's libkernel (compared under a CPU emulator, not measured on a console), so some arguments get a different return code. The console checks the range against the AMM virtual address ranges, accepts a size that wraps past the end of the address space, takes a different set of protection bits and, for maps and memory type changes, accepts only types 11 to 20. Where both accept a call, the recorded address, size, type and protection match
-
sceKernelWriteMapCommand2, sceKernelWriteUnmapToPrtCommand, sceKernelWriteWriteAddressCommand, sceKernelWriteWriteCounterCommand, sceKernelWriteWaitOnAddressCommand, sceKernelWriteWaitOnCounterCommand and sceKernelWriteEventQueueOnCompletionCommand (libkernel_sys) - they record this project's command layout, not the console's packed commands, so the reported sizes differ and the waits' flush bit is dropped. A PRT map with a non-zero type or protection and a recorded wait on an address that is not 8-byte aligned throw: their results are unknown. The checks follow firmware 13.42's libkernel and libkernel_sys, read from disassembly and compared under a CPU emulator, not measured on a console; without the PRT flag sceKernelWriteMapCommand2 is sceKernelWriteMapCommand. As in the firmware, the PRT range check accepts an end that wraps past the top of the address space, and only size bits 14 to 40 are recorded
-
sceKernelWriteWaitOnAddressCommand and sceKernelWriteWaitOnCounterCommand (libkernel_sys) - a negative compare passes the firmware's check (above 3 is refused) and is recorded as its low three bits, as in firmware 13.42, so -2 to -4 record modes 6 to 4. The command runner here (
_waitSatisfiedinApr.cpp) implements modes 0 to 6, so a wait recorded with mode 7, for example from a compare of -1, is written successfully but throws when it runs -
sceKernelCallIndirectBuffer, sceKernelCallIndirectBuffer2, sceKernelCallIndirectBuffer3, sceKernelGiveDirectMemoryToMapper and sceKernelMapperGetParam (libkernel_sys) - follow firmware 13.42's libkernel_sys, read from disassembly and not measured on a console. The submit calls hand their arguments to a kernel ioctl, keeping 32 bits of the dword count, so the kernel's checks are unknown: a priority above 2, a null buffer or a dword count of 2^30 or more (the AMM queue here takes a 32-bit byte count) throws. sceKernelGiveDirectMemoryToMapper requires a non-zero size and a 2 MiB aligned size and alignment. sceKernelMapperGetParam copies up to 0x38 requested bytes of a block filled at startup by ioctl 0xc038ac06 on the mapper device (firmware 4.03 libkernel.sprx, the export at 0x2d490 and the initializer that fills the block): its size, the four AMM range values (firmware libSceAmpr reads them from there), then two values nothing reads - not in libkernel.sprx, libkernel_sys.sprx, the firmware or the PPSA10665 libSceAmpr, or in the ampr_emu reimplementation - so they are returned as 0 until a console measurement names them. The 0x80020006 returned when its device cannot be opened is not modelled
-
sceKernelMapperGetParam (libkernel_sys) - returning
SCE_KERNEL_ERROR_EFAULT(0x8002000E) for an unwritable output pointer or unreadable parameter struct is a host-safety fallback; firmware 13.42 disassembly accesses memory directly, so the console faults -
sceKernelWaitCommandBufferCompletion (libkernel_sys) - signature taken from ampr_emu's libkernel hook targets, where
sceAmprAmmWaitCommandBufferCompletionforwards to it; like that sibling it waits for an AMM submission and returnsSCE_KERNEL_ERROR_ESRCHfor an id that was never submitted, not confirmed on a title -
kldsym (libkernel_sys) follows FreeBSD 11.4's
sys_kldsymin the order it checks its arguments:EFAULTfor an unreadable lookup structure,EINVALfor aversionother than the structure size (32 bytes on amd64) or a command other thanKLDSYM_LOOKUP,EFAULTorENAMETOOLONGfor the symbol name,ENOENTfor a file id that no file has. The linker file list is empty here, as inkldnextandkldfind, so every file id other than 0 getsENOENT; modules a console preloads are not modelled. A lookup in id 0 (every file) throws, as no symbol table is modelled. Whether a title may query kernel symbols is unverified -
getfsstat (libkernel_sys) lists one filesystem, the host volume of the guest root as
_fstatfsreports it, not the console's mount table; FreeBSD 11.4'skern_getfsstatreturns onestruct statfsper mount.MNT_NOWAITreads the volume afresh instead of the cachedmnt_stat,MNT_LAZYis rejected withEINVALas in 11.4, and the jail andPRIV_VFS_GENERATIONfiltering is not modelled. A volume query that fails is skipped, so the count is 0, as FreeBSD skips a mount whoseVFS_STATFSfails -
swapon (libkernel_sys) follows FreeBSD 11.4's
sys_swaponfor a root caller:EFAULTfor a null or unreadable name,ENOENTfor an empty or missing one,ENAMETOOLONGfor 1024 bytes or more or a component over 255,ENOTDIRthrough a file, andENOTBLKfor any existing file or directory, asvn_isdiskaccepts only a disk device. A host character or block device throws, as nothing here backs swap space. Whether a title holdsPRIV_SWAPON(otherwiseEPERM) is unverified -
__sys_is_development_mode(libkernel_sys) fixes development mode to disabled (0); development-console state and features are not modelled. Console return values and nonzero mode bits are unmeasured. The parameterlessuint64_tdeclaration follows PS5SDK, not a verified console ABI. kstuff-lite maps the export name to the query; ps5-hen manufactures0xc001in a hook and supplies no measurement of the original result.
Inventory identity evidence
The NID set is from the inspected libkernel_sys ELF function-export table (defined STT_FUNC entries), not the older 3.20 inventory. The module-parameter words at 0x10 and 0x14 are 0x13590001 and 0x13600007; the earlier 13.60 label refers to SDK-formatted metadata, not independently authenticated retail firmware or an introduction date. The reproducible static audit finds 1551 unique function NIDs with set digest 5f1668cc9c69e2950722a83151f31cf7aa94fb1552ab883e5067f43c94d63b16 and confirms all 328 proposed entries. The digest hashes sorted unique ASCII NIDs, each followed by LF. Named declarations are candidate spellings whose repository-computed NID exactly matches an observed function NID; the hashed table establishes neither plaintext spelling nor C ABI.
The 35 formerly literal aliases are named by the repository-pinned aerolib table. There are now 152 named declarations and 151 unresolved NID aliases; 302 of the 303 entries remain throwing placeholders. sceKernelHasTrinityMode left the inventory for its libkernel implementation and _execve, _execvpe and __sys_is_development_mode left it for their implementations in AdditionalExports.cpp.
The following eight candidate spellings are absent from that aerolib revision. Their name/NID pairs occur in the public ps5rs identity database at commit 2304be5131221bae0dac24b9767cabffda33f747 and independently recompute to the function NIDs in the inspected table. This database supports candidate spelling only; it does not establish firmware membership, introduction version or ABI.
| Candidate spelling | NID |
|---|---|
__sys_dynlib_unload_prx |
GQli4UAXTfQ |
mmap2 |
tGtH2GTWbyE |
pthread_setschedother_np |
ymCrwbFD4fk |
sceKernelEnableDmemAliasing3 |
RbhD-epf6c0 |
sceKernelGetResidentFmemCount2 |
zx9n-9bt7IA |
sceKernelIsCloudDevkit |
XyW5rUlKP1w |
sceKernelKernelHeapUsage2 |
pQiLz-exzR4 |
sceKernelSetAppInfoByAppId |
fIyST5BItRg |
Functional
-
wait3 and wait4 (libkernel_sys) - Windows child resource accounting is not implemented: requesting it for a completed matching child throws before reaping, preserving the child for another wait. Console resource-accounting behaviour is unverified.
-
_wait4 (libkernel_sys) is unverified on the console. It follows FreeBSD 11.4, where
_wait4is the wait4 system call under its underscore name, and forwards to libkernel_sys wait4, inheriting its limits (Windows child resource accounting throws). -
__ubsan_handle_cfi_check_fail and __ubsan_handle_cfi_check_fail_abort (libkernel_sys, also libSceNKWebKitRequirements) - the console's handlers are not measured; they follow LLVM 18.1.8 compiler-rt's standalone UBSan on clang's LP64
CFICheckFailData. Each source location is reported once to stderr; the plain handler then returns, and the_abortone throws where compiler-rt exits. No symbolizer runs, so the call target prints as(unknown), module notes and the summary line are omitted, and the dynamic type behind a valid vtable is not read. An unknown check kind throws. -
statfs and futimesat are not console-verified.
statfsshares libkernel's host-volume statistics and incomplete guest mount identity fields with_fstatfs; archive-only paths throw because they have no host volume lookup. On Linux, FIFO and socket paths report their containing filesystem; this special-file behaviour is not independently measured on console.futimesatshares the existing timestamp implementation; descriptor-relative paths use the same host directory paths and guest-root limitations asopenat, including Windows rename-after-open limits. A null path isEFAULT, as FreeBSD 11.4kern_utimesat, not Linux's descriptor-only extension. -
symlinkat shares
symlink's target restrictions: absolute targets throw; a parent-directory target throws when the host would not follow it to the guest path it names. Descriptor-relative destination paths have the same guest-root limitations asmkdirat; Windows requires symbolic-link privileges. Console behaviour is unverified. -
sceKernelGetPhysPageSize (libkernel_sys) returns
PS5_PAGE_SIZE(16 KiB), the guest page granularity used by libkernel's direct-memory and mapping implementation. The export has no arguments. Console behaviour is unverified -
revoke (libkernel_sys) - a character device throws, because device revocation is not modelled. Other paths follow FreeBSD 11
sys_revoke: path errors asstatreports them, andEINVALfor anything that is not a character device. Guest paths have no/dev, so/dev/nulland the like fail withENOENT, not as devices -
sceKernelGetUpdVersion (libkernel_sys) - runs the same code as
sysKernelGetUpdVersionon firmware 13.42 (disassembly), so it forwards there: a null output is refused withSCE_KERNEL_ERROR_EINVAL, and otherwise the 4 bytes come frommachdep.upd_version, whose retail value is unmeasured (see libkernel's entry) -
get_vm_map_timestamp (libkernel_sys), firmware 13.60
libkernel_sys.sprx, syscall 624, returns the low 32 bits of the guest-allocation generation. That value advances whenever a guest-allocation registry scope ends, including lookups (malloc_usable_size) and every guest heap allocation or free, and whenever a tracked range is invalidated. FreeBSD advances a map's timestamp only when the map is write-locked, so the value changes far more often than the console's would. Host mappings made outside the tracker can be missed. Not hardware-validated. -
kenv (libkernel_sys) follows FreeBSD 11.4's
sys_kenvfor a caller in a jail with the default parameters:KENV_SETandKENV_UNSETfail withEPERMbefore the name is read, asprison_priv_checkdeniesPRIV_KENV_SETandPRIV_KENV_UNSETthere. That a program runs jailed as uid 0 is the model agreed for the credential checks, not measured on a console. The environment stays empty here, soKENV_GETreadsENOENTand a dump returns 0, where a PS5 payload process (firmware 11.60) got 320 fromKENV_DUMPwith a null or 16-byte buffer and 0 with 8 KiB. A name is read with the guest path copy, which reads up to 1024 bytes, so an unterminated string followed by an unreadable page fails withEFAULTwhere FreeBSD's boundedcopyinstrgivesENAMETOOLONG. -
sched_rr_get_interval (libkernel_sys) accepts pid 0 or the host-backed guest pid and reports the FreeBSD 11 ULE default time slice for the usual AMD64 clock rates (94 ms); other pids return
ESRCH, and a null interval returnsEFAULT. AnyPS5 does not run a guest ULE scheduler or track a per-process configured quantum, so this reports the modeled default and does not reflect runtime scheduling. Console-specific clock rates and quantum configuration are unverified -
pwrite (libkernel_sys) a one-byte write at
INT64_MAXreturnsEINVALhere. The console table reportsEFBIGfor a maximum-offset row whose count, flags and payload are not stated, so the difference is unverified. It shares the POSIX provider and remaining limitations of libkernel; no error remapping is applied. -
is_in_sandbox and sceKernelIsInSandbox (libkernel_sys) return 1 as a title process runs in a sandbox container jail, matching shadPS4 (process.cpp:15-17)
-
fchdir (libkernel_sys) changes the guest working directory to the descriptor's directory: on Windows through the path recorded when the descriptor was opened, on Linux through the
/proc/self/fdlink target. It returnsEBADFfor a descriptor that is not open,EINVALfor a pipe or socket, as FreeBSDgetvnodedoes for a descriptor without a vnode, andENOTDIRfor any other descriptor that is not a directory. Outside Windows it checks search permission on the directory withfaccessat, which fails withEACCESas FreeBSDchange_dirdoes; on Windows that check is not modelled. A directory renamed after it was opened is still reached through the recorded path. Console behaviour is unverified -
__getcwd (libkernel_sys) implements the raw
int __getcwd(char *buf, size_t buflen)syscall using the guest-root-aware cwd model shared with libcgetcwd. It requires caller-provided storage, returns 0 on success and -1 with the guest errno on failure. The syscall signature follows FreeBSDsys___getcwd; console behaviour and errno details are unverified on hardware. Errors follow FreeBSD 11.4'skern___getcwd: the size is taken as a 32-bitu_intand a size below 2 answersEINVALbefore the buffer is looked at, a size aboveMAXPATHLEN(1024) is lowered to it, a path that does not fit answersENOMEM, and a null or unwritable buffer answersEFAULTonly after the path is found. -
openat, _openat (libkernel_sys) pass
AT_FDCWD(-100) and absolute paths toopen. Any other relative path is joined to the descriptor's host directory, found the same way as forfchdir, so guest path aliases and case-insensitive name matching do not apply to it, and a..component is not kept inside the guest root. They returnEBADFfor a descriptor that is not open andENOTDIRfor one that is not a directory. As withopen,O_NONBLOCKis ignored. PPSA99003 opens directory entries throughopenat. Console behaviour is unverified -
fchmodat (libkernel_sys) passes
AT_FDCWD(-100) and absolute paths tochmod; any other relative path is joined to the descriptor's host directory the same way as foropenat, so guest path aliases and case-insensitive name matching do not apply to it and a..component is not kept inside the guest root. A flag other than0orAT_SYMLINK_NOFOLLOW(0x200) returnsEINVAL; the mode is masked to07777. WithAT_SYMLINK_NOFOLLOWa symbolic link throws throughNotImplemented_nid_no_patchon Windows and Linux, whose hosts cannot change a link's own mode, while a regular file is changed either way. The mode maps to the host file mode, which on Windows is only the CRT's read-only bit. PPSA99621 calls it throughstd::filesystem::permissions. Console behaviour is unverified -
lchmod (libkernel_sys) passes everything, a symbolic link included, to
fchmodat(AT_FDCWD, path, mode, AT_SYMLINK_NOFOLLOW), as FreeBSD 11.4'ssys_lchmoddoes, so a file or directory is changed as bychmod, withfchmodat's path lookup and Windows mode mapping, and a link throws there on Windows and Linux. On Windows any reparse point counts as a link. Console behaviour is unverified -
_execve (libkernel_sys) merges host
environwithenvpname overrides instead of replacing the environment. A null path and#!throw. FreeBSD 11.4do_execveuses descriptor-based execution for a null pathname; that activation is unmodelled. Whether this export shares libkernelexecve's measured null-pathEBADFis unverified. MountMNT_NOEXEC, write-openETXTBSY, Windows mode bits and directory search permissions are unmodelled. Converted-target and host restrictions follow libkernel exec. Console error ordering and plain ELF acceptance are unverified. -
_execvpe (libkernel_sys) inherits
_execveactivation and permission gaps. FreeBSD 11.4execvPesupplies guestPATHsearch, errno precedence and theENOEXECretry through/bin/sh; the shell requires a supported converted target. The too-long-candidate stderr diagnostic is omitted. Names are read only within 1024 bytes: oversized names return the search's finalENOENT, and unreadable names returnEFAULT, rather than libc's unchecked access. Console behavior is unverified. -
pathconf, fpathconf, _fpathconf (libkernel_sys) answer every file and directory as the console's UFS mount
/system_datadoes in a payload process on a PS5 (firmware 13.60). Other mounts differ:/dataand/usergive_PC_LINK_MAX1,_PC_SYMLINK_MAX0,_PC_NO_TRUNCEINVALand 255 for_PC_MAX_CANON,_PC_MAX_INPUTand_PC_VDISABLE;/,/system,/hostappand/updateanswer only four names; tmpfs gives_PC_FILESIZEBITS0 and_PC_SYNC_IO1. What a title sees under/app0,/savedata0,/temp0and/download0is not known.fpathconfand_fpathconfanswer_PC_ASYNC_IO200112 and, for a pipe or a socket, only_PC_PIPE_BUF512, as FreeBSD 11'skern_fpathconfdoes -
mkdirat (libkernel_sys) passes
AT_FDCWD(-100) and absolute paths tomkdir. Any other relative path is joined to the descriptor's host directory, found the same way as forfchdir, so guest path aliases and case-insensitive name matching do not apply to it, and a..component is not kept inside the guest root. It returnsEBADFfor a descriptor that is not open andENOTDIRfor one that is not a directory. On Windows,modeis ignored. Console behaviour is unverified -
readlink (libkernel_sys) on Windows reads a symbolic link's target from its reparse data and returns it with
/separators, only when the target is relative, assymlinkcreates them. A symbolic link with an absolute target returns its print name, or its substitute name when the print name is empty, without a\??\or\\?\prefix. A directory junction returns the same kind of name when it is a drive path (X:\...), using the print name when that is a drive path and the substitute name otherwise. A mounted volume (\??\Volume{GUID}\), any other name surrogate and every reparse point without the name surrogate bit (WOF compression, deduplication, cloud files) returnEINVAL, as FreeBSD does for a file that is not a link and as CPython'sos.readlink, which reads only symbolic links and junctions, does. Unwritable or unmapped destination buffers returnEFAULT(14) viaGuestCopyOut -
aio_read, aio_write, aio_fsync, aio_error, aio_return, aio_suspend, aio_waitcomplete, aio_cancel (libkernel_sys) - a request with
SIGEV_SIGNAL,SIGEV_THREAD_IDorSIGEV_KEVENTcompletion, or on a socket, throws. One worker thread runs requests sequentially in submission order, so a request is cancellable only until that thread takes it. A queued request keeps the descriptor number, not the open file: closing or reusing the descriptor before it runs changes what it reaches. Pipes fail withEOPNOTSUPP(FreeBSD 11vfs.aio.enable_unsafe0); console setting is unverified. Waits are not interrupted by signals (EINTR), and timeouts under 1 ms round up to 1 ms. A bad pointer passed toaio_suspendcrashes the host;aio_waitcompletevalidates result and timeout pointers viaGuestCopyIn/GuestCopyOut, returningEFAULT(14). Otherwise rules follow FreeBSD 11vfs_aio.c -
symlink (libkernel_sys) stores the target unchanged in a host symbolic link, which the host follows later, not the guest path resolver. It throws for an absolute target, which would need a host path in the link and a translation back in
readlink. A target with a..component is created only when the host and the guest would reach the same place: every directory a..leaves must exist and not be a symbolic link, so the host's physical..matches the guest resolver's lexical one, and the target joined to the link's host directory must equal the guest path it names, resolved through the guest mounts. A..that climbs out of a mount such as/savedata0, or past a directory reached through a symbolic link, throws, where FreeBSD 11.4'snameifollows it from the link's directory. A payload process on a PS5 (firmware 11.60) refused a relative target in its data directory withEOPNOTSUPP, which this creates; other directories and absolute targets were not measured -
readlinkat (libkernel_sys) passes
AT_FDCWD(-100) and absolute paths toreadlink. Any other relative path is joined to the descriptor's host directory, found the same way as forfchdir, so guest path aliases and case-insensitive name matching do not apply to it, and a..component is not kept inside the guest root. It returnsEBADFfor a descriptor that is not open andENOTDIRfor one that is not a directory. Console behaviour is unverified -
link (libkernel_sys) and
linkatcount the symbolic links met while resolving the source and the new name, and returnELOOPat the 33rd, as FreeBSD 11.4'snameidoes withMAXSYMLINKS(32), where the hosts allow longer chains (Linux 40). The count walks the host path from its root, so symbolic links in the host directories a guest path maps to count too; only Windows symbolic links count there, not junctions. A guest path, and on Windows a descriptor-relative one, reaches the count with its..components already dropped lexically, so a link a dropped component would have followed is not counted -
pthread_attr_setcreatesuspend_np, pthread_resume_np, pthread_resume_all_np, pthread_multi_np, scePthreadAttrSetcreatesuspend, scePthreadResume, scePthreadResumeAll and scePthreadMulti (libkernel_sys) - when a thread created suspended stops relative to its signal mask is unmeasured on a console. Return values and errors follow FreeBSD 11.4 libthr (
thr_attr.c,thr_resume_np.c,thr_multi_np.c) and the code of firmware 13.42'slibkernel_sys.sprx(#9573), where the sce forms add0x80020000to a non-zero errno -
pthread_attr_setstackaddr and pthread_attr_getsolosched_np (libkernel_sys) - firmware 13.60
libkernel_sys.sprx(SHA-25660921322b155ba649cfa29ea5e6d358ca0229424b4f73fd5c30ae7f7ce7c304c) placespthread_attr_setstackaddr(NIDsuCrEbr0xIQ) at function address0x4ed0andpthread_attr_getsolosched_np(NIDApMLfJ527Ag) at0x51b0. Console runtime behaviour was not independently tested -
pthread_attr_getaffinity_np and pthread_attr_setaffinity_np (libkernel_sys) - the CPU set size floor is 8 bytes, sizes below 8 return
ERANGE(34), and a get zero-fills past 8 bytes, following PS5 console measurements. Setting with a size of 0 returns 0; whether the console modifies the stored mask on size 0 is unverified -
pthread_attr_getaffinity_np, pthread_attr_setaffinity_np and pthread_attr_getsolosched_np (libkernel_sys) - an unreadable
attrreturnsEINVAL(22) and an unreadable or unwritable CPU set returnsEFAULT(14), as their null forms do; an unwritablesoloschedreturnsEINVAL.errnois preserved. These are host-safety fallbacks: console behaviour on unmapped memory is unmeasured, and a get whose CPU set faults part-way leaves the bytes before the fault written -
pthread_get_specificarray_np (libkernel_sys) - returns EINVAL (22) for non-positive total, key below 1 or key range exceeding 512, EFAULT (14) for null output, and otherwise copies thread-specific data via scePthreadGetspecific. These argument checks and the 512-key bound are an unverified host model; console runtime behaviour was not independently measured.
-
sceKernelGetCpumodeGame and sceKernelSetCpumodeGame (libkernel_sys) - the setter takes the mode as its only argument and the getter writes it through an
int*, as ProsperoEden (PPSA99008) declares and calls them; its getter faulted when called without one, which throws here. The mode starts at 1, 0 and 1 are accepted, and 2 to 7 returnEINVAL(0x80020016), as it measured on a PS5; other modes were not tried and throw. That the getter reports the last accepted mode is inferred from the probe. The mode changes nothing else here: on the console 0 gave system CPU mode 1 and 1 mode 5, whilesceKernelGetCpumodestill returns 0. -
fstatat (libkernel_sys) passes
AT_FDCWD(-100) and absolute paths tostat, or tolstatwithAT_SYMLINK_NOFOLLOW(0x200). Any other relative path is joined to the descriptor's host directory, found the same way as forfchdir, so guest path aliases and case-insensitive name matching do not apply to it, and a..component is not kept inside the guest root. It returnsEBADFfor a descriptor that is not open andENOTDIRfor one that is not a directory, and flags other thanAT_SYMLINK_NOFOLLOWreturnEINVAL. PPSA74126 imports it. Console behaviour is unverified -
uuidgen (libkernel_sys) - the node is 48 random bits with the multicast bit clear, chosen once per process, where the console's kernel uses the address of its first Ethernet interface; a payload process on a PS5 (firmware 11.60) read the bit as clear in two calls of one process, and the node itself and whether the PS5 kernel registers an interface were not read, so that is assumed. Otherwise it follows FreeBSD 11's
kern_uuidgenandsys_uuidgen: version 1 UUIDs with consecutive timestamps from the guestCLOCK_REALTIME, a random 14-bit clock sequence that is incremented when the clock has not passed the last batch, andEINVALfor a count outside 1 to 2048. An unwritable store returnsEFAULTafter the state advances, ascopyoutfails there -
sceKernelCreateUuidV1 (libkernel_sys) - the prototype
int sceKernelCreateUuidV1(std::uint8_t* uuid)and null check returningSCE_KERNEL_ERROR_EINVALare modeled by analogy with libkernel'ssceKernelCreateUuidV4; returnsSCE_KERNEL_ERROR_EFAULTfor unwritable memory as a host-safety fallback; console behaviour and native byte order are unmeasured. Encodes RFC 4122 big-endian version 1 UUID bytes sharing uuidgen's node and clock state -
sceKernelCreateUuidV7 (libkernel_sys) - the prototype
int sceKernelCreateUuidV7(std::uint8_t* uuid), theSCE_KERNEL_ERROR_EINVALnull check and theSCE_KERNEL_ERROR_EFAULThost-safety fallback copysceKernelCreateUuidV1; console behaviour and byte order are unmeasured. Writes the RFC 9562 big-endian layout: 48-bit Unix milliseconds fromCLOCK_REALTIME, version 7, variant10and 74 random bits, without the optional monotonic counter, so two UUIDs of one millisecond need not sort in call order. Closes when: compared with the console. -
unlinkat (libkernel_sys) passes
AT_FDCWD(-100) and absolute paths tormdir(withAT_REMOVEDIR, 0x800) orunlink. Any other relative path is joined to the descriptor's host directory, found the same way as forfchdir, so guest path aliases and case-insensitive name matching do not apply to it, and a..component is not kept inside the guest root. It returnsEBADFfor a descriptor that is not open andENOTDIRfor one that is not a directory. Removing a directory withoutAT_REMOVEDIRfails withEPERM, removing.or..withAT_REMOVEDIRfails withEINVAL, and flags other thanAT_REMOVEDIRfail withEINVAL. Console behaviour is unverified -
renameat (libkernel_sys) passes
AT_FDCWD(-100) and absolute paths torename. Any other relative path is joined to its descriptor's host directory, found the same way as forfchdir, so guest path aliases and case-insensitive name matching do not apply to relative descriptors, and a..component is not kept inside the guest root. It returnsEBADFfor a descriptor that is not open andENOTDIRfor one that is not a directory. Console behaviour is unverified -
fork (libkernel_sys) throws: creating a child process is not supported. PPSA19111 imports it and fails to load without it. Its engine calls
forkinPosix_Daemonize, only with-daemonize, and inPlatform_ShellExecutebeforeexecvp("xdg-open"), which the main menu's Previews button reaches, so pressing Previews ends in this throw. setsid fails withEPERM, as FreeBSD's does for a process group leader, since the guest is taken to lead its own process group (seekill). umask keeps the guest's mask (initially 022, masked to 07777) and returns the previous one, Linux named shared-memory creation applies it, but ordinary files are still created with the host process's mask -
sched_setscheduler (libkernel_sys) follows FreeBSD 11.4's
sys_sched_setscheduler: an unreadable parameter returnsEFAULT, a pid other than 0 and the guest's own returnsESRCH, and every other call returnsEPERMwhatever the policy and priority, becausekern_sched_setschedulerneedsPRIV_SCHED_SETbefore it checks them andprison_priv_checkdenies it to a jailed caller. A title is taken to run jailed; that is not measured on a console. The policy and priority are never validated or stored, soEINVALfor a bad policy is not modelled -
sigreturn (libkernel_sys) follows FreeBSD 11.4's amd64
sys_sigreturnonsetcontext'sucontext_t: a null context returnsEFAULT, andmc_flagsoutside_MC_FLAG_MASKor anrflagsdiffering from the current flags outsidePSL_USERCHANGEreturnEINVAL;mc_lenis not checked. As inset_fpcontext,_MC_FPFMT_NODEVkeeps the FPU state,_MC_FPOWNED_NONEloads the initial one, the FPU and PCB owners loadmc_fpstate, and other values returnEINVAL. The rest is restored as bysetcontext, which keeps the%fsand%gsbases FreeBSD would load. A%csthat is not a user selector (FreeBSD also raisesSIGBUS) and_MC_HASFPXSTATEthrow -
sceKernelGetModuleInfoInternal, sceKernelGetModuleListInternal and sceKernelLoadStartModuleForSysmodule (libkernel_sys) answer for every loaded module, system modules included.
sceKernelGetModuleInfoInternalfills the 0x1A8-byteSceKernelModuleInfoExof a module handle the waysceKernelGetModuleInfoFromAddrdoes for an address, with shadPS4's checks in their order:EFAULTfor a null pointer,EINVALwhenst_sizeis not 0x1A8,ESRCHfor an unknown handle.sceKernelGetModuleListInternalreturns the same list assceKernelGetModuleList, as fpPS4 does; fpPS4 marks that as a guess, and neither is checked on a PS5.sceKernelLoadStartModuleForSysmoduleforwards tosceKernelLoadStartModule -
sceKernelLoadStartModuleForSysmodule flags (libkernel_sys) - the
flagsare dropped before forwarding tosceKernelLoadStartModule, and what the0x10000flag that firmware 13.42libkernel_sys.sprxadds would change is not modelled. That module adds0x10000to theflagsand skips the public entry's check that refuses nonzeroflags(disassembly, not run on a console); a non-nulloptreturns0x80020016from both -
scePthreadMutexIsowned, utrace and tcsetsid (libkernel_sys) follow FreeBSD 11.4 except where stated.
scePthreadMutexIsownedreturns 0 when libkernel'spthread_mutex_isowned_npdoes and0x80020000plus its result (0x80020001) for a mutex the calling thread holds, as firmware 13.42'slibkernel_sys.sprxwas measured to do in an emulator (#9713); a console run is not measured.utracereturns 0 without reading its record, assys_utracedoes for an untraced process; that the PS5 kernel hasKTRACE(elseENOSYS) is assumed.tcsetsidfails withEINVALunlesspidisgetsid(0), then issuesTIOCSCTTY, which guest descriptors refuse (ENOTTY, INET socketsEADDRNOTAVAIL, closedEBADF), as libc's termios.c -
sceKernelIsModuleLoaded (libkernel_sys) follows firmware 13.42's libkernel_sys: it asks
sceKernelGetModuleListInternalfor up to 0x300 modules and returns its error, then returns 0 when the first 256 bytes of one module'ssceKernelGetModuleInfoname equal the argument, elseSCE_KERNEL_ERROR_ESRCH. It inherits the namessceKernelGetModuleInforeports, so a system library is found under its host file name, such aslibSceAjm.prx, and the console'slibSceAjm.sprxreturnsSCE_KERNEL_ERROR_ESRCHhere. A null name throws, where the console faults instrncmp. Closes when:sceKernelGetModuleInforeports the console's module names -
chroot (libkernel_sys) follows FreeBSD 11.4's
sys_chrootandpwd_chrootfor a root caller:EFAULTfor a null path,ENOENTfor an empty or missing one,ENAMETOOLONGfor a path of 1024 bytes or more or a component over 255, andENOTDIRfor a path that is not a directory or passes through a file. A directory that is the guest root (/,/.., or.afterfchdirto a descriptor of/) succeeds and changes nothing, as the root stays the same directory; the guest is taken never to have changed its root, so open directory descriptors do not make it fail withEPERM(kern.chroot_allow_open_directories1). Any other directory throws, naming the path: the guest path resolver has a fixed root and mount aliases (/app0,/savedata0) that do not move with it. On the console a title starts in a sandbox root, wherepwd_chrootrefuses withEPERMwhile a directory is open; whether that holds for titles, and whether a title holdsPRIV_VFS_CHROOT, are unverified. Porpoise (PPSA99764) weak-imports it and calls it only asfchdirto its saved descriptor of/thenchroot("."), to put its sandbox root back after a jailbreak daemon replaced it (put_root_back) -
Console identity (libkernel_sys) -
get_authinfoandget_self_auth_infoerrors and capabilities are unverified on PS5, returningEFAULTwhen passed an unwritable destination pointer and following shadPS4 withEPERMfor null, and zero authority and credential words.get_self_auth_infoforwards toget_authinfo(0, info). The host models a retail unit (IsCEX1,IsGenuineCEX1,IsDevKit0,IsGenuineDevKit0,IsTestKit0,IsGenuineTestKit0) and Prospero (IsProspero1,IsKratos0). On a CFI-2014 PS5 (firmware 13.60) a payload process got 0 fromsceKernelIsProspero(); a payload process is not a title, so the value a title gets is unmeasured. -
sceKernelIsPs4Process and System OpenPSID (libkernel_sys) -
sceKernelIsPs4Processreturns 1 when the title ID starts withCUSAand 0 otherwise, aslibSceRtcandlibSceConvertKeycodetell PS4 titles apart; this mapping follows the PS4 title-ID convention and is unmeasured on a console, since BunnyFl's 13.42 report only mentions the export returning 0 in passing. System OpenPSID reuses the ordinary ID; firmware 13.42 reads a separatemachdep.openpsid_for_sysof unknown value. Null returns positive 22 per the module report. -
kldfind, kldfirstmod, kldnext and kldunload (libkernel_sys) follow FreeBSD 11.4's linker calls (sys/kern/kern_linker.c): kldfind validates the module name with CopyPath (EFAULT on null or unreadable pointers, ENAMETOOLONG for paths of 1024 bytes or more) and returns ENOENT for any module name; on FreeBSD the kernel itself is linker file 1, and AnyPS5 models an empty file list, so kldnext(0) returns 0 and kldfind("kernel") fails; kldnext returns ENOENT for negative or positive fileids; kldfirstmod returns ENOENT for any fileid; and kldunload returns EPERM as sandboxed/jailed titles lack PRIV_KLD_UNLOAD. Dynamic kernel linker module lookup and management remain unverified on hardware
-
kldload (libkernel_sys) follows FreeBSD 11.4's
kern_kldloadfor a jailed, non-root caller: the name is copied in first (EFAULTfor a null or unreadable pointer,ENAMETOOLONGat 1024 bytes), then the securelevel andPRIV_KLD_LOADchecks fail withEPERMbefore any search or open, so a missing file, an existing file and a file that is not an ELF module all giveEPERM. That a title runs jailed is taken fromprison_priv_check, which grants noPRIV_KLD_LOAD; it is not measured on a console -
kldstat (libkernel_sys) never succeeds: no linker file is listed here, as for
kldnext, so the kernel's own file (id 1 on FreeBSD) and the modules a console preloads are missing, every file id getsENOENTand the structure is never written. The checks before the lookup follow FreeBSD 11.4'ssys_kldstat: only theversionfield is read (EFAULTwhen it cannot be), and a version other than the size ofstruct kld_file_stat_1(1056 bytes on amd64) orstruct kld_file_stat(2080) getsEINVAL. Console behaviour is unverified -
kmq_open, kmq_unlink, kmq_setattr, kmq_timedsend and kmq_timedreceive (libkernel_sys) follow FreeBSD 11
uipc_mqueue.cwith each open queue on a descriptor reserved on the host null device and the names in a table of this process:modeis accepted without checking, the owner and permission checks are not modelled, the per-process queue count is not capped sokmq_opennever returnsENFILEwhere FreeBSD'skern.mqueue.maxmqlimits it to 100, a queue descriptor cannot be waited on withselect,pollorkevent, anddupof one does not give a queue -
fchown (libkernel_sys) - ownership is not modelled: the guest's own owner and group (0) and the unchanged value (-1) are accepted, a descriptor that is not open fails with
EBADF, and any other owner or group throws, naming it. The check reads the descriptor withfstat, ignoring the CRT's invalid-parameter handler on Windows asDescriptorControldoes. The console's ownership rules are unverified. Morrowind (mshivam019/morrowind-ps5) imports it -
chown, lchown and fchownat (libkernel_sys) - ownership is not modelled, as for
fchown: owner and group 0 and the unchanged value (-1) are accepted, and any other owner or group throws, naming it. The path is looked up first, as in FreeBSD 11'skern_fchownat, withstat, withlstatforlchown, and withfstatatforfchownat, so a lookup error is returned before the owner is checked and nothing is changed on the host.fchownatflags other thanAT_SYMLINK_NOFOLLOW(0x200) returnEINVAL, as in FreeBSD 11. The console's ownership rules are unverified -
linkat (libkernel_sys) resolves
AT_FDCWD(-100) and absolute paths aslinkdoes, and flags other thanAT_SYMLINK_FOLLOW(0x400) returnEINVAL, as in FreeBSD 11. Any other relative path is joined to the descriptor's host directory, found the same way as forfchdir, so guest path aliases and case-insensitive name matching do not apply to it, and a..component is not kept inside the guest root. It returnsEBADFfor a descriptor that is not open andENOTDIRfor one that is not a directory. WithoutAT_SYMLINK_FOLLOWa symbolic link as the source is linked itself, as in FreeBSD: on Linux and macOS through the host'slinkatwith flag 0, and on Windows throughCreateHardLinkW, which links the link's reparse point rather than its target, dangling or not. Windows cannot hard-link a directory, so there a symbolic link or junction to a directory as the source throws. Console behaviour is unverified -
pthread_set_defaultstacksize_np and scePthreadSetDefaultstacksize (libkernel_sys) set the stack size that
scePthreadAttrInitand a thread created without attributes use, as fpPS4'spthread_set_defaultstacksize_npdoes: a size of 16384 bytes or less fails withEINVAL(0x80020016from the sce form) and there is no upper limit, so a default the host cannot allocate fails only when a thread is created. Attributes initialised earlier keep their size. Not checked on a PS5 -
pthread_mutexattr_getgen_np, pthread_mutexattr_setgen_np, scePthreadMutexattrGetgen and scePthreadMutexattrSetgen (libkernel_sys) were reconstructed from the firmware 13.60 exports: generation is a one-bit attribute, set accepts only 0 or 1 and otherwise returns
EOPNOTSUPP, and thesceforms convert the POSIX error to0x80020000 | errno. The flag is retained in AnyPS5's attribute state; whether it changes mutex initialization is unmeasured. An unwritable generation pointer returnsEFAULT(14). Runtime behaviour on a PS5 is not independently validated -
sceKernelTitleWorkaroundIsEnabled2 (libkernel_sys) - what the 64-bit second argument means is unknown: PS5 firmware 13.42
system/common/lib/libkernel_sys.sprx(read from disassembly to the return, not measured on a console) only refuses a value of 0x29 or more, unsigned, withSCE_KERNEL_ERROR_EINVAL(0x80020016) and does not otherwise read it. Its other checks and the bit test are those ofsceKernelTitleWorkaroundIsEnabled, with a null workaround or output pointer checked first (0x8002000e), and it uses the same host-safety fallback for unreadable or unwritable pointers -
sceKernelGetProcessType (libkernel_sys) - measured in a PS5 payload process (firmware 11.60, 2026-11-06 22:10 UTC): pids 0 and 1 return
0x80020002, other unknown pids0x80020003, and we match both; the own pid and -1 return type 0 here (as in shadPS4) but 2 in the payload process, and a title process was not measured -
__sys_nanosleep (libkernel_sys) follows FreeBSD 11.4 libc's
nanosleep.cas the raw system call underneathnanosleep, executing without cancellation checks throughsceKernelNanosleepand mapping errors to errno and -1. It inherits libkernel's sleep limits:rmtpis never written,EINTRis not produced, seconds are capped atINT32_MAX / 2, short sleeps can wake early, and console behaviour is unverified. -
__sys_namedobj_delete (libkernel_sys) - not measured on a console. Deleting a live id with another type than it was created with throws: fpPS4 answers
ESRCH, RPCSX deletes it. Both compare the low 16 bits of the type and answerESRCHfor an id that is not live. Errors return -1 with errno, as FreeBSD 11.4's__sys_stubs do. -
__sys_namedobj_create (libkernel_sys) - not measured on a console; it follows the two sources of
__sys_namedobj_delete. It fails withEAGAINonce ids 1 to 65535 are live: RPCSX's bound and the 16 bits firmware 13.42's libkernel keeps for the id (#10385); fpPS4 goes on to0x7FFFFFFF, and the console's limit is unknown. Released ids are reused lowest first (RPCSX; fpPS4's order differs). The name (EINVALwhen null,ENAMETOOLONGfrom 32 characters,EFAULTwhen unreadable) and the object pointer are not kept, and libkernel's*_setnamecalls do not register here. -
sceKernelSettimeofday (libkernel_sys) - forwards to
settimeofdayand returns its result, or0x80020000pluserrnofor a failure, as shadPS4'ssceKernelSettimeofdaymaps its call throughErrnoToSceKernelError; that branch passes the call's return value, and shadPS4's ownsettimeofdaynever fails, so the errno form the other sce wrappers here use is taken. Nothing is measured on the console, and every call inheritssettimeofday'sEPERMafter the copy-ins, so it returns0x80020001unless a pointer is unreadable -
adjtime (libkernel_sys) assumes a jailed caller under the model agreed on #11216; console privileges and clock slewing are unverified. FreeBSD 11.4
sys_adjtime/kern_adjtimereadsdeltabefore checkingPRIV_ADJTIME, whichprison_priv_checkdenies. Every readable non-null delta returnsEPERMwithout writingoldDelta; bad input returnsEFAULTfirst. A null delta reports zero pending adjustment through checked copyout. Privileged unjailed callers and nonzero pending corrections are not modelled; the host clock is never adjusted. -
_dup2 (libkernel_sys) follows FreeBSD 11.4's _dup2 and POSIX.1-2008 dup2: it forwards to libkernel's dup2, returning the target descriptor or setting errno and returning -1 on failure. It inherits libkernel dup2's limits (duplicating kqueue/ksem descriptors, or moving guest sockets onto standard descriptors, throws) and console behaviour is unverified.
-
sceKernelGetThreadName (libkernel_sys) - joined-thread
ESRCHand leaving errno unchanged are unmeasured. Only this process's guest thread ids are resolvable; other-process ids returnESRCHhere, whereas the PS5 probe resolved them.scePthreadRenamefollows a console probe of it (firmware 13.590.001, payload process, its own thread): 31 bytes are accepted; 32 or more return0x8002003F(ENAMETOOLONG) and keep the previous name; an unreadable name pointer returnsEFAULT, and an invalid thread handle returnsESRCHbefore any name check. Measured there but not modelled: a NULL name succeeds and clears the name, and a NULL or invalid thread handle returnsESRCH; here both returnEINVAL, pinned byGuestPthreadGetname.cpp. A failed host allocation for the name copy returnsENOMEM. -
sceKernelGetGenuineProsperoSystemSwVersion (libkernel_sys) - forwards to
sceKernelGetProsperoSystemSwVersionto report the genuine system software version ("01.000.000",0x01000000). -
reboot (libkernel_sys) - console behaviour is not measured on a PS5. Assuming the guest runs in a jail, FreeBSD 11.4
sys_rebootchecksPRIV_REBOOT, absent from the jail grants inprison_priv_check; every option value therefore returnsEPERM(1), and no host operation is called. Sources:sys_rebootandprison_priv_check. -
sceKernelGetKqueueFromEqueue (libkernel_sys) - the descriptor is written with
GuestCopyOut; an unwritablekqreturnsEINVALlike a null one and preserveserrno. Firmware 13.42 writes through the pointer, so this is a host-safety fallback: console behaviour on unmapped memory is unmeasured.