feat(libSceNet): track sceNetSetDnsInfoToKernel gap and test throw #12455

Merged
jagrat04 merged 1 commit from upstream-pr/12455 into main 2026-10-29 13:39:51 +00:00
jagrat04 commented 2026-10-28 14:23:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-28T14:23:45Z.


What

Record the technical debt for sceNetSetDnsInfoToKernel and sceNetSetDns6InfoToKernel in docs/dev/debt/libSceNet.md and add regression tests in GuestNetDnsInfo.cpp to verify both throw through NotImplemented_nid_no_patch.

Tested

Ubuntu 22.04 (WSL2), x86_64:

  • guest_net_dns_info_tests -> passed (1/1 tests passed)
  • python tools/check_conventions.py --base origin/main -> All conventions checks passed

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
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • 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:5052129741 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12455). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-10-28T14:23:45Z. --- ### What Record the technical debt for sceNetSetDnsInfoToKernel and sceNetSetDns6InfoToKernel in docs/dev/debt/libSceNet.md and add regression tests in GuestNetDnsInfo.cpp to verify both throw through NotImplemented_nid_no_patch. ### Tested Ubuntu 22.04 (WSL2), x86_64: - guest_net_dns_info_tests -> passed (1/1 tests passed) - python tools/check_conventions.py --base origin/main -> All conventions checks passed ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation .md files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [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
adriadam10 commented 2026-10-28 14:27:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-28T14:27:22Z.

Review: CHANGES_REQUESTED


Thanks for the PR. Blocking point:

  • core/libs/prx/libSceNet/Export.cpp:2848 and :2965 forward ...ToKernel to sceNetSetDnsInfo/sceNetSetDns6Info, but no source says these are the same operation. shadPS4 only has a parameterless stub (net.cpp:2324), and KytyPS5/fpPS4 have no body. A function named "ToKernel" pushing the servers into the kernel resolver is not obviously the same as the process-local override. The (info, flags) signature is also not backed by any reference. Aliasing it returns a plausible success where main threw, which is the "exact or throw" case.
  • The tests (GuestNetDnsInfo.cpp) only check that the new exports return what the existing setters return, so they cannot show the behaviour is right.

What would fix it: cite a source (firmware probe, disassembly, a reference with a body) for the semantics and signature, and record anything inferred in docs/dev/debt/libSceNet.md. Without one, keep these two throwing.
Also, the Tested section has ? characters where arrows were meant.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5684275581 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12455#pullrequestreview-5684275581). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-28T14:27:22Z. **Review:** CHANGES_REQUESTED --- Thanks for the PR. Blocking point: - `core/libs/prx/libSceNet/Export.cpp:2848` and `:2965` forward `...ToKernel` to `sceNetSetDnsInfo`/`sceNetSetDns6Info`, but no source says these are the same operation. shadPS4 only has a parameterless stub (`net.cpp:2324`), and KytyPS5/fpPS4 have no body. A function named "ToKernel" pushing the servers into the kernel resolver is not obviously the same as the process-local override. The `(info, flags)` signature is also not backed by any reference. Aliasing it returns a plausible success where `main` threw, which is the "exact or throw" case. - The tests (`GuestNetDnsInfo.cpp`) only check that the new exports return what the existing setters return, so they cannot show the behaviour is right. What would fix it: cite a source (firmware probe, disassembly, a reference with a body) for the semantics and signature, and record anything inferred in `docs/dev/debt/libSceNet.md`. Without one, keep these two throwing. Also, the `Tested` section has `?` characters where arrows were meant.
MarcZX10 commented 2026-10-28 14:30:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T14:30:57Z.

Review: CHANGES_REQUESTED


I independently checked the exact diff and agree this is not justified as implemented. Both new exports simply forward to the process-local override setters, while the existing debt entry states that those setters only affect the getters and the resolver still uses host DNS. The new debt sentence asserting that the ToKernel functions apply the same process override is not supported by a source or probe, and tests that only mirror the existing setter results cannot establish kernel resolver behavior or the (info, flags) ABI. Under the repo rule for unknown behavior, please keep these exports throwing until a firmware probe/disassembly or reference implementation establishes their signatures and semantics; then update the debt text to distinguish measured facts from inference. Also fix the ? placeholders in the Tested section. I did not run the tests: they cannot answer the blocking semantics question.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5684331103 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12455#pullrequestreview-5684331103). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T14:30:57Z. **Review:** CHANGES_REQUESTED --- I independently checked the exact diff and agree this is not justified as implemented. Both new exports simply forward to the process-local override setters, while the existing debt entry states that those setters only affect the getters and the resolver still uses host DNS. The new debt sentence asserting that the `ToKernel` functions apply the same process override is not supported by a source or probe, and tests that only mirror the existing setter results cannot establish kernel resolver behavior or the `(info, flags)` ABI. Under the repo rule for unknown behavior, please keep these exports throwing until a firmware probe/disassembly or reference implementation establishes their signatures and semantics; then update the debt text to distinguish measured facts from inference. Also fix the `?` placeholders in the Tested section. I did not run the tests: they cannot answer the blocking semantics question.
MarcZX10 commented 2026-10-28 15:26:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T15:26:05Z.

Review: APPROVED


Reviewed exact head f7ed67b7d3edc1718879b27e1b2936a1d995fea3. The earlier unsupported forwarding implementation has been removed; this change keeps both kernel-DNS exports throwing, records that their signatures and behavior remain unverified, and adds regression coverage for calls before initialization, while initialized, and after termination. The Windows hosted test and convention checks pass, and the author reports the focused Linux test and conventions pass. The change now follows the repository's exact-or-throw rule; no blocker remains.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5685199395 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12455#pullrequestreview-5685199395). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T15:26:05Z. **Review:** APPROVED --- Reviewed exact head `f7ed67b7d3edc1718879b27e1b2936a1d995fea3`. The earlier unsupported forwarding implementation has been removed; this change keeps both kernel-DNS exports throwing, records that their signatures and behavior remain unverified, and adds regression coverage for calls before initialization, while initialized, and after termination. The Windows hosted test and convention checks pass, and the author reports the focused Linux test and conventions pass. The change now follows the repository's exact-or-throw rule; no blocker remains.
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!12455
No description provided.