fix(libkernel): query peers of libSceNet sockets #18472
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18472"
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 THEMANnt on 2026-11-11T17:31:01Z.
What
Allow POSIX
getpeernameto query descriptors owned bylibSceNet. Hold the registered socket owner through the native query and use the existing guest address and length copy path.Tested
Windows x64, GCC 15.2. Built libkernel and libSceNet. The existing guest_sce_net_kernel_forwards test now checks both providers, the returned loopback address and EFAULT on a null address. It passed with local loopback access. Repository conventions passed. No title run.
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T14:27:09Z.
Review: COMMENTED
Reviewed — no blocking findings
The change at head
7dd13f1cc4cc7bd12c246380c0a180d84d10c905letsgetpeernameanswer forlibSceNetdescriptors, and the code I read supports that. I did not build or run anything.What I ran
7dd13f1cc4cc7bd12c246380c0a180d84d10c905.description.md,commits.md,manifest.json,diff.patchandfiles.jsonin the run folder.Udp.cpplines 1880–1960,Socket.cpplines 195–225,GuestNetKernelForwards.cpplines 110–150, and the name searches forKernelFindSocketNative_nid_no_patch.Results
Findings
Blocking
None.
Non-blocking
None that I can cite with a concrete defect.
Sources
Udp.cppchange: the owner is held for the native call; the forwarded path never readssocket.EFAULTfor both providers.Not verified
GuestSockets::IsOpenbody, which I only saw as a declaration inSocketRuntime.hpp.To get this to a good state
No change is needed from the author for this review. Keep the Windows run output with the PR. No command needs rerunning on a new head unless the code changes.