feat(libSceNet): track sceNetSetDnsInfoToKernel gap and test throw #12455
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12455"
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 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:
Checklist
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:2848and:2965forward...ToKerneltosceNetSetDnsInfo/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 wheremainthrew, which is the "exact or throw" case.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
Testedsection has?characters where arrows were meant.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
ToKernelfunctions 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.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.