Skip to content

feat(libkernel): cancel blocked POSIX reads with owned operations - #12682

Open
Felipebmaitan wants to merge 90 commits into
boykopovar:mainfrom
Felipebmaitan:feat/posix-read-cancellation-core
Open

Felipebmaitan wants to merge 90 commits into
boykopovar:mainfrom
Felipebmaitan:feat/posix-read-cancellation-core

Conversation

@Felipebmaitan

@Felipebmaitan Felipebmaitan commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

What

Head 929529056fe8339d6f908975ca896a455386506d integrates main f318c6c71fce10b591bfde3f72ce87650d74edb4. The merge keeps timer signal delivery from #19463 alongside deferred I/O cancellation. For Windows SOCK_SEQPACKET pairs from #23341, the owned wait checks for EOF after peer close or SHUT_WR once queued records are drained. It cancels and drains only its own pending Winsock operation. Completed records, including empty ones, retain their bytes and source-address results.

The previous head 7887e7a03da0e8aeed2557f4ba43a6aa777494b9 merged main b383285415f41862d469d025accfd64fecb0b13a and resolved the Windows socket-buffer conflict from #24382. The merge preserves the checked send buffer and receive writable-prefix contracts. The receive, prefix probe and datagram discard use the same owned Windows receive path, so a pending probe can wake on shutdown or be cancelled. Eight new tests exercise recv and recvfrom for streams and datagrams with a partially writable buffer.

The previous head e3c4edcd7a254b916d0b8be8521cc58079e3ccbc fixed the patched Windows runtime failure on 64e722f33e. Patched libSceNet imported five C++ ThreadCancel names that the NID patcher renamed in libkernel, so Windows could not resolve them. Native cancellation registration now stays in libkernel around the forwarded receive callback. libSceNet queries interruption and controls restart through three C entry points preserved by the patcher.

The previous head 64e722f33e50a90827dfa1b198b760182630972d merged main 67b5dd48231724012b334d17ca68e5d3ae38abb2, including the archive-backed file changes from #11625. POSIX pread keeps main’s archive error translation inside the cancellation point and descriptor ownership guard. Archive reads that fault return -1 and set guest errno, and successful reads retain their byte count.

The previous head 7983704eeb68a4bf6dfd56396e7d3ea414be5ab9 merged main fd4aeed48318c7d0cebca53d1db9a316c872cc4c into the existing branch. The merge preserves #24076’s large-file reads in Open.cpp and Stdio.cpp. Each native read chunk can be interrupted. An interrupted read returns completed bytes if it has made progress. The single-call fallback retains the existing cancellation handling. GuestFileVector now checks all four POSIX read entry points above the host’s single-call limit.

The previous head 44fde3b660ac816dace9ac0320f2002d23d5787d merged main c8d5f91168d7d8c208478de6d555b6a34c1c9acf into the existing branch and retains fb5fe804340f9df393b6bff36bb89c1ce9e67d38 as its first parent. Windows close and reopen release main's ungetc pushback buffer while holding NativeLock, before the native stream closes or is replaced. The Windows descriptor close admission and NativeLock::Close path are preserved.

The libSceNet receive path now captures the native socket error before checking for interruption. On Windows, an empty forwarded recvfrom(MSG_DONTWAIT) returns EAGAIN. Interrupted forwarded receives still return EINTR.

The Windows pending POSIX receive owns its completion and shutdown events. Shutdown through any alias wakes the retained socket's registrations. Each receiver cancels only its own OVERLAPPED and drains it before releasing its socket and destination. A positive MSG_WAITALL result is preserved. The integration keeps main's noncancellable ReadWatch path, the forwarding and libcurl borrowed-socket paths, the post-wait EOF handling, and the checked address outputs. recvfrom checks an unreadable address length before descriptor admission, matching main's error order. POSIX recv and recvfrom forwarded to libSceNet register native interruption while they hold descriptor admission, so close can drain them. Windows forwarded receives check for interruption during the existing readiness waits. The separate libcurl lease-retirement generation gap is recorded in technical debt.

Windows positioned transfers share a condition across descriptor aliases. A cancellable positioned wait wakes on holder release or interruption. The stream-close fixture exercises the Windows offset-serialization path with observed admission and contention, and the portable FILE-lock order test runs on both hosts. The exception-address waking and waiting cases each run five processes of ten rounds, preserving fifty rounds per case.

