fix(libkernel): report the sysctl system strings and integers a PS5 reports #10132
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10132"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by orezraey on 2026-10-23T10:35:26Z.
What
System
sysctlstrings and integers measured on a retail PS5 (firmware 13.60) with a homebrew probe, called from a payload process both by name and by MIB. The source and console log are in this gist (sysinfo).kern.osrelease(1.2)"0.0-prototype""11.4-RELEASE"kern.hostname(1.10)""(1 byte)"AnyPS5"hw.model(6.2)"100-000001020"padded with spaces to 47 characterskern.osreldate(1.24)kern.osrevision(1.3)kern.argmax(1.8)kern.ngroups(1.18)kern.bootfile,kern.ident,hw.floatingpoint,kern.cp_timeENOENTThese already matched:
kern.ostype("FreeBSD"),hw.machine("amd64") andhw.pagesize(4 bytes, 16384);ENOENTnames (hw.byteorder,hw.machine_arch,kern.maxfiles,kern.maxfilesperproc,kern.maxproc,hw.physmem);ENOMEM;sceKernelGetAllowedSdkVersionOnSystem: it read0x13600fff(the firmware with the 12 low bits set, the same shape as AnyPS5's0x01000ffffor its own version), and a null pointer returnedEINVAL(0x80020016).hw.modelno longer depends on the host CPU, so its test now runs on every host.gethostnamestill returnsAnyPS5until #10128, which measures and returns the same empty name; this PR does not depend on it.Not changed: the console's
kern.versionwas"r229358/releases/13.60 Jul 17 2026 02:16:29". It names the firmware build, which AnyPS5 does not model (it reports system software 01.000.000 elsewhere), so the FreeBSD 11.4 string stays. The debt entry records the measured text.hw.ncpuread 16, and AnyPS5 keeps reporting the host's processor count.Tested
Windows 11, MinGW (winlibs).
guest_system_configurationchecks every string above by MIB and by name, including a buffer one byte short, which now uses each string's own length.ENOENTnames.mainand passes three runs in a row with the change, as doeshost_cpu.db07b6737d(main merged in after #11170 and #11182; the libkernel debt file keeps #11170's unknown-names entry and this PR's three entries),guest_system_configurationandguest_getrlimitpass three runs in a row on Windows (MinGW) and on Linux (WSL Ubuntu, GCC).tools/check_conventions.pypasses.tools/pr_overlap.py:kern.boottime) touches the include block ofSystemConfiguration.cpp, from which this PR removes theHostCpu.hppinclude;Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T10:50:22Z.
Review: DISMISSED
The firmware 13.60 probe log supports the new sysctl strings/integers, MIBs, lengths, and ENOENT cases, and the test updates cover by-name and by-MIB access plus short buffers. GCC 12.2 syntax checks for the implementation and test passed; conventions, diff-check, and current-main sync pass (4 ahead/29 behind; merge clean). The author reports three repeated Windows runs and a main control. Please coordinate integration before approval: current PR #9794 changes
SystemConfiguration.cppand conflicts with this head in that file; #8910 changes the unknown-name handling and conflicts in the samelibkernel.mddebt entry; #9199 also conflicts in that debt file. These are open PRs, and pairwise merge-tree checks confirm the conflicts. Agree on landing order, preserve all measured results, addDepends onif another PR must land first, then refresh and rerun overlap/convention checks. Hosted policy checks pass; product jobs are skipped by the workflow.