docs(debt): cite firmware 10.01 kernel data for four libkernel entries #9199
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9199"
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 KernelPanicNT on 2026-10-21T15:05:48Z.
What
Four libkernel debt entries say a value is unmeasured or unknown. This PR records what the firmware 10.01 kernel data holds for them. No code changes, because nothing AnyPS5 returns today contradicts that data.
Source of the behaviour. The source is a snapshot of the kernel
.data/.rodataof a running PS5 on firmware 10.01:kern.versionisr219814/releases/10.01 Sep 18 2024 20:36:55and file offset 0 is VA0xffffffff82510000. The snapshot is of my own console. It is not attached and cannot be shared, because it holds a private kernel message log. Reviewers cannot fetch it, so every value below comes with its offset for anyone who has a 10.01 kernel data dump. The snapshot has no kernel code. It shows only what the tables and constants hold, not what any handler does. Itskern.osreleasestring is0.0-prototype.mainhw.pagesizehw, kind0x80048002(RD, CAPRD, MPSAFE, INT), arg1 NULL, arg2 16384: the FreeBSD 11.4SYSCTL_INTwithPAGE_SIZE= 16384kern.sdk_version0x01000000; debt: "the low two bytes are unknown"kern, kind0x80048006(RD, CAPRD, MPSAFE, UINT), arg20x10010000. 10.01 encodes as0x1001in the high bytes and 0 in the low twovm.overcommitENOENTvmwith a number the console kernel auto-assigned, kind0xc0040002(RD, WR, MPSAFE, INT), and its variable at +0x1f52110 held 0. FreeBSD'svm.overcommitis the same read-writeintwith the fixed numberVM_OVERCOMMITphyshm_open,physhm_unlinksysentat +0x1ad100, names at +0x1764f80), syscall 629 isphyshm_openwithsy_narg4 (+0x1b46f0) and syscall 630 isphyshm_unlinkwith 1 (+0x1b4720)The entries keep what is still unknown:
hw.pagesizeandkern.sdk_versionreturnEPERM; this was not tried on a console.vm.overcommitdifference between 10.01 and a 12.70 payload process stays open.kern.sdk_versionby MIB {1, 46} still throws: no title is known to ask for it.The entries also change in two smaller ways:
hw.pagesizelink pointed to FreeBSDmain(#L177, a line that has moved since). It now points to the 11.4 release commit used elsewhere in this file.Tested
Not tested: this PR changes documentation only.
Checks:
python3 tools/check_conventions.py --base origin/mainpasses ("All conventions checks passed.").python3 tools/pr_overlap.py --branch docs/libkernel-kdata-fw1001reports one text conflict: #8910 rewrites thelibkernel.mdentry just abovehw.pagesize, so whichever merges second needs a one-line rebase. It could not compare 22 pull requests that conflict withmainand sharelibkernel.md; checked by hand, none of their changed lines mentionphyshm,vm.overcommit,kern.sdk_versionorhw.pagesize.Checklist
main(cecb540a6); 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 DoubleAAGuy on 2026-10-21T15:53:58Z.
Hi KernelPanicNT, the overlap check on #8910 reports a debt-line overlap with #9199 in libkernel.md. I reviewed the diffs: #9199 updates firmware data for vm.overcommit, kern.sdk_version and hw.pagesize; #8910 documents unknown sysctl name lookup, so there is no behavior overlap, but the docs hunk may need a rebase. Which order would you prefer? I can rebase #8910 after #9199 if you would like your documentation change to land first.
Imported from boykopovar/AnyPS5. Originally posted by KernelPanicNT on 2026-10-21T19:03:19Z.
Thanks for checking the diffs so carefully, and for asking! I agree, there's no behaviour overlap, just neighbouring lines in
libkernel.md. I don't mind the order at all: if #8910 is ready, go ahead, and I'll rebase #9199 on top of it. No need to wait for mine.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T12:06:06Z.
Review: APPROVED
Reviewed
71973aa772d8cb1816f30de59aa6232fd47fc690against author merge based13b3d7c55a433c7a5040076d849dbe59fad4b53— approve the documentation change.The host-side distinctions match the referenced source: physhm exports still throw, vm.overcommit reads the host’s modeled zero, sdk_version remains synthetic, and pagesize uses MIB {6,7}. The firmware-10.01 offsets and syscall argument counts are documented as snapshot observations, with libkernel passthrough and title-process behavior still qualified. I did not independently inspect that console snapshot.
Validation: inspected the Markdown diff and pinned source references; relative links resolve and
git diff --checkpassed. This is documentation/source consistency review. Title disassembly, console snapshots and hardware measurements were not independently reproduced; no runtime regression result is claimed.Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:48:09Z.
Review: COMMENTED
Read
355d421183againstmain.Correctness. The code agrees with the new text.
SystemConfiguration.cpp:sysctlbyname_nid_postfixreturns 0 (4 bytes) forvm.overcommit(line 631) and0x01000000forkern.sdk_version(line 639), and both writes fail with EPERM.sysctlnametomib_nid_postfix(line 792) has nokern.sdk_versionentry, so it falls through to ENOENT, and no MIB {1, 46} branch exists insysctl_nid_postfix, so it ends in the "unsupported MIB" throw.hw.pagesizemaps to {6, 7} (lines 687 and 803) and its write returns EPERM.Unimplemented.cpp:9-15still declaresphyshm_openandphyshm_unlinkwith(void)and throws. The FreeBSD links resolve:kern_mib.c#L151-L152is thehw.pagesizeSYSCTL_INTandswap_pager.c#L158-L161isvm.overcommit. The firmware 10.01 kernel-data offsets and syscall numbers cannot be checked from the tree.Non-blocking. The
vm.overcommittext says FreeBSD's entry "has an OID_AUTO number", but the citedswap_pager.cline declares it withVM_OVERCOMMIT. Say that the console kernel's number is auto-assigned, as the kernel data shows, so the sentence does not read as a property of the linked source. GitHub reports the PR as conflicting withmaininlibkernel.md; it needs a rebase.Not run here; this is from reading the code.
AI-assisted: yes.