docs(debt): record the address family titles pass to sceNetInetPton and sceNetInetNtop #12665
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12665"
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 xXPBSXx on 2026-10-29T00:54:30Z.
What
The
libSceNetdebt entry forsceNetInetPtonandsceNetInetNtopsays that, beyond the PS5 measurements in the entry above it, the IPv6 text conversion is unverified on a console. This adds how the 53 titles run here call the two exports: 36 titles callsceNetInetPtonat 107 call sites and 22 callsceNetInetNtopat 67, and every one of those call sites loads the family 2 (AF_INET) into the first argument. None loads 28 (AF_INET6) and none leaves the family undetermined, so the IPv6 text conversion that is unverified on a console is not reached by a direct call in those executables. The values come from FreeBSD 11.4sys/sys/socket.h(AF_INET2,AF_INET628), whichNET_AF_INETandNET_AF_INET6inExport.cppmatch.Changed: the one entry in
docs/dev/debt/libSceNet.md(one sentence added at its end). No code change. This is read from the instructions of each title's own executable, not measured: calls from the titles' library modules and through function pointers are not seen, and an import is not a call at run time.Method: for each import, the call sites that the relinker registry lists (the PLT stub) and every
callto that stub in the executable segment; the instructions before each call, read with binutilsobjdump, show the last write toedi. Tail jumps (ajmpto the stub instead of acall) are not counted. No bytes or listings are attached.Tested
tools/check_conventions.py --base upstream/mainpasses, andgit merge-treeagainstmain3a2b919816is clean.sceNetInetPtonand 67 in 22 forsceNetInetNtop, with 0 call sites for the constant 28, 0 for any other constant and 0 undetermined. The counting script was checked on hand-written instruction sequences (xor,movof 0, 1, 2 and 5, a register copy, a load from memory) and onsceKernelUsleep, where it finds the constants of 219 call sites in three titles. One call site (the first caller of thesceNetInetPtonstub in one title) was read by hand: the instruction before the call ismov $0x2,%edi.Overlap
11 open PRs change
docs/dev/debt/libSceNet.md; none of them changes the entry forsceNetInetPtonandsceNetInetNtopor the entry before it (git diff -U0of each against its merge base; #9578 adds two new entries, one for theWithScopeIdforms).git merge-treeof this head with each of them conflicts for two, #9932 and #5836, and both already conflict withmainon their own, so no real pair conflict remains. #10162 (merged) records how two titles call libkernel'sinet_ptoninlibkernel.md; this entry is a different export and a different file.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)AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T00:58:19Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The documentation diff is clean and based on current
main, but the new 53-title call-site counts are not independently reviewable without the survey output or a compact per-title report.What I ran
Exact head:
c1ec0f19d6d8bc318c3a350bde0f32b1e0a66c08; base:3a2b91981651569163768854a1fcdc7193b6667b. The merge preview is clean. This is a documentation-only change; no compiler or operating-system environment was applicable.Results
git diff --checkRaw command output
Negative control
Not applicable: this PR changes documentation and adds no executable assertion or test.
Findings
Blocking
sceNetInetPtoncall sites across 36 titles and 67sceNetInetNtopcall sites across 22 titles, then derives that no direct call in those executables reaches the IPv6 conversion. The PR body describes a recount but says no bytes or listings are attached, so a reviewer cannot check the per-title counts, family-argument classification, or exclusions. Please attach a compact per-title result (title ID, call-site count, and family classification) and the recount output or script, including how tail jumps and unresolved data-flow cases are treated. Keep the stated limitations about libraries and function pointers; those are outside the claimed executable-only survey.Non-blocking
Sources
Not verified
I did not rerun the title-binary survey, inspect all 53 executables, validate each disassembly classification, or test title library modules or calls through function pointers. Product build and runtime tests were not run because the change is documentation-only.
To get this to a good state
Attach the compact survey evidence and recount output, then I can verify the new figures and classification against the report and rerun the checks above on the updated head.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-29T01:22:26Z.
Review: DISMISSED
Same point as @MarcZX10's review on this head: the figures added at the end of the
sceNetInetPton, sceNetInetNtopentry (107 sites in 36 titles, 67 in 22, all with family 2, none undetermined) can't be checked from the PR. The body says no bytes or listings are attached.docs/dev/debt/libSceNet.md:69: please attach to the PR (not the repo) a compact per-title result (title ID, call-site count, family classification per site, address) and the recount script with its output, including how tail jumps and unresolvededidata flow were treated. Keep the stated limits (library modules, function pointers).With that attached the sentence can be checked and merged; the rest of the diff is fine (conventions green, merge clean).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T05:29:59Z.
Review: APPROVED
Re-checked — approved
The author supplied the requested per-title counts, per-call-site classifications and addresses, recount script, method details, and stricter-classifier results. My previous evidence request is resolved. This approval is for the documentation-only change and its explicitly limited executable-call survey.
What I ran
c1ec0f19d6against current main52c09d567d.Results
Negative control
Not applicable: the PR changes only a debt-documentation sentence and adds no executable behavior.
Findings
No blocking issue remains in this documentation diff. The new report provides the per-title and per-site-address evidence, recount script, strict handling of ambiguous register writes/control flow, and the limits of the survey. The debt claim remains explicitly scoped to direct calls found in title executables; it does not claim coverage of title libraries, function pointers, or runtime imports.
Sources
Not verified
To get this to a good state
No further change is required for this review. Keep the stated executable-only scope and survey limitations with the debt entry.
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-29T07:07:17Z.
Review: APPROVED
Reviewed
c1ec0f19d6d8bc318c3a350bde0f32b1e0a66c08against3a2b91981651569163768854a1fcdc7193b6667b. The linked libSceNet implementation delegates IPv6 conversion to libkernel while keeping IPv4 host conversion and its own argument checks. The direct-call census explicitly excludes library and indirect calls and does not turn absent observed IPv6 calls into console conformance. No actionable finding in the documentation change.Validation: inspected the changed wording and relevant pinned source; relative source links and git diff --check pass. Documentation-only validation: no runtime behavior changed. Author-reported title inventories, console/emulator observations and macOS/physical-GPU measurements were not independently reproduced; this review does not certify those measurements.