Before #24382 merged, I compared the 62 branches in the overlap report with head e3c4edcd7a on main c52d532062fbf346b98f59f5b9fd32c81c263214. Three combine without a Git conflict, ten conflict when combined (#11831, #16826, #18197, #19463, #21463, #22048, #22391, #23341, #24382, #24406), and 49 conflict with main before combination. This was a source comparison. Combined builds and runtime behavior remain untested.

#18112 forwards the receive exports through libkernel_web and calls the existing libkernel exports. #18190 forwards them through libkernel_sys and also refactors Udp.cpp. Its receive-provider composition must preserve cancellation. #24322 switches the build to copies of Udp.cpp split across new files. Those compiled copies would need to carry the cancellation changes forward even though Git merges the files cleanly. #24910 and #24917 compile the same UDP chunks and inherit this overlap from #24322. #24646 has a conflict with main in libSceNet/Export.cpp. Its socket-option and sync changes are outside this PR’s receive paths. Main and this branch each define the existing libkernel recvfrom export (lUk6wrGXyMw) once.

#11896 declares #12682 first for the broader MSG_WAITALL work. #22048 overlaps the recvmsg copy-fault path. #23341 is now integrated. In a source-only comparison on f318c6c71f, #24944 merged cleanly with this head. #25017 overlaps the macOS readiness wait, and #25791 overlaps the Windows recv, recvfrom, and recvmsg paths with descriptor passing. Both combinations conflict in Udp.cpp. Combined runtime tests were outside this run. #12688, #12700 and #12965 depend on the reads layer. #12682 has no open prerequisites.

Tested

  • Windows 11 Pro 10.0.26300, WinLibs GCC 15.2, Release. 505/505 focused CTests passed in 30.37 s. The selection included the socket-pair, timer delivery, thread-exit, socket cancellation, shutdown, and patched LibreSSL fixtures. Each of the 12 new sequenced-socket cases passed ten consecutive executions, covering an observed pending receive, peer close, SHUT_WR, and completed nonempty and empty records.
  • Debian 12, GCC 14.2, Docker on WSL2 kernel 6.6.87.2, Release. 534/534 focused CTests passed in 23.96 s, including socket pairs, timer delivery, armed and deleted timer thread-exit cases, socket shutdown, cancellation, and file I/O. Both builds used two compiler jobs.
  • The tests use main f318c6c71fce10b591bfde3f72ce87650d74edb4. A virtual merge, conventions check, and whitespace check passed against the pre-push tip 1de65493a2b913ae202e2f751f7c6377bed1fccb. The debt check passed, and the public-header audit verified 413 libraries and 34,900 exports.

Hosted CI and the maintainer title bench are pending for this head.

Historical PR evidence at earlier heads

At 7887e7a03da0e8aeed2557f4ba43a6aa777494b9, before the timer and sequenced-socket integrations.

Tested

  • Windows 11 Pro 10.0.26300, WinLibs GCC 15.2, Release. 490/490 focused CTests passed in 26.70 s. The selection included guest_udp, forwarded reads, descriptor close, cancellation, shutdown, patched LibreSSL BIO and CMAC, large-file I/O and archive reads. Each of the eight new Windows prefix cases also passed ten consecutive executions.
  • Debian 12, GCC 14.2, Docker on WSL2 kernel 6.6.87.2, Release. 531/531 focused CTests passed in 23.29 s, including UDP, socket shutdown and cancellation, forwarded receives, descriptor close, archive-backed reads and large-file reads. Both builds used two compiler jobs.
  • The merge and tests use main b383285415f41862d469d025accfd64fecb0b13a. A virtual merge, conventions check and whitespace check passed against the pre-push tip 4f5777f2f320111b156ed5db843a6d5f67968923. The debt check passed, and the public-header audit verified 413 libraries and 34,810 exports.
  • MarcZX10 inspected selected files at 7887e7a03d and verified no blocking findings in that scope. The review is incomplete and recorded as COMMENTED. The reviewer ran no tests. Review

The hosted Windows job was cancelled at the configured 90-minute limit in the build-and-run step, while Ninja was compiling the test targets. The log contains no compiler or test failure before cancellation, and the separate CTest step was skipped. Windows job

