Skip to content

fix(libkernel): keep stream data queued when recvmsg cannot write its buffer, as FreeBSD 11.4 does - #22048

Open
brajankw wants to merge 1 commit into
boykopovar:mainfrom
brajankw:fix/libkernel-recvmsg-stream-fault-keeps-data
Open

brajankw wants to merge 1 commit into
boykopovar:mainfrom
brajankw:fix/libkernel-recvmsg-stream-fault-keeps-data

Conversation

@brajankw

@brajankw brajankw commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What

recvmsg received from the host before it copied to the guest buffers, so an output buffer that could not be written lost the stream data that FreeBSD 11.4's soreceive_generic leaves queued when the copy faults (the recvmsg entry in docs/dev/debt/libkernel.md).

Tested

Linux (Debian 13, GCC 14.2.0, Release), on main ca41dae948. The runs after the first bullet are from the earlier head 19b89e9aac.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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

@PrivacyOnion PrivacyOnion left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 4b623d7dfc:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_socket_pair_tests built cleanly.
  • CTest (guest_socket_pair, guest_recvmsg_memory, guest_sendmsg_memory):
    1/3 Test #5398: guest_socket_pair ................   Passed    0.04 sec
    2/3 Test #5399: guest_recvmsg_memory .............   Passed    0.04 sec
    3/3 Test #5400: guest_sendmsg_memory .............   Passed    0.03 sec
    100% tests passed, 0 tests failed out of 3
    
  • Negative control: with core/libs/prx/libkernel/Socket/src/Udp.cpp reverted to main and the new tests kept, the suite fails:
    1/3 Test #5398: guest_socket_pair ................Subprocess aborted***Exception:   0.74 sec
    2/3 Test #5400: guest_sendmsg_memory .............   Passed    0.03 sec
    3/3 Test #5399: guest_recvmsg_memory .............Subprocess aborted***Exception:   0.87 sec
    33% tests passed, 2 tests failed out of 3
    
    Restoring the change makes it pass again.
  • Code reading:
    • Validated FirstOutputWritable in core/libs/prx/libkernel/Socket/src/Udp.cpp against null/empty iovecs and tested memory accessibility via ReadGuest and WriteGuest without clobbering data
    • Verified recvmsg_nid_postfix pre-flight peek logic for SOCK_STREAM (type == 1) sockets to ensure EFAULT (14) is returned and stream data remains queued when the destination buffer is not writable
    • Checked handling of non-blocking and zero-byte pending stream reads (EOF vs error handling) ensuring proper error translation through NativeError() and return of 0 on EOF
    • Verified AGENTS.md conventions compliance: no illegal comments, correct technical debt fragment in docs/dev/debt/changes/, and proper test coverage in GuestSocketPair.cpp

Looks Good To Me

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

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.

Pull request Shared files not compared
PR 8605 core/libs/prx/libkernel/Socket/src/Udp.cpp
core/libs/tests/GuestSocketPair.cpp
PR 12682 core/libs/prx/libkernel/Socket/src/Udp.cpp
PR 12688 core/libs/prx/libkernel/Socket/src/Udp.cpp
PR 12700 core/libs/prx/libkernel/Socket/src/Udp.cpp
PR 12965 core/libs/prx/libkernel/Socket/src/Udp.cpp
PR 16826 core/libs/prx/libkernel/Socket/src/Udp.cpp
PR 18190 core/libs/prx/libkernel/Socket/src/Udp.cpp

@DannyOppenheimer

Copy link
Copy Markdown
Contributor

#23341 (SOCK_SEQPACKET socketpairs on Windows) conflicts with this pull request and with #21985 only by position, not in what they do: here, the lines you add after shut = ReceiveShut(*socket) in recvmsg (that line becomes ReceiveEnded(*socket) in #23341), and in #21985, CheckStatBlockSize added before main in GuestSocketPair.cpp where #23341 adds its own checks. No order is needed between them. Whichever merges first, I will rebase #23341 onto it, so you don't need to change anything here.

@kiwe147

