mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 00:50:52 +00:00
2.6 KiB
2.6 KiB
libkernel
change [hw.realmem]
- hw.realmem (libkernel) -
sysctl{CTL_HW, 12} andsysctlbynamereport the same 8-byte value ashw.physmem(the_SC_PHYS_PAGESpages of 16 KiB), read-only withEPERMfor a write andENOMEMfor a short buffer, as FreeBSD'ssysctl_hw_realmemdoes. FreeBSD reports there the memory the firmware describes, which is at leasthw.physmem. A payload process on a PS5 (firmware 12.70) gets -1 withENOENTforhw.physmemandhw.realmem(a read, a size query and a null length) and for {CTL_HW, 5} and {CTL_HW, 12} (a read and a size query); a PS5 Pro payload process (13.60) reproduced everyENOENTand added the write answer: -1 withEPERMfor an 8-byte new value on both nodes, so the kernel reaches the permission check where the read lookup fails;hw.usermem64({CTL_HW, 13}) readsENOENTtoo. What a title process gets was not measured. Dolphin reads it as the machine's memory size inMemPhysical(RetroArch PPSA99169'sdolphin_libretrocore)
change [vm.overcommit]
- vm.overcommit (libkernel) - a payload process on a PS5 (firmware 12.70) gets -1 with
ENOENTfor a read, a size query and a null length, butsysctlbynamehere reports the 4-byte value 0, withENOMEMfor a short buffer; a title process was not measured. A write fails withEPERM: the node has noCTLFLAG_PRISON, sosysctl_rootneedsPRIV_SYSCTL_WRITE, whichprison_priv_checkdenies a jailed root (model agreed on #11216, not measured). A PS5 Pro payload process (13.60) reproduced -1ENOENTfor read, size query and null length, and itssysctlbynamewrite with a 4-byte new value also answered -1 withENOENT, not the predictedEPERM(a write to {CTL_HW, 12} in the same session did answerEPERM). In firmware 10.01 kernel data (offsets from VA 0xffffffff82510000) the node is read-write, holds 0 (+0x1f52110) and has an auto-assigned number (+0xdaea28), not FreeBSD'sVM_OVERCOMMIT. PS5MC (PPSA99420) reads it at start-up in mimalloc'sunix_detect_overcommit, taking 0 as no overcommit