At e3c4edcd7a254b916d0b8be8521cc58079e3ccbc, before the Windows socket-buffer integration.

Tested

  • Windows CI on 64e722f33e reported eight failures in 5,848 CTest entries. I reproduced WinError 127 loading patched libSceNet locally and verified the missing imports against the patched libkernel export table.
  • Windows 11 Pro 10.0.26300, WinLibs GCC 15.2, Release. 341/341 focused CTests passed on that head, including patched BIO and CMAC, PE patcher references, forwarded receive close, and socket cancellation and shutdown. Direct loader checks also passed for patched libkernel, libSceNet, libSceLibreSsl, and libSceLibreSsl3.
  • A second Windows run passed 6/6 additional CI fixtures. The two patched net tests, the LibreSSL protocol NID test, and both LibreSSL3 tests passed. patched_libraries loaded 6/6 staged modules. I used the generated Ninja recipes for these test binaries with only the needed patched modules staged.
  • GitHub Windows CI passed on that head composed with main b612e96. It recorded 4,298 passed, 1,559 skipped, and zero failures across 5,857 CTest entries. All eight previously failing tests passed, including the full patched_libraries CI check. Windows job
  • Debian 12, GCC 14.2, Docker on WSL2 kernel 6.6.87.2, Release. 336/336 focused CTests passed, including the forwarded receive, close, cancellation, shutdown and socket regressions. Both builds used two compiler jobs.
  • ycbuzi’s independent full-suite run tested that head merged into main a1b89f35e2 using WinLibs GCC 15.2.0. Windows Server 2025 reported zero failures in both runs of 6,991 CTest entries. On Server 2022, both runs had two VideoOut failures also seen on main because vulkan-1.dll was unavailable. The first run additionally timed out in guest_libressl_tls_engine_transport, and the second aborted in guest_cpu_time_clocks. Neither appeared in the paired baseline failure lists. On local Windows 11 (10.0.26300), both fixtures passed ten consecutive executions each on that head. The Server 2022 failures remain unexplained. Contributor report · Server 2022 job · Server 2025 job
  • Conventions and whitespace checks passed against fetched main d8c98c0eb236f58be251f354d6354bc939f67559. A virtual merge with that tip completed cleanly. The debt check passed, and the public-header audit verified 413 libraries and 34,782 exports.
  • MarcZX10 approved the previous head 64e722f33e with one optional descriptor-state comment. Review

The maintainer bench remains pending for that head. The GitHub linux job was skipped. All 22 executed GitHub checks passed. Local testing for this update covered Windows and Linux. Console, live titles, GPU and performance remain untested.

At 64e722f33e50a90827dfa1b198b760182630972d, before fixing patched Windows loading.

Tested

  • Windows 11 Pro 10.0.26300, WinLibs GCC 15.2, Release. 477/477 focused CTests passed in 26.19 s. All five archive fixtures passed, including the invalid-destination pread assertions. The selection also includes large file I/O, descriptor close, cancellation, stream close, and forwarded socket reads.
  • Debian 12, GCC 14.2, Docker on WSL2 kernel 6.6.87.2, Release. 528/528 focused CTests passed in 22.85 s, including all five archive fixtures, large file I/O, descriptor close, cancellation, stream close and forwarded reads. Both platform builds used two compiler jobs.
  • Conventions and whitespace checks passed against fetched main 005482d54a0caf61bb2919074716c987054e6c55. A virtual merge with that tip completed cleanly. The debt check passed, and the public-header audit verified 413 libraries and 34,782 exports.
  • MarcZX10’s previous review covered head 7983704eeb and raised no defects or requests. Review

CI and the maintainer bench remain pending for this head. macOS, console, live titles, GPU and performance remain untested for this update.

At 7983704eeb68a4bf6dfd56396e7d3ea414be5ab9, before the archive-backed file integration.