kiwe147 commented Nov 21, 2026

Copy link
Copy Markdown

Tested head 4b623d7dfc, applied with git apply on main fd4aeed483 together with the other 28 PRs of one batch (#19470, #20317, #21336, #22189, #22888, #23474, #24467, #24489, #20216, #22111, #22319, #22422, #22841, #23127, #9547, #18247, #21720, #22375, #23405, #24134, #14851, #18324, #19650, #19986, #20447, #21078, #22362, #22702). All applied without conflicts and the whole tree built.

Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON. GPUs: NVIDIA GeForce RTX 3080 (driver 621.24) and the AMD Radeon iGPU of the CPU (gfx1036, driver 32.0.21036.18). No validation layer. iGPU run: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ANYPS5_GPU="AMD Radeon", agc_/video tests only.

tests RTX 3080 iGPU
guest_socket_pair (1 test, matched by name to the test file this PR changes) all pass outside the iGPU subset

Whole batch: the full ctest -j 12 (6526 tests) on the RTX 3080 has 9 failing tests; the 4 that also fail on main fd4aeed483 are agc_driver_stencil_plane_memory, agc_driver_msaa_dcc_unwatch, agc_storage_write_back_host_retile, and pr_overlap_names, which needs a newer Python than my 3.10. Intermittent in this run (pass when rerun alone, or known flaky): agc_driver_store_over_untracked, guest_raise_short_sleep_without_wake, agc_driver_store_over_untracked. Failing tests I could not trace to a single PR (reverting the likely candidates did not clear them): guest_agc_driver_unknown, guest_load_ranges, tool_script_modes. The 2127 agc_/video tests on the iGPU have 2 failing: agc_driver_stencil_plane_memory, agc_driver_store_over_untracked (agc_driver_stencil_plane_memory also fails on main).

This is one combined tree, not a run of this PR alone.

AI-assisted: yes (Claude Code)

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — changes requested

Changes are required before merge: preserve queued stream data when the first output byte is readable but not writable.

What I ran

  • Reviewed head 4b623d7dfc4700a49ae26e7dc65e8c87443ea641 using the supplied diff and repo_read.py.
  • No commands or tests were run.

Results

Check Result Note
Diff and changed files passed All three changed files read
Tests not run Author reports guest_socket_pair passed
Other platforms not run Windows and macOS unverified

Findings

Blocking

  • core/libs/prx/libkernel/Socket/src/Udp.cpp:2539 — The probe treats a read-only output byte as writable because ReadGuest succeeds on readable memory and writing the same byte through WriteGuest may succeed for host pages that are actually writable despite guest read-only protection. In this repository, guest read-only state is enforced by GuestArena::HostWrite; this specific path could not be confirmed from the inspected source, so the precise failure is not established. However, the condition can also alter memory by writing the byte back, and that write may have side effects for special mappings. Evidence is insufficient for a verified blocking defect.

  • core/libs/prx/libkernel/Socket/src/Udp.cpp:2582-2586 — After detecting a failed first-byte probe, the peek uses NativeReceiveFlags with MSG_DONTWAIT only when the guest set GuestDontWait. A blocking call can therefore block again after WaitForTransfer if another receiver consumes the queued data between readiness and this peek; this path's concurrent-receiver behavior was not verified.

Non-blocking

  • core/libs/tests/GuestSocketPair.cpp:170-182 — The regression test covers inaccessible and read-only outputs and EOF, but the author-reported negative control and test run were not independently reproduced.

Not verified

  • Did not run the reported test suite, negative control, conventions check, or overlap check.
  • Did not inspect excluded files listed in files.json; that listing was unavailable through the review-folder reader. The supplied manifest shows all three changed files included, and all three were read.
  • Windows and macOS behavior was not tested.

To get this to a good state

Changes are required only for verified blocking findings; none are established from the inspected evidence. The concerns above are not confirmed defects.

@brajankw

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Both points are addressed at the new head 19b89e9aac, rebased onto main ca41dae948.

  1. Write-back probe: fixed. FirstOutputWritable no longer writes to the buffer. It opens a GuestArena::HostWrite guard and calls GuestWritable_nid_no_patch, the same check SubmitCommands in Aio.cpp makes before it writes its id array. guest_socket_pair still covers an inaccessible buffer and a read-only one.

  2. Blocking peek: this matches the receive it replaces and FreeBSD, so I left it.

    • The peek passes the same NativeReceiveFlags(flags, ...) as the recvfrom a few lines below it, without MSG_WAITALL and with MSG_PEEK.
    • So if another receiver drains the queue between WaitForTransfer and the peek, the peek blocks exactly where that recvfrom would have blocked before this change.
    • FreeBSD's soreceive_generic also goes back to sbwait when the buffer is empty, and only faults once data has arrived.

Tests, the negative control and the overlap check are rerun at this head, and the body has the results.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — looks good

Nothing blocks this change; the first-byte stream fault handling and its regression coverage support the stated behavior.

What I ran

Reviewed head 19b89e9aac55720d535b5cd59bc8dfe9cf524da4 from the prepared diff and source files. No commands or tests were run during this review.

Results

Check Result Note
Diff and changed source passed Three changed files read
Tests not run Author-reported results were not rerun

Findings

Blocking

None.

Non-blocking

None.

Not verified

The author-reported test results and negative control were not independently verified. files.json was unavailable; the manifest lists all three changed files as included, and all three were read. No excluded changed files were reported in the manifest.

To get this to a good state

Nothing is required.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 22, 2026
@Helldiverr

Copy link
Copy Markdown
Contributor

Works on Windows at head 19b89e9aac. The 44 socket tests pass on main and in 3 of 3 runs on the merge. With main's Udp.cpp and the new test kept, guest_socket_pair and guest_recvmsg_memory abort. A probe shows the change keeps stream data queued on Windows after an EFAULT on an inaccessible or read-only first output byte, for socketpairs and TCP, blocking and non-blocking. Two mutations pass every test and only the probe catches them, which is worth weighing: a zero-length first vector, and MSG_WAITALL left in the peek flags. Details below.

Existing runs. 3 reviews, 4 comments, no inline comments.

  • The author, brajankw:
    • PR description: Linux (Debian 13, GCC 14.2.0) on main ca41dae948. ctest -R '^guest_socket|^guest_kernel_socket|^guest_udp': 27 tests pass; the multicast test is skipped and broadcast_debug_route_bounds is not built. Negative control: guest_socket_pair aborts with main's Udp.cpp. A full ctest at the old head passed 5880 of 5896. check_conventions passes. pr_overlap fails closed on conflicting PRs and lists feat(libs): mirror libkernel exports through libkernel_sys #18190. The description says it was not tested on Windows or macOS.
    • 1 comment replying to MarcZX10: FirstOutputWritable no longer writes to the buffer and now uses a GuestArena::HostWrite guard and GuestWritable_nid_no_patch. The blocking peek is left as is, because it blocks where the recvfrom it precedes would block.
  • PrivacyOnion, 1 review at the old head 4b623d7dfc, ran Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release): guest_socket_pair, guest_recvmsg_memory and guest_sendmsg_memory pass. Negative control: with Udp.cpp from main, guest_socket_pair and guest_recvmsg_memory abort.
  • MarcZX10, 2 reviews. At 4b623d7dfc, read the diff without running anything: the read-only check went through ReadGuest and WriteGuest, and the peek can block if another receiver drains the queue. At 19b89e9aac, read the code without running anything.
  • DannyOppenheimer, 1 comment: feat(libkernel): create SOCK_SEQPACKET socketpairs on Windows #23341 conflicts with this PR only by position, after the ReceiveEnded line in recvmsg.
  • kiwe147, 1 comment: a Windows 11 26200 run at the old head 4b623d7dfc, applied with 28 other PRs on main fd4aeed483. guest_socket_pair passed. The comment says it is one combined tree, not this PR alone.
  • github-actions, 1 pr-overlap comment: PR 18197 conflicts in Udp.cpp at lines 2740-2741 on main. PRs 8605, 11896, 12688, 12700, 12965 and 13589 could not be compared.
  • CI at 19b89e9aac: windows, conventions, labels, eligibility, library-portability, pr, report and both pipe-write macOS jobs pass. linux, relinker, relinker-asan, write-watch, edge-watch and register-context are skipped.
  • No local Windows run of this PR alone has been posted at 19b89e9aac.

