docs(libSceRudp): record FW 10.71 ABI from console disassembly #13844

Closed
ntamas94 wants to merge 1 commit from upstream-pr/13844 into main
ntamas94 commented 2026-10-31 09:13:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ntamas94 on 2026-10-31T09:13:22Z.


What

Record firmware 10.71 (PS4) libSceRudp findings in its technical-debt file, from static disassembly of the console's own libSceRudp.sprx in a FW 10.71 dump (no console run):

  • sceRudpAccept, sceRudpGetLocalInfo, sceRudpListen, sceRudpFlush — establishes the argument counts the existing entry noted were not established: six, six, two (int ctxId, int backlog, rejecting backlog <= 0) and one respectively, each with a leading signed-int context id that returns RUDP_ERROR_INVALID_ARGUMENT (0x80770004) when negative. The pointer/length split of the trailing arguments is not recoverable from the prologue.
  • sceRudpGetContextStatus — new entry: confirms the (int ctxId, void *status, uint32_t size) signature, and the console validates a negative id, a null status, and a size outside 1 to 0x30 with RUDP_ERROR_INVALID_ARGUMENT before the context lookup (RUDP_ERROR_NOT_INITIALIZED before sceRudpInit). The current implementation is more permissive and returns RUDP_ERROR_INVALID_CONTEXT_ID for a negative id, missing the ctxId < 0 guard sceRudpGetNumberOfPacketsToRead already has. The 0x30-byte status block is not yet mapped and is smaller than sceRudpGetStatus's 0xF8-byte one.
  • sceRudpGetContextBufferStatus — its 13.60 NID KvNtKQLDgVk is absent from the FW 10.71 export table, so the export is PS5-era and did not exist on PS4 10.71.

Docs only, no code change. The sceRudpGetContextStatus implementation divergence is documented, not fixed (follow-up if wanted). Addresses the request in #13682; the live 0x30 status layout is still unmeasured, so this does not fully close it.

Tested