Tested

  • Debian 12, GCC 14.2, Docker on WSL2 kernel 6.6.87.2, Release. The build ran with two compiler jobs. 523/523 focused CTests passed in 32.61 s. The file-vector fixture verifies scalar and vectored large POSIX reads, chunk-boundary data, short EOF results and positioned offsets. The selection also includes AIO large reads, descriptor close, cancellation, stream close and forwarded socket reads.
  • Windows 11 Pro 10.0.26300, WinLibs GCC 15.2, Release. The build ran with two compiler jobs. 472/472 focused CTests passed in 26.15 s, including file vector and pointer checks, descriptor close, cancellation, stream close and forwarded socket reads.
  • A temporary Linux probe intercepted the return of a real first 1 GiB host read and requested guest cancellation before handing back the result. All four entry points returned the completed bytes, left the next native chunk unstarted, and delivered the cancellation at a subsequent cancellation point. Positioned reads preserved the descriptor offset.
  • Conventions and whitespace checks passed against fetched main c7084de6edbc1f86c8e8ea3361383459545f37bb; a virtual merge with that tip completed cleanly. The debt check passed, and the public-header audit verified 413 libraries and 34,780 exports.
  • MarcZX10's previous review covered head 44fde3b660 and raised no findings. Review

CI and the maintainer bench remain pending for this head. macOS, console, live titles, GPU and performance remain untested for this update.

At 44fde3b660ac816dace9ac0320f2002d23d5787d, before the large-file read integration.

Tested

  • Windows 11 Pro 10.0.26300, WinLibs GCC 15.2, Release. Built with two compiler jobs. 464/464 focused CTests passed in 24.24 s, including repeated ungetc, the five standard-stream cases, the stream-close race, forwarded receives, and cancellation and shutdown coverage.
  • Debian 12, GCC 14.2, Docker on WSL2 kernel 6.6.87.2, Release. Rebuilt with two compiler jobs. 515/515 focused CTests passed in 18.88 s, including all five standard-stream cases, stream close, forwarded receives, and cancellation and shutdown coverage. The local configure used the cached release package for the unchanged FFmpeg submodule pin.
  • Public-header audit passed for 413 libraries and 34,764 exports. Debt and whitespace checks passed. Conventions passed against the fetched origin/main 4c3e1569aad89728238c94cc6ef83bfad44d2926, which adds separate SaveData tests. A virtual merge with that tip completed cleanly.
  • MarcZX10 approved the previous head fb5fe804340f9df393b6bff36bb89c1ce9e67d38 after reviewing the full change. Review

CI and the maintainer bench remain pending for this head. Local execution covered focused host tests. macOS, console, live titles, GPU and performance remain untested for this update.

At fb5fe804340f9df393b6bff36bb89c1ce9e67d38, before the Windows pushback integration.

Tested

  • Windows 11 Pro 10.0.26300, WinLibs GCC 15.2, Release. Built the focused production library graph and fixtures with two compiler jobs. CTest 457/457 passed in 22.59 s, with 151 shutdown cases, the positioned release and cancellation cases, stream close, checked socket addresses, and libcurl sockets. The forwarding fixture and both forwarded-close cases each passed five consecutive runs. The earlier head 8da1e28e passed 110 repeated executions of positioned, forwarded-close, address, and partial MSG_WAITALL cases.
  • Debian 12, GCC 14.2, Docker on WSL2 kernel 6.6.87.2, Release. Built the focused production graph and fixtures with two compiler jobs. CTest 508/508 passed in 18.14 s, including 151 shutdown cases, the checked address cases, portable stream close, and main's released-thread exception test.
  • The transport worker found the forwarding error on Windows. I independently reproduced the guest_sce_net_kernel_forwards abort on 8da1e28e, then included the fixture in both final platform runs.
  • Public-header audit covered 413 libraries and 34,757 exports. Conventions against origin/main, debt fragments, and whitespace checks passed.
  • One independent read-only reviewer examined 79d49f2864f62423b2d72dc0676af685b0d61bf3 and found a forwarded-receive close hang. The fix above was rebuilt and tested on both hosts. With the pre-fix Linux libSceNet binary loaded, both new tests failed at the close-wake assertion. Both pass with the final runtime.

The runtime runs cover focused host tests. The maintainer bench and CI for this exact head remain open. macOS, a console, live titles, GPU execution, and per-call performance were untested for this update.

What

Published head 32121ca48d0abf5e1c11e7c601636d10ec8cb77d preserves November published reads a564d53d8feacc77e94cc6301f35b41175fff6a0 and merges fetched main 4138defef7c468835190768e5143e411bce92d6a with authored history intact.