What this run adds.

  • A local Windows run of this PR alone at head 19b89e9aac.
  • The 44 socket tests, on main and 3 times on the merge.
  • A negative control and six mutations of the new check.
  • A probe with 12 cases: vector layouts, flags, a control buffer, a blocking receive, a closed peer, shutdown, datagrams and TCP.

Code. Line numbers are from the head. Udp.cpp and GuestSocketPair.cpp are the same in the merge. The merge is clean.

  • Udp.cpp:
    • FirstOutputWritable (line 2741) skips zero-length vectors. For the first non-empty one, it opens a GuestArena::HostWrite guard on 1 byte and calls GuestWritable_nid_no_patch, and it restores errno. With no non-empty vector, it returns true.
    • In recvmsg, after WaitForTransfer and ReceiveEnded, the new check (line 2815) runs for a stream socket that is not passing descriptors, not shut and not peeking. If the first output byte is not writable, it peeks 1 byte, with MSG_WAITALL removed and MSG_PEEK added. It returns EFAULT (14) when a byte is queued, the native error when the peek fails, and falls through when the peek returns 0.
    • On Windows, passing is always false (line 2790), so a control buffer does not skip the check there.
    • NativeReceiveFlags (line 99) drops GuestDontWait on Windows. So the peek ignores MSG_DONTWAIT there, as the later recvfrom (line 2856) does. Derived, not measured: the race MarcZX10 describes applies to that recvfrom the same way.
    • GuestWritable_nid_no_patch is core/libs/prx/libc/src/General.cpp:923 on main 5ae28f2373.
  • GuestSocketPair.cpp (lines 199-211), in CheckReceiveMessageFaults: it queues "abc" on a stream socketpair, expects EFAULT for an inaccessible buffer and then for a read-only one, and checks that the 3 bytes are still there after each. Then it closes the peer and expects recvmsg to return 0. The same function runs as guest_socket_pair and as guest_recvmsg_memory.
  • Debt: the fragment fix-libkernel-recvmsg-stream-fault-keeps-data.md adds an entry. It says data is kept when the first byte cannot be written, lost when a later part of the buffer faults, and that datagrams are dropped, and it links FreeBSD 11.4 soreceive_dgram and soreceive_generic. It also says the data is not kept for a local socket offered a control buffer, which takes the descriptor-passing receive. That exception holds only on POSIX: the probe's control case below keeps the data on Windows. debt_fold --check passes.

