4.4 KiB
libSceSystemLogger2 technical debt
Functional
-
validateEvent, validateEventEx and validateEventEx2 (libSceSystemLogger2) - the five
sceSystemLogger2Set*EventAsyncentry points still read theeventrecord, and the entry name/language pointers it embeds, with raw host dereferences (memcmp,memcpy,strnlen) instead ofGuestCopyIn_nid_no_patch/CopyGuestString_nid_no_patch; an unmapped or partially-mappedeventstill crashes the host instead of returning0x818C0002. Fixing this needs the record and its embedded pointers copied in bounded pieces rather than read in place, which is a larger, separate change. -
sceSystemLogger2GetTimestamp, sceSystemLogger2GetEventStatus and sceSystemLogger2SetEventAsyncInternal (libSceSystemLogger2) - the console's answer for an unwritable
timestamporstatusoutput, or an unreadable event name, is not measured. As a host-safety fallback these calls returnINVALID_ARGUMENT(0x818C0002) for such a pointer, keeping the caller'serrnoand writing nothing.
Silent stubs
- sceSystemLogger2Terminate (libSceSystemLogger2) - returns 0 and leaves the initialized flag alone, because the fw 13.40 export is a bare
xor %eax,%eax; ret. OnlysceSystemLogger2TerminateWithResourceReleasestops the logger.
Console service
- libSceSystemLogger2 source (libSceSystemLogger2) - read from the fw 13.40 module (SHA-256
934AE1CDDE8BC66200EF2891923C53684B70D5BEB600744774A73A190C347485), not run against the console logger. The logger daemon and its monitor singleton are absent, sosceSystemLogger2IsAvailableMonitorreturns0x818C000Eafter the native argument checks andsceSystemLogger2GetEventStatusreturns the same code (an inference).sceSystemLogger2Initializeonly sets the initialized flag: the native0x818C0003allocation failure and its subsystem probe are not reproduced.sceSystemLogger2GetTimestampalways reportsnetworkClockwith the wall clock in microseconds since 0001-01-01; thesecureClockandNONEfallbacks are unreachable here. - Event submission (libSceSystemLogger2) - the five
sceSystemLogger2Set*EventAsyncentry points validate the event record as 13.40 does and then return0x818C000E; nothing is delivered, queued or written to the console's IPMI client. The checks are the string at+0x00(and+0xD0,+0x168or+0x4D0) shorter than0x81bytes, the clock source at+0x90equal tonetworkClock,secureClockorNONE, the entry count at+0xB8at most 4, entry names at+0xD0with stride0x28at most0x23bytes, entry languages at+0xD8at most 2 bytes, the detail string at+0xCCat most0x400bytes, and the RNPS token at+0x158non-null. Rejected records return0x818C0002, calls beforeInitializereturn0x818C0004;SetEventAsyncInternalzeroes its status word once the record is accepted. Whether a title needs delivery, and what the daemon returns when the console queue is full, remain unmeasured. - Event record guest pointers (libSceSystemLogger2) - event validation now copies the clock source, record fields, inline names and RNPS token from guest memory rather than dereferencing them directly;
SetEventAsyncExalso safely reads the embedded entry name and language pointers. An unreadable record, name or language returns0x818C0002without dereferencing inaccessible host memory, while preservingerrnoand leavingSetEventAsyncInternal's output untouched. This is a host-safety fallback: firmware behavior for invalid or partially mapped guest pointers was not measured on a console.
Unknown function info
- Additional callable exports - 3 entries of the 3.20 export inventory, also present in the 13.40 module, are import-resolution declarations only. Parameter lists, return types and behaviour are unverified; the parameterless
intdeclarations are placeholders, not ABI contracts, and every entry throws throughNotImplemented_nid_no_patch. Unidentified names use literal NID aliases.
| Name | NID |
|---|---|
Unknown |
PcjxaaFQATU |
Unknown |
UI7zoVuRjdU |
Unknown |
eI4wpp+8Bco |