Address Dean's shutdown integration request. A Windows pending overlapped receive now waits on its private completion event and a shutdown event registered against the retained socket object. Shutdown reaches every registration through any alias; the receiver cancels only its own OVERLAPPED and drains completion before releasing native/destination ownership. Actual cancellation remains separate, disabled cancellation stays pending, and completed positive MSG_WAITALL progress is retained. Main's post-wait ReceiveShut checks, empty recvfrom/recvmsg address handling, and receiver argument/noncancellable ReadWatch path remain. Main's measured ucontext layout is retained with the existing opaque I/O identity in reserved spare storage.

This PR remains the read-cancellation consumer. The remaining Windows native/SCE readiness-to-transfer gaps are explicitly retained in debt here and handled in the separate transport dependency. No other owner's branch was edited. Previously declared prerequisites #10552/#10817/#10755/#12149/#9019 have landed; Depends on remains none.

Tested

Fresh local execution of the published source/head above, Release, CPU build jobs capped at two:

  • Windows 10.0.26300, WinLibs GCC 15.2: rebuilt the relevant production libc/libkernel/libSceLibcInternal/libkernel_sys/libSceNet/libSceSsl graph and focused fixtures; 471/471 focused read, cancellation, descriptor, signal, context, socket, SSL transport and stream-close cases pass (29.74 s total).
  • Ubuntu 24.04 / imav-tao WSL2, kernel 6.6.87.2, GCC 13.3: the same relevant production graph rebuilt; 496/496 focused cases pass (23.79 s total). An initial timeout-handshake fixture failure was repaired by observing the Unix poll admission boundary; the final suite above includes all 151 new shutdown cases.
  • New matrix: 151 cases on each OS, real loopback TCP/UDP, read/readv and aliases, recv/recvfrom/recvmsg and aliases, SCE read/readv, alias shutdown, concurrent readers, native callers, timeout, actual cancellation and disabled pending cancellation. Windows observes a genuinely pending WSA request; partial WAITALL cases retain a known transferred byte. Linux observation is before the native syscall/poll and establishes the admitted-before-native gap, not proof of an already-parked Linux recv or Linux partial WAITALL progress. Windows additionally passed 490 executions of 49 alias/parallel/progress cases.
  • Negative control: remove only shutdown's notification loop, retaining observation hooks. Both Windows recv shutdown and partial-WAITALL cases fail boundedly (2/2, 4.23 s total), requiring unrelated cancellation for failure cleanup. Restore source bytes, refresh mtime, rebuild the actual production library: 151/151 pass; final full focused results above follow restoration.
  • Two fresh independent read-only MICRO/MACRO reviews of production candidate ed37723bdb31651c1e76574ab55befafb447daac: no confirmed new must-fix defect. Subsequent changes only clarify debt and add the Unix timeout observation call; the Windows wake/ownership algorithm is unchanged. Reviewers ran no binaries; runtime evidence above is this owner's execution.
  • Public-header audit: 407 libraries / 30,931 exports, unique declarations and umbrella coverage pass. Conventions against origin/main: 0 errors, one 1,084-character context-debt warning. Final isolated overlap scan: 1,768 heads, 81 uncomparable shared-file branches; it fails closed, so no blanket clearance or contributor-order agreement is claimed. The direct fix(libSceNet): keep close-on-exec for fcntl on a sceNetSocket socket as FreeBSD does #16826 overlap concerns close-on-exec metadata, not a competing shutdown/cancellation implementation; upper-stack overlaps are expected.

These are relevant production builds and focused runtime selections, not execution of the entire project suite. WSL userfaultfd write protection is unavailable and the existing memory-comparison fallback is reported by the runtime. Existing user FreeType submodule state was preserved. No fresh macOS, title, console, GPU, allocation-failure or performance qualification; event/allocation/syscall/cancelling-caller costs remain unmeasured. Native/SCE receive gaps, macOS unconnected datagrams and zero-length datagram timestamp races retain debt. The unrelated address-waking intermittency and historical Windows 22621 sigjump hang remain unresolved. Maintainer scene/bench and new-head CI/review are separate gates; earlier approvals/results are not approvals of this head.

Historical evidence and status at earlier heads (superseded where stated above)

What