Negative control and mutation. Each row is the merge plus the probe, with one change. Tests run: guest_socket_pair, guest_recvmsg_memory, guest_sendmsg_memory and the probe.

Row Change guest_socket_pair, guest_recvmsg_memory guest_sendmsg_memory, probe Probe compared with the merge
n0 Udp.cpp from main both abort, 0xc0000409 pass same results as main
m1 type != 1 both abort pass same as main, and the datagram is kept
m2 pending >= 0 both abort pass after the peer closes, the second recvmsg returns EFAULT instead of 0
m3 guard.Open() only, no GuestWritable_nid_no_patch both abort pass same results as main
m4 no vector.length == 0 skip pass pass zerofirst loses the data
m5 peek with flags | GuestPeek, MSG_WAITALL kept pass pass waitall returns errno 45 instead of 14, data kept
m6 no (flags & GuestPeek) == 0 pass pass no difference
  • The test's Require prints no line, so the aborting line was not identified.
  • m3: derived from the probe, on Windows HostWrite::Open succeeds on inaccessible guest memory, and only GuestWritable_nid_no_patch finds the fault.
  • m5: errno 45 is EOPNOTSUPP. Derived, not traced: Windows rejects MSG_PEEK with MSG_WAITALL, which is why the head removes MSG_WAITALL.
  • m6: a peek leaves the data queued anyway, so the extra check changes nothing that can be observed. The (flags & GuestPeek) == 0 condition only skips a needless peek.
  • m4 and m5 pass every test. The new test uses one non-empty vector and no flags.

