Repository navigation
fix(libkernel): report the sysctl system strings and integers a PS5 reports - #10132
adriadam10 merged 7 commits into
Conversation
…eports Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…system-measured-ps5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…system-measured-ps5
MarcZX10
left a comment
There was a problem hiding this comment.
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.cpp and conflicts with this head in that file; #8910 changes the unknown-name handling and conflicts in the same libkernel.md debt 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, add Depends on if another PR must land first, then refresh and rerun overlap/convention checks. Hosted policy checks pass; product jobs are skipped by the workflow.
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
@MarcZX10 @Retr0G28 @DoubleAAGuy @KernelPanicNT This PR, #9794, #8910 and #9199 touch the same sysctl debt entry (and #9794 |
Main now returns ENOENT for unknown sysctlbyname and sysctlnametomib names, so the absent-names debt entry no longer says they throw and keeps main's unknown-names entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested head
AI-assisted: yes (Claude Code); results above were run on this machine. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dismissing a stale review: the requested changes were addressed after it (new head) and the merge queue blocks on it. Please request changes again if anything is still open.
|
Checked the new strings and integers against the 13.60 |
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.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)