Head a564d53d8feacc77e94cc6301f35b41175fff6a0, integrated main d23df92b3805fea21493a73cbed8835c9e8548d0 through ordinary merge history, preserving every previously published head and maintainer commit.

Implement POSIX read cancellation with descriptor lifetime admission, deferred asynchronous delivery and context retirement. Retain the underscore context repair without guest signal-mask saving, checked context copies, deterministic close controls and main's current fault-delivery behavior. Document that scePthreadCancel blocks its cancelling caller and can wake/yield indefinitely; SignalManager global registration locking, allocations and mask-syscall cost remain unmeasured. This update changes that debt rather than adding an optional signal redesign or making a speed claim.

#12149 merged November 4 at 05:34 UTC and #9019 merged November 4 at 17:34 UTC; both are satisfied in main. #10552/#10817/#10755 are also merged. All four Apple empty-iovec guards, general context restoration, synchronous writes and deterministic stream-close hooks/comparisons remain. No archive #11625 work or unrelated owner branch was changed.

Consolidated maintainer response and evidence.

Tested

Historical contributor AMD evidence: TechLevelZero, 2026-11-05 13:22 UTC, parent reads 7d9ebe6 merged onto main e772fb2. RX 6300/RADV NAVI24, Mesa 25.2.8-0ubuntu0.24.04.4/Vulkan 1.4.318; Ubuntu 26.04.1/kernel 7.0.0-42/container ubuntu:24.04, Release. The contributor reports 4,279 passed / 15 failed / 71 skipped: ten failures also on main and five unstable on main, zero reported new failures. Validation/no-cache was enabled; 1,408 tests ran on the GPU, with no reported new IDs and four baseline IDs retained. agc_graphics_profile_draw timed out in the parallel run and passed on the 360-second retry. Baseline failures/skips and slow-test warnings remain visible; this is not an all-green result.

The displayed 4,365-of-4,074 selection line differs from linked 07-select.log's 4,326/4,400, so no unique whole-suite coverage ratio is inferred. This is contributor-reported evidence, not our GPU run or an independent audit of all linked logs. Parent-to-current a564d53 changes only MainThreadMacOs.cpp, GuestMainStackMove.cpp, GuestNpCommonRuntime.cpp and kernel debt; the read/cancellation implementation, descriptor control and underscore context repair are unchanged. The old head/main test does not become blanket qualification of the current integration. Current Windows results are recorded separately. It does not measure per-call I/O cost or the cancelling caller's spin, qualify unpublished runtime candidates, resolve Windows 22621 or the old accept macOS timeout, or supply a title performance/paired trace_digest run. No new I/O fix or source push follows from this report.

Current-head Windows verification: native Windows job succeeds at a564d53d8feacc77e94cc6301f35b41175fff6a0. The earlier manual dispatch HTTP 403 remains historical; dispatch is no longer a blocker for this head's Windows execution. This success is read from GitHub job status; no per-fixture totals are inferred here. The sibling transport log supplies direct execution evidence for its requested socket tests, and the accept log supplies direct evidence for its installation/disposal cases. Other checks remain incomplete with no observed current failures. Reads/transport/writes approvals remain pinned to earlier parent heads; no new review is inferred. The old accept macOS x86-64 timeout remains unexplained, and accept stays draft for the unresolved Windows 22621 hang.

Main-integration follow-up: authoritative head a564d53d8feacc77e94cc6301f35b41175fff6a0, main d23df92b3805fea21493a73cbed8835c9e8548d0. During the reads overlap audit the bot refreshed to 12 compared / 81 uncomparable branches at 2026-11-05 12:56:19 UTC. #15698 is confirmed merged; its removed row is satisfied by main. The other removed rows are not treated as merged or cleared merely because they disappeared. The remaining compared heads match the selected-source audits; no new implementation dependency. The existing-main recvfrom notice was checked: one implementation definition and one canonical declaration in main and reads, with no duplicate registration to remove.

The pre-push fetch caught maintainer commits a564d53 (reads), 95ce593 (transport) and 6076fc5 (writes). Those published commits were adopted unchanged; only accept needed a new ordinary merge of the maintainer's writes head, producing 82eaaf7. Main's macOS process-start-block pages stay mapped, and the debt still states that POSIX read/receive waits wake and defer delivery until ownership guards are released. No maintainer source resolution was overwritten.