Not tested on hardware. Static disassembly of the FW 10.71 dump's libSceRudp.sprx (SysV AMD64 prologue analysis); the argument counts of sceRudpGetRemoteInfo independently match its existing 4-argument declaration in Export.cpp. Docs-only change; builds unaffected.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt — n/a, docs only
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs — n/a, docs only
  • No notes, investigation .md files or images added to the repository — edits an existing debt file only
  • New third-party code is a submodule built from source — n/a
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5096220182 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13844). Originally posted by [ntamas94](https://github.com/ntamas94) on 2026-10-31T09:13:22Z. --- ### What Record firmware 10.71 (PS4) `libSceRudp` findings in its technical-debt file, from static disassembly of the console's own `libSceRudp.sprx` in a FW 10.71 dump (no console run): - **`sceRudpAccept`, `sceRudpGetLocalInfo`, `sceRudpListen`, `sceRudpFlush`** — establishes the argument counts the existing entry noted were not established: six, six, two (`int ctxId, int backlog`, rejecting `backlog <= 0`) and one respectively, each with a leading signed-`int` context id that returns `RUDP_ERROR_INVALID_ARGUMENT` (`0x80770004`) when negative. The pointer/length split of the trailing arguments is not recoverable from the prologue. - **`sceRudpGetContextStatus`** — new entry: confirms the `(int ctxId, void *status, uint32_t size)` signature, and the console validates a negative id, a null `status`, and a `size` outside 1 to 0x30 with `RUDP_ERROR_INVALID_ARGUMENT` before the context lookup (`RUDP_ERROR_NOT_INITIALIZED` before `sceRudpInit`). The current implementation is more permissive and returns `RUDP_ERROR_INVALID_CONTEXT_ID` for a negative id, missing the `ctxId < 0` guard `sceRudpGetNumberOfPacketsToRead` already has. The 0x30-byte status block is not yet mapped and is smaller than `sceRudpGetStatus`'s 0xF8-byte one. - **`sceRudpGetContextBufferStatus`** — its 13.60 NID `KvNtKQLDgVk` is absent from the FW 10.71 export table, so the export is PS5-era and did not exist on PS4 10.71. Docs only, no code change. The `sceRudpGetContextStatus` implementation divergence is documented, not fixed (follow-up if wanted). Addresses the request in #13682; the live 0x30 status layout is still unmeasured, so this does not fully close it. ### Tested Not tested on hardware. Static disassembly of the FW 10.71 dump's `libSceRudp.sprx` (SysV AMD64 prologue analysis); the argument counts of `sceRudpGetRemoteInfo` independently match its existing 4-argument declaration in `Export.cpp`. Docs-only change; builds unaffected. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt — n/a, docs only - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs — n/a, docs only - [x] No notes, investigation `.md` files or images added to the repository — edits an existing debt file only - [x] New third-party code is a submodule built from source — n/a - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-31 09:23:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T09:23:30Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The disassembly supports the firmware 10.71 observations, but absence from that single PS4 export table does not establish that sceRudpGetContextBufferStatus is PS5-era.

What I ran

Reviewed head 9895ac94fecb4b93bd82520ade014bbd97a30498. GitHub reports PR base 809c7fa2dfb1b21e2b31b3114b7d51bc14ee88ab; fresh checks and the clean merge preview used current main at beb7ce3c4a5ff81765d438e523b1dd386d947dc8. Environment: Linux x86_64, Python 3.11.2, Git 2.39.5; this documentation-only change does not require a build.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13844 --no-negative-controls --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13844
git diff --check refs/remotes/upstream/main...refs/remotes/upstream/pr-13844
python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/remotes/upstream/pr-13844 --title 'docs(libSceRudp): record FW 10.71 ABI from console disassembly' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13844/pr-body.md
git merge-tree --write-tree refs/remotes/upstream/main refs/remotes/upstream/pr-13844
gh issue view 13682 --repo boykopovar/AnyPS5 --comments --json title,body,comments,state,url

Results

Check Result
Diff check and conventions Passed against current main.
Merge preview Clean against current main.
Linked issue evidence Read #13682: its comments describe static FW 10.71 disassembly and separately report an FW 13.42 emulator probe; neither is a live console run.
NID inventory Confirmed the 13.60 inventory row maps KvNtKQLDgVk to sceRudpGetContextBufferStatus, with signature status unknown.
No-build precheck Diff, conventions/template, ABI applicability, and mergeability passed. Its test-quality row could not run because the isolated checkout lacks the local-only helper; no test-quality check applies to this docs-only diff.
Hosted CI Eligibility, conventions, intake, and labels passed; build/relinker and specialized jobs were skipped for the documentation-only change.
Selected unedited command output

Conventions:

All conventions checks passed.

Merge preview:

aaa3acaa106eba3ce35a847f5cf8233cc9463674

13.60 inventory row:

{"firmware_13_60_export_confirmed":true,"firmware_versions":["13.60"],"kind":"defined_function_export","library":"libSceRudp","name":"sceRudpGetContextBufferStatus","name_status":"verified_nid_binding","nid":"KvNtKQLDgVk","scope":"existing_firmware_system_library","signature_status":"unknown","source_evidence":["firmware_export_table","verified_nid_name_map"],"stub_assessment":"throwing_stub_candidate_validation_required"}

Findings

Blocking

The debt entry says the export “did not exist on PS4 10.71 and is PS5-era.” The evidence described here establishes presence in the PS5 13.60 inventory and absence from the PS4 10.71 export table; it does not establish the export's first firmware or rule out a later PS4 release. Please narrow the wording to those two observed facts and say the introduction firmware is unknown, or provide evidence covering the broader claim.

Suggested wording:

The NID is present in the PS5 13.60 export inventory and absent from the PS4 10.71 export table; its first firmware is unknown.

Non-blocking

The remaining 10.71 argument-count and sceRudpGetContextStatus checks are consistent with the PR description and the linked issue reports. The 0x30-byte live status layout remains explicitly unmeasured, as the PR states.

Sources

Not verified

No independent disassembly of the FW 10.71 module was performed in this review. The issue's FW 13.42 emulator probe is author-reported, not a console run. No code build or runtime test was run; neither applies to this documentation-only diff.

To get this to a good state

Please narrow the platform-era claim to the verified firmware snapshots or provide evidence for the broader claim. I will rerun the same documentation checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5722150106 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13844#pullrequestreview-5722150106). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T09:23:30Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The disassembly supports the firmware 10.71 observations, but absence from that single PS4 export table does not establish that `sceRudpGetContextBufferStatus` is PS5-era. ## What I ran Reviewed head `9895ac94fecb4b93bd82520ade014bbd97a30498`. GitHub reports PR base `809c7fa2dfb1b21e2b31b3114b7d51bc14ee88ab`; fresh checks and the clean merge preview used current `main` at `beb7ce3c4a5ff81765d438e523b1dd386d947dc8`. Environment: Linux x86_64, Python 3.11.2, Git 2.39.5; this documentation-only change does not require a build. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13844 --no-negative-controls --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13844 git diff --check refs/remotes/upstream/main...refs/remotes/upstream/pr-13844 python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/remotes/upstream/pr-13844 --title 'docs(libSceRudp): record FW 10.71 ABI from console disassembly' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13844/pr-body.md git merge-tree --write-tree refs/remotes/upstream/main refs/remotes/upstream/pr-13844 gh issue view 13682 --repo boykopovar/AnyPS5 --comments --json title,body,comments,state,url ``` ## Results | Check | Result | |---|---| | Diff check and conventions | Passed against current `main`. | | Merge preview | Clean against current `main`. | | Linked issue evidence | Read #13682: its comments describe static FW 10.71 disassembly and separately report an FW 13.42 emulator probe; neither is a live console run. | | NID inventory | Confirmed the 13.60 inventory row maps `KvNtKQLDgVk` to `sceRudpGetContextBufferStatus`, with signature status unknown. | | No-build precheck | Diff, conventions/template, ABI applicability, and mergeability passed. Its test-quality row could not run because the isolated checkout lacks the local-only helper; no test-quality check applies to this docs-only diff. | | Hosted CI | Eligibility, conventions, intake, and labels passed; build/relinker and specialized jobs were skipped for the documentation-only change. | <details><summary>Selected unedited command output</summary> Conventions: ```text All conventions checks passed. ``` Merge preview: ```text aaa3acaa106eba3ce35a847f5cf8233cc9463674 ``` 13.60 inventory row: ```json {"firmware_13_60_export_confirmed":true,"firmware_versions":["13.60"],"kind":"defined_function_export","library":"libSceRudp","name":"sceRudpGetContextBufferStatus","name_status":"verified_nid_binding","nid":"KvNtKQLDgVk","scope":"existing_firmware_system_library","signature_status":"unknown","source_evidence":["firmware_export_table","verified_nid_name_map"],"stub_assessment":"throwing_stub_candidate_validation_required"} ``` </details> ## Findings ### Blocking The debt entry says the export “did not exist on PS4 10.71 and is PS5-era.” The evidence described here establishes presence in the PS5 13.60 inventory and absence from the PS4 10.71 export table; it does not establish the export's first firmware or rule out a later PS4 release. Please narrow the wording to those two observed facts and say the introduction firmware is unknown, or provide evidence covering the broader claim. Suggested wording: ```suggestion The NID is present in the PS5 13.60 export inventory and absent from the PS4 10.71 export table; its first firmware is unknown. ``` ### Non-blocking The remaining 10.71 argument-count and `sceRudpGetContextStatus` checks are consistent with the PR description and the linked issue reports. The 0x30-byte live status layout remains explicitly unmeasured, as the PR states. ## Sources - [Changed technical-debt entry at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/9895ac94fecb4b93bd82520ade014bbd97a30498/docs/dev/debt/libSceRudp.md) - [FW 13.60 export inventory at pinned commit](https://github.com/xdCloudy/PS5-13.60-Function-Stub-Library/blob/bfec40deb4c47a17d7603ee2bc79aa6862c0c56b/data/firmware-13.60/libscerudp-733f5190bf.jsonl) - [FW 10.71 findings and probe notes in AnyPS5#13682](https://github.com/boykopovar/AnyPS5/issues/13682#issuecomment-6541579780) ## Not verified No independent disassembly of the FW 10.71 module was performed in this review. The issue's FW 13.42 emulator probe is author-reported, not a console run. No code build or runtime test was run; neither applies to this documentation-only diff. ## To get this to a good state Please narrow the platform-era claim to the verified firmware snapshots or provide evidence for the broader claim. I will rerun the same documentation checks on the updated head.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!13844
No description provided.