Probes. One extra test executable, recvmsg_probe, registered in core/libs/prx/libkernel/CMakeLists.txt for this run only. It maps 3 pages (writable, read-only and inaccessible), queues data, calls recvmsg and then reads what is left with a MSG_DONTWAIT recv. It ran once on main and once on the merge.

Case main 5ae28f2373 Merge
zerofirst: a zero-length vector, then an inaccessible one, "abc" queued EFAULT, nothing left EFAULT, "abc" left
split: 2 writable bytes, then inaccessible, "abcdef" queued EFAULT, "ab" written, nothing left the same
waitall: inaccessible, MSG_WAITALL, "abc" queued EFAULT, nothing left EFAULT, "abc" left
dontwait: inaccessible, MSG_DONTWAIT, empty, then "abc" queued EAGAIN (35), then EFAULT, nothing left EAGAIN (35), then EFAULT, "abc" left
control: inaccessible, with a 64-byte control buffer EFAULT, nothing left EFAULT, "abc" left
blocking: inaccessible, "xyz" sent 200 ms later EFAULT after 200 ms, nothing left EFAULT after 200 ms, "xyz" left
peerclosed: "ab" queued, peer closed EFAULT, nothing left (the recv returns 0), then recvmsg returns 0 EFAULT, "ab" left, then recvmsg returns 0
shutrd: "ab" queued, shutdown of the read side recvmsg returns 0, nothing left the same
nullbase: null base, "abc" queued EFAULT, "abc" left the same
peekreadonly: read-only buffer, MSG_PEEK EFAULT, "abc" left the same
datagram: inaccessible, datagram socketpair EFAULT, datagram dropped the same
tcp: loopback TCP, inaccessible, then read-only EFAULT twice, nothing left either time EFAULT twice, "abc" and then "def" left
  • 12 rows. Measured: each result above is printed by the probe.
  • split is the case the fragment records as lost, and it matches it.
  • shutrd: the PR skips the check when the read side is shut, so this is main behaviour.

Tests.

  • Selection: ^(guest_socket|guest_kernel_sock|guest_udp|guest_recvmsg|guest_sendmsg|guest_refused_connect|guest_poll), 44 tests, without the probe: guest_kernel_sock_names, guest_kernel_socket_broadcast_debug_route_bounds, guest_kernel_socket_buf_timeout_bounds, guest_kernel_socket_creation_bounds, guest_kernel_socket_desc, guest_kernel_socket_dontwait, guest_kernel_socket_pair_bounds, guest_kernel_socket_shutdown, guest_poll, guest_recvmsg_memory, guest_refused_connect, guest_sendmsg_memory, guest_socket_address_length, guest_socket_connect_listening, guest_socket_descriptor_flags, guest_socket_descriptors, guest_socket_error, guest_socket_events, the 14 guest_socket_host_write_* tests, guest_socket_listen_backlog_bounds, guest_socket_msghdr_iov_bounds, guest_socket_on_non_socket, guest_socket_options, guest_socket_options_multicast, guest_socket_pair, guest_socket_port_zero, guest_socket_read_write, guest_socket_send_before_connect, guest_socket_stream_options, guest_socket_timeouts and guest_udp.
  • main 5ae28f2373: 44/44. Merge: 44/44 in each of 3 runs.
  • The PR adds no test executable, so the count is the same on both trees.
  • No build warnings on main or on the merge.
  • tools/check_conventions.py --base 5ae28f2373: all checks passed (rc=0).
  • debt_fold --check: rc=0, no output.

Host.

  • CPU: AMD Ryzen 9 9950X3D.
  • OS: Windows 11 Pro 26300.
  • Toolchain: WinLibs GCC 15.2, Ninja, Release.
  • Commits: head 19b89e9aac merged onto main 5ae28f2373 as 706438f77f (tree 0bdb2a792a). The mutation runs used re-merges with the same tree.

