Repository navigation
fix(libkernel): query peers of libSceNet sockets - #18472
Conversation
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
|
Windows CI passed. Both macOS |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Windows check of head Setup: Windows 11 x64, WinLibs GCC 15.2.0 (r7), Ninja, Release,
AI-assisted: yes. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The change at head 7dd13f1cc4cc7bd12c246380c0a180d84d10c905 lets getpeername answer for libSceNet descriptors, and the code I read supports that. I did not build or run anything.
What I ran
- Head SHA:
7dd13f1cc4cc7bd12c246380c0a180d84d10c905. - Read
description.md,commits.md,manifest.json,diff.patchandfiles.jsonin the run folder. - Read at head with the reader:
Udp.cpplines 1880–1960,Socket.cpplines 195–225,GuestNetKernelForwards.cpplines 110–150, and the name searches forKernelFindSocketNative_nid_no_patch. - No build, no test run, no merged-preview check.
Results
| Check | Result | Note |
|---|---|---|
| Diff read in full | passed | 2 files, 19 changed lines |
| Changed code read at head | passed | Both changed files |
| Build and tests | not run | Author reports a Windows x64 run |
| Repository conventions | not run | Author reports a pass |
| Comments in added code | passed | None added |
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.- Native lookup: returns the owner and native handle, or false.
- Test additions: peer address and null-address
EFAULTfor both providers.
Not verified
- The build on any platform, and the test run the author reports (Windows x64, GCC 15.2).
- The Linux and POSIX path of the test on this head.
- The repository conventions check the author reports as passed.
- The
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.
7dd13f1 to
9682b04
Compare
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)