mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 00:50:52 +00:00
* fix(libkernel): hide vm.overcommit like the console * test(libkernel): pin vm.overcommit as absent * test(libkernel): cover vm.overcommit ENOENT * docs(libkernel): align vm.overcommit with PS5 measurements * docs(libkernel): keep measured memory-node debt concise
1.5 KiB
1.5 KiB
libkernel
change [hw.realmem]
- hw.realmem (libkernel) -
sysctl{CTL_HW, 12} andsysctlbynamereport the same 8-byte value ashw.physmem(the guest physical-page count times 16 KiB), read-only withEPERMfor a write andENOMEMfor a short buffer. Payload processes on PS5 firmware 12.70 and a PS5 Pro on 13.60 instead returnedENOENTfor reads and size queries of bothhw.physmemandhw.realmem; the 13.60 write probe returnedEPERM, so the kernel reaches permission checking even though reads cannot resolve the node.hw.usermem64also returnedENOENT. Title-process behavior was not measured. Dolphin readshw.realmemas machine memory in RetroArch'sdolphin_libretrocore.
change [vm.overcommit]
- vm.overcommit (libkernel) -
sysctlbynamereturns -1 withENOENTwithout changing the caller buffer or length for reads, size queries, a null length and writes. A payload process on a PS5 (firmware 12.70) measured the read, size-query and null-length cases; a PS5 Pro payload process (13.60) reproduced them and measured the write asENOENTtoo.sysctlnametomibalso returnsENOENT. A title process was not measured. Firmware 10.01 kernel data contains a read-write node holding 0, so the missing name appears to be process/namespace visibility rather than absence from the kernel. PS5MC (PPSA99420) probes the name in mimalloc's overcommit detection.