All four authoritative heads pass required conventions and whitespace checks (the existing SSL warning remains on the upper layers). The changed MainThreadMacOs.cpp passes host macOS x86-64 syntax checking. Linux I/O production sources and the selected I/O fixtures are unchanged from the earlier composed 93-test run; guest_socket_dontwait passes again against those unchanged Linux binaries (1.93 s; 2.07 s CTest total). This is not execution of the macOS stack-move fixture or a fresh full-suite run. The refreshed coordinated overlap scan covers 1,831 PRs and fails closed for 84 uncomparable branches at the top accept tree; the reads report's 81 count has different scope and remains uncleared. No repeated no-change overlap comment is posted. New integration-head checks/reviews remain pending; earlier runtime results and approvals below are historical at the heads they name. The earlier manual dispatch was denied HTTP 403; current Windows jobs are recorded above, so dispatch is no longer a blocker for these heads; the intermittent Windows 22621 hang and old accept macOS x86-64 timeout remain unresolved. Accept stays draft.

Composed accept tree 6db995790dbe9193ee44028e327ad907faaa5cba with main e772fb25cc72ee5faf77847f06bbc69533016e82: Ubuntu 24.04.5/GCC 13.3 Release, x86-64 Docker through Apple Silicon translation. Rebuilt libc/libkernel/libSceLibcInternal/libkernel_sys and focused fixtures. 30/30 selected socket/UDP/context/accept tests pass (4.60 s): guest_socket_dontwait 1.78 s, guest_udp 1.59 s, all 15 accept cases including both installation failures and cancel/jump handoff disposal. 63/63 selected synchronous-write/stream-close tests pass (3.13 s). These are composed-stack focused results, not a full suite or independent runtime runs of every layer. Both requested test removals are present; implemented nonblocking/peek and delayed partial-buffer cases remain.

Required python3 tools/check_conventions.py --base origin/main checks pass for all four final heads, using an isolated Git context whose origin/main is the actual fetched upstream main above. Reads has no findings; upper layers retain only the existing SSL debt-length warning. Whitespace, preserved-parent and bottom-up ancestor checks pass. The coordinated stack overlap scan covers 1,811 open PRs and fails closed for 100 uncomparable branches; no whole-branch overlap clearance or owner-order agreement is claimed. Latest main and all four remote heads were fetched before the atomic fast-forward-only push. GitHub reports all four branches merge cleanly.

Earlier Windows verification status, superseded by the current results above: After the earlier publication, ordered Build dispatch 12682 12688 12700 12965 was rejected with HTTP 403, “Must have admin rights to Repository.” At that point a collaborator/admin dispatch was requested for guest_socket_dontwait plus native Windows guest_socket_transfer_progress; current runs above now supply execution. The available MinGW 13 cross-syntax attempt stops at newer main's _fflush_nolock declaration; no native Windows execution is inferred. The previous published heads' Windows jobs passed, but do not qualify these updates. New-head CI/review requires refresh.

Prior XairRrR approvals are historical: reads 32169af, transport 70120f1, writes fbd44d3. Accept's prior review is COMMENTED and it remains draft. No new approval is inferred.

The old accept macOS x86-64 job126136729127 remains failed at attempt 1; refreshed status/log reads 668 passed and guest_none_relocations timed out at 20.12 s, 354.88 s total. Its cause and a fix are unestablished; there is no fresh full macOS runtime qualification. The intermittent Windows 22621 sigjump hang remains unresolved; these Linux passes do not resolve it. Retained SSL waits, per-call I/O overhead and the cancelling-caller indefinite spin retain their debt/limits. Unpublished signal-registry/cancellation-request and SyncWrites-exception candidates are excluded. No new title/console, GPU or paired same-scene trace_digest run; no performance claim. Maintainer title-scene bench remains external.

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

This was referenced Dec 2, 2026

@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.

The trial merge conflicts in the descriptor, stdio and socket runtime. The operation ownership boundary deserves a regression with two blocked readers on the same underlying descriptor, so interrupting one reader demonstrates that the other reader can still receive data. For SOCK_SEQPACKET, please retain coverage that drains an already queued record before the peer-shutdown read reports EOF. Please put the new debt entry in a fragment.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.