AI-assisted: yes

… buffer, as FreeBSD 11.4 does

recvmsg received from the host before it copied to the guest buffers,
so an output buffer that could not be written lost the stream data that
FreeBSD 11.4's soreceive_generic leaves queued when it faults. For a
stream socket without MSG_PEEK or descriptor passing, recvmsg now waits
for data as before and then checks that the first output byte can be
written; if not, it peeks one byte and fails with EFAULT while data is
queued, leaving it for the next receive. End of stream still returns 0.
A fault later in the buffer, after the receive, still loses the data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@brajankw
brajankw force-pushed the fix/libkernel-recvmsg-stream-fault-keeps-data branch from 19b89e9 to 0722072 Compare November 24, 2026 13:45
@brajankw

Copy link
Copy Markdown
Contributor Author

@Helldiverr I took both points and the debt correction at 07220727b8.

@Helldiverr

Copy link
Copy Markdown
Contributor

Follow-up Windows run at 07220727b8, merged onto main bd9a6c00a6 as 6809922f60. The two mutations that passed every test in my earlier Windows run, m4 and m5, are now caught by the PR's own test on Windows, as the author said they would be.

Results

Same selection as before: ^(guest_socket|guest_kernel_sock|guest_udp|guest_recvmsg|guest_sendmsg|guest_refused_connect|guest_poll). Main now has 45 tests matching it (44 in the earlier run). Require in this test aborts without printing a line, so a failure shows as 0xc0000409.

Tree Result
main bd9a6c0 45/45 passed
main's Udp.cpp + this PR's test file guest_socket_pair and guest_recvmsg_memory abort, the other 43 pass
merge, runs 1-3 45/45 passed each time
m4: no vector.length == 0 skip in FirstOutputWritable caught; guest_socket_pair and guest_recvmsg_memory abort
m5: peek with flags | GuestPeek, MSG_WAITALL kept (L2817) caught; guest_socket_pair and guest_recvmsg_memory abort

In the earlier run, both mutations passed all 44 tests and only the probe caught them. The new checks are in CheckReceiveMessageFaults. One is the MSG_WAITALL receive into the read-only buffer at L209, which expects EFAULT; under m5 the probe saw errno 45 there. The other is the read through a zero-length first vector on the inaccessible page at L211-L213, which expects the 3 kept bytes.

Debt

The fragment now limits the control-buffer exception to POSIX hosts. This matches the probe's control case from the earlier run, where Windows keeps the data. check_conventions --base bd9a6c00a6, debt_fold --check and debt_fold --show libkernel pass.

Host

  • CPU: Ryzen 9 9950X3D
  • OS: Windows 11 Pro 26300
  • Toolchain: WinLibs GCC 15.2, Release
  • Commits: head 0722072, merged cleanly onto main bd9a6c0 as 6809922f60.

AI-assisted: yes

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — no blocking findings

The inspected change and its focused test support the stated stream receive fix; execution checks were not available in this review session, so a formal approval is not justified.

What I ran

Reviewed head 07220727b87b3d0f9a6807dbe44d225f44295fa3. No commands or tests were run. Read the prepared description, commit summary, manifest, diff, and all three changed files listed in the manifest; checked the relevant receive code and helper implementations.

Results

Check Result Note
Diff and changed source review passed Three changed files read
Test execution not run No test execution available
Negative control not run Not independently reproduced

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

Tests and negative control were not run independently. Windows and macOS behavior was not verified. The prepared bundle’s files.json was not available through the reader; the manifest lists three changed files, and all three were read. No additional excluded files were identified.

To get this to a good state

Nothing is required. The test execution and negative control noted above are optional follow-up checks.

@ligmaSec ligmaSec left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran guest_socket_pair with the patch applied on Linux. It passed the receive-fault regression, including the checks that a rejected receive leaves stream bytes queued for a later read.

AI-assisted: yes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants