feat(libkernel): cancel blocked POSIX writes with partial progress #12700

Open
Felipebmaitan wants to merge 212 commits from upstream-pr/12700 into main
Felipebmaitan commented 2026-10-29 02:59:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Felipebmaitan on 2026-10-29T02:59:22Z.


What

Head 6b8ca980e58f287cb042abf8c09f78f53298aa36 merges published #12688 978a8bef6c118f57242b96cee5c6f8cdf493e5d8, including #12682 7887e7a03da0e8aeed2557f4ba43a6aa777494b9 and main 4f5777f2f320111b156ed5db843a6d5f67968923.

Compose #24382's buffer checks with write cancellation. The Windows send path runs main's source check, which already prepares the guest range for host reads. Other hosts keep explicit preparation. The send retry keeps progress and per-call chunking. The retained receive retry keeps the writable-prefix probe, datagram discard rules, and cancellation and shutdown rechecks.

Tested

Release builds and focused tests on this PC at 6b8ca980e58f287cb042abf8c09f78f53298aa36:

  • Windows 11, WinLibs GCC 15.2.0 r7. 849 focused tests passed, zero failures and zero skips. Seven scoped patched checks passed. The loader opened 9 staged modules, and the three cancellation imports still resolve to patched libkernel.
  • The imported #24382 fixture aborted at the invalid-buffer recv assertion on predecessor e3138d7ceaac42bf00138e2d7d65e49217f916ab with ECONNABORTED. The same diagnostic fixture and the repository's guest_udp pass on this head, including the expected EFAULT and stream/datagram boundary cases. The UDP fixture and 8 Windows prefix cancellation/shutdown cases passed five consecutive runs each.
  • Debian on WSL2 Linux 6.6.87.2, GCC 14.2.0. 921 focused tests passed, zero failures and zero skips. The pending-connect ENOTCONN probe, four large-write interruption probes, and three host fstat probes passed.
  • Conventions, debt-fold, whitespace and the public-header audit passed. The audit covered 413 libraries and 34,810 exports.

The hosted Windows job passed on this head. GitHub reports 22 successful checks and one skipped Linux job. Main subsequently introduced a shared signal include conflict through #19463. The reads and transport prerequisites are integrating timer-signal support before the next composed build. Upstream review and bench validation remain pending. Local runs cover focused host fixtures. Title, console, macOS and GPU execution are outside this validation.

Previous pending-connect integration and CI evidence at e3138d7cea

What

Head e3138d7ceaac42bf00138e2d7d65e49217f916ab merges published transport #12688 at a57cf356306256d779487ad2e27695ae76f99ea6, including main 8ab98849d5ddf19f9e8758a5205b6159318ea10c and #24939. Linux send, write and addressless sendto return ENOTCONN while a TCP connection is pending. Windows retains blocking connect retry after refusal. The write layer retains partial progress, synchronous-write error propagation and the patched forwarding ABI.

Tested

Release builds and focused tests on this PC at e3138d7ceaac42bf00138e2d7d65e49217f916ab:

  • Windows 11, WinLibs GCC 15.2.0 r7. 841 focused tests passed, zero failures and zero skips. This includes the blocking-connect retry fixture. Seven additional scoped patched checks passed. The loader opened 9 staged modules, and the three cancellation imports still resolve to patched libkernel.
  • Debian on WSL2 Linux 6.6.87.2, GCC 14.2.0. 921 focused tests passed, zero failures and zero skips. The existing TCP and pending-connect cases ran in guest_tcp. A disposable diagnostic variant of main's TCP fixture returned EAGAIN on preceding head c76cc791de9fd7f0e68f0d53676879d25ebef470 and ENOTCONN on this head for all three guest APIs.
  • Both platforms passed the write, descriptor, archive and LibreSSL selections. Four Linux large-write interruption probes and three host fstat probes passed.
  • Conventions, whitespace and public-header checks passed. The full debt-fold check reported the same unmatched libwebrtc fragment on integrated main and this head. The header audit covered 413 libraries and 34,810 exports.

The hosted eligibility check rejected this head because main advanced with #24382's socket buffer checks. The Windows and Linux build jobs were skipped. The reads and transport prerequisites are resolving the shared conflict before the next composed build. Upstream review and bench validation remain pending. Local runs cover focused host fixtures. Title, console, macOS and GPU execution are outside this validation.

Previous LibreSSL fixture repair, CI and overlap evidence at c76cc791de

What

Head c76cc791de9fd7f0e68f0d53676879d25ebef470 merges the LibreSSL fixture repair from published #12688 at 59991e7d5e186a075c78bd7b55718ce6bb63b59f. The fixture injects the requested interruption, then uses the retained socket owner's transfer callback to preserve guest blocking behavior on a nonblocking host socket. The strict next-call handshake and interruption assertions remain. This merge changes only the shared LibreSSL test helper and retains the published write cancellation and Windows loader fixes.

Tested

Release builds and focused tests on this PC at c76cc791de9fd7f0e68f0d53676879d25ebef470:

  • Windows 11, WinLibs GCC 15.2.0 r7. 839 focused tests passed, zero failures and zero skips. The seven scoped patched tests also passed. The loader opened all nine staged modules, and the three cancellation imports still resolve to patched libkernel.
  • Debian on WSL2 Linux 6.6.87.2, GCC 14.2.0. 919 focused tests passed, zero failures and zero skips. Four large-write chunk interruption probes and three host fstat probes passed.
  • Both platforms passed all four LibreSSL I/O groups, all three TLS engine groups, and the archive and write-cancellation selections. The earlier hosted transport failure reproduced locally at the exact preceding head. The fixed Windows transport tests each passed 8 consecutive runs.
  • Conventions, debt fragments, whitespace and the public-header audit passed. The audit covered 413 libraries and 34,805 exports.

GitHub reports 22 successful checks and one skipped Linux job at this head. The hosted Windows job passed after the LibreSSL fixture repair. The local Linux results above are from a separate run. Both prerequisite PRs remain open, and upstream review and bench validation remain pending. Local runs cover focused host fixtures. Title, console, macOS and GPU execution are outside this validation.

Rechecked all 71 distinct PR refs in the overlap report against its base b8271ad76c97526637d1bcdd4dff3009c6c14350 and this head. Fifty-one refs already conflicted with the base, and 17 more conflicted when composed with this stack. The three textually clean combinations are #24322 and its follow-ups #24910 and #24917. Their build files replace the original socket and file sources with separate compilation units. If that refactor lands, carry the cancellation and descriptor changes into the compiled units for libkernel and libSceNet, including the patch-preserved C entries. Preserve #24382's buffer checks and #24065's close and abort wakeups when composing those independent fixes. The duplicate recvfrom and sendto notices refer to existing exports: main and this head each have one definition and one canonical declaration. The dependency order remains #12682, then #12688, then #12700. These are source and merge checks.

Previous Windows loader fix and CI evidence at 8637b820cc

What

Fix the Windows loader error for the forwarded POSIX write path. Head 8637b820cc5e03d2e658f4eed8af5f2de779862b merges published #12688 at 7935169d1605d995040076bee0b6128df94a690c on top of the existing writes branch. It keeps the integrated upstream main at 5e97fdf3415656bef6c786487517982d0a0920e6.

Native registration for forwarded send and sendto lives in libkernel, which holds it through the libSceNet callback. libSceNet uses the three C entries preserved by the NID patcher for active state, interruption and restart control. This preserves partial send progress, socket timeout handling and the captured Winsock error. The composition includes the corresponding receive fix and main's archive-backed pread error translation.

Tested

Release builds and focused runtime tests on this PC at 8637b820cc5e03d2e658f4eed8af5f2de779862b:

  • Windows 11, WinLibs GCC 15.2.0 r7. 832 focused tests passed, zero failures and zero skips. The forwarded-socket fixture includes blocking send cancellation, partial sends, close wakeups and a saturated sendto. The fixture also passed five consecutive runs.
  • Debian on WSL2 Linux 6.6.87.2, GCC 14.2.0. 912 focused tests passed, zero failures and zero skips. Four large-write chunk interruption probes and three host fstat error probes also passed.
  • On published predecessor bf7939216ab7b00a77633b222f5b036713bfde08, patched libSceNet failed to load with Windows error 127. PE inspection found five C++ ThreadCancel imports absent from patched libkernel. At the current head, patched libSceNet imports the three C entries and patched libkernel exports all three. The staged loader check loaded 9 patched modules, and all 7 scoped patched tests passed, including the loader, Net socket options and LibreSSL/LibreSSL3 NID checks.
  • Conventions, debt fragments, whitespace and the public-header audit passed. The audit covered 413 libraries and 34,805 exports.

The hosted Windows job reported one failing fixture, guest_libressl_ssl_io_transport (0xc0000409). Local reproduction at this exact head hit the retry-handshake assertion in GuestLibreSslSslIo.cpp at line 1161. The handshake, data and shutdown groups passed locally. The same fixture failed in #12688. The transport prerequisite is correcting the fixture so the test double uses the backing socket callbacks while keeping the interruption assertions.

Hosted Windows validation, the open prerequisites and upstream validation remain pending. The local results cover focused host fixtures. Title, console, macOS and GPU execution are outside this validation. Earlier source reviews and test runs below are pinned to their respective heads.

Previous archive integration evidence at bf7939216a

What

Integrate main's archive-backed file mapping (#11625) through the published transport prerequisite. Head bf7939216ab7b00a77633b222f5b036713bfde08 merges #12688 at dd3e4aa0de0548d820b4aa85a5c6c61ce3ae3683 and upstream main through 5e97fdf3415656bef6c786487517982d0a0920e6. The merge preserves main's POSIX archive error translation inside the pread cancellation point and descriptor admission. The existing writes still preserve partial progress on interruption and finalize synchronous writes once per transfer.

Tested

Release builds and focused tests on this PC at bf7939216ab7b00a77633b222f5b036713bfde08:

  • Native Windows, WinLibs GCC 15.2.0 r7. 832 passed, zero failures and zero skips.
  • Debian container on WSL2 Linux 6.6.87.2, GCC 14.2.0. 912 passed, zero failures and zero skips.
  • Both platforms ran all five archive fixtures, including mapped-file failures and damaged backing, alongside write and read cancellation, synchronous writes, socket transfers, descriptor reuse, vector and positioned I/O, and AIO.
  • The four Linux write-chunk interruption probes and three Linux host fstat error probes passed again against the rebuilt libraries.
  • Conventions, debt fragments, whitespace and the public-header audit passed. The audit covered 413 libraries and 34,805 exports.

The libkernel progress scan still reports the same eleven exports against the integrated main. A scanner-only control isolates the inherited Windows blocking-stream receive guard, as documented in the previous-head evidence below.

The two prerequisite PRs, exact-head CI, and upstream review and bench remain pending. Marc's focused source review covers the previous large-file integration head. These runs cover focused host cases. Title, console, macOS and GPU execution are outside this validation.

Previous large-file integration evidence at c567dd9678

What

Resolve the large-file integration after main's #24076. Head c567dd9678d10713bc7047d421acc9406671d02c carries the previously published write history, #12688 at 804d854d2bdacb49116521eb6a7c0cba5e45c1d7, and main through 05349cacbabe201178ea4999e0dba1076d3b5f15. Compare the refreshed transport and write heads.

Each native chunk of a large regular-file write can now be interrupted. The write returns the bytes completed before interruption, positioned transfers preserve the descriptor offset, and synchronous completion runs once for the aggregate write. The published reads and transport changes carry the read accumulation, retained-socket shutdown wake, and checked accept composition.

Tested

Release builds and focused CTest on this PC at c567dd9678d10713bc7047d421acc9406671d02c:

  • Windows 10.0.26300, WinLibs GCC 15.2.0 r7: 832 passed, zero failures and zero skips.
  • Debian container on WSL2 Linux 6.6.87.2, GCC 14.2.0: 913 passed, zero failures and zero skips. The Unix large-file fixture exercised transfers over 2 GiB, including vector I/O, positioned reads, and AIO.
  • Both selections covered write cancellation, synchronous writes, descriptor reuse, shared memory, stream close, read/shutdown, and socket and libSceNet forwarding.
  • Three disposable Linux probes injected host fstat errors with seccomp. They confirmed that a pending guest interruption plus host EINTR preserves completed bytes, and that otherwise unrelated host metadata failures propagate.
  • Four additional Linux probes interrupted write, pwrite, writev, and pwritev with host SIGINT immediately after the first 1 GiB chunk. Each API returned exactly 1 GiB, delivered one deferred signal, and issued no second host transfer. File size and positioned and unpositioned descriptor offsets matched the bytes written.
  • Conventions, debt-fragment and whitespace checks, and the public-header audit passed. The header audit covered 413 libraries and 34,780 exports. The function-name scan found shared entry points in the stack and in open ksem PRs #24487 and #24488, which cover descriptor error rules.

The progress report for 4387b62 → c567dd9 counts libkernel at 719/758 before and 708/758 after. Reproduced both counts in the scanner. A temporary source copy changing only the marker for the inherited Windows blocking-stream MSG_PEEK | MSG_WAITALL receive gap restored exactly the eleven flagged exports. The scanner follows the shared Transfer helper across platform, direction, and flag guards, including through forwarding aliases. The gap applies to the guarded receive combination. Sends pass send=true, and accept passes zero flags. This is a scanner control. The production marker and debt remain in the transport prerequisite.

Exact-head CI, the two open prerequisites, and maintainer review and bench remain pending. Title, console, macOS, and GPU execution are outside this validation.

Previous write integration and independent review at caeb7f4984

What

Head caeb7f4984210b6b4aa715cf0d20acdf4a7eb55e preserves the previously published write commits. It merges the published reads and transport layers through #12688 and upstream main cb734a9eb84a35717372d1101fa946b68ebe3374. Compare transport to this head.

POSIX writes retain completed byte counts across deferred cancellation, including partial pipe and stream-socket transfers. The composition keeps the transport's retained-socket shutdown wake and TransferKind::Accept, main's checked socket addresses and vector copies, and libSceNet forwarding. sendmsg holds one descriptor admission from socket lookup through the final send. Windows writes validate the native handle before CRT I/O.

The independent review of fbee14dc27bed22957213358c868617ecde78f86 found a blocked forwarded-send cancellation and close path and a flush-error classification bug. Forwarded POSIX sends now register for interruption, preserve partial progress, and retain the original Winsock error on the nonblocking path. Direct SCE and libSceNet writes retain their behavior. The synchronous-write path distinguishes a flush interruption from an unrelated failure, even when a guest signal is pending.

Tested

Release builds and focused CTest on this PC at caeb7f4984210b6b4aa715cf0d20acdf4a7eb55e:

  • Windows 10.0.26300, WinLibs GCC 15.2.0 r7: 822 passed, zero failures and zero skips. This includes 405 write cases, Windows restricted-right pipes, named shared memory, libSceNet forwarding, and shutdown.
  • Debian container on WSL2 Linux 6.6.87.2, GCC 14.2.0: 904 passed, zero failures and zero skips. This includes 430 write cases, shared-memory preflight, SCM_RIGHTS, and native socket mode. Both platforms ran all 92 synchronous-write cases, main's sceKernelRdup fixture, descriptor access, stream close, and SSL transport.
  • The augmented forwarded-socket fixture checks partial sends under cancellation and POSIX close, and cancellation of a saturated forwarded sendto. The fixture rejected the earlier Windows candidate. Five new interrupted flush cases also failed against that candidate by losing the returned EIO; the five uninterrupted controls passed. All ten flush cases and the forwarded-socket fixture pass on the final head. The forwarded-socket fixture also passed five consecutive Windows runs.
  • Three separate Linux probes against the exact built libkernel used a per-thread seccomp filter to inject errors from the actual host stat syscall. Host EINTR with a pending guest interruption preserved completed bytes and skipped the flush. Host EINTR without a guest interruption and host EIO with one propagated their original exceptions. The probes ran from a disposable test executable.
  • Conventions, debt-fragment validation, whitespace, and the public-header audit passed. The audit covered 413 libraries and 34,771 exports. The function-name overlap scan recorded #23341 and #24382 as related open socket work. Neither is a dependency of this refresh.

These are focused runtime selections. Console, title, macOS, and GPU execution were outside this run. Cancellation overhead is still unmeasured. The prerequisite PRs, exact-head CI, maintainer bench, and maintainer review remain pending.

Historical evidence and previous description at bf740fcd27

What

Published head bf740fcd275bc7e9c8a78cbfce94da554e0e78b0 preserves November writes 6076fc5ca39d40aad6e69b27a41a50f4af3bc836, exact published transport 8f34999f2fad40fcf704765c3dedcafe5d157fa7 and reads 32121ca48d0abf5e1c11e7c601636d10ec8cb77d through ordinary merge history. The refreshed stack includes fetched main 4138defef7c468835190768e5143e411bce92d6a; previously declared landed prerequisites retain their authorship/history.

Address Dean's inherited shutdown integration request by composing the reviewed reads/transport repair. Preserve all three receive-wrapper post-wait ReceiveShut checks and receiver arguments, the retained-socket shutdown wake, actual-cancellation separation and transport's explicit TransferKind::Accept. The write-specific sendto merge keeps main's paired Unix-socket checks before GuestArena host-read preparation. No accept-owner branch was edited and no new milestone behavior is introduced.

Address the outstanding SyncWrites exception finding. Catch only a distinct InterruptedFstat emitted for actual host fstat errnoEINTR. Handle a metadata-hook reported EINTR explicitly when an I/O interruption is active. Unsupported classifications and other metadata/flush runtime exceptions now propagate instead of being converted to an interrupted flush or ordinary write result. Positive completed progress and the existing SCE boundary remain unchanged. The missing MSG_DONTWAIT FreeBSD citation is restored in the owning transport prerequisite; its production blocking PEEK|WAITALL throw/debt and implemented nonblocking tests remain.

Dependency order is reads #12682 -> transport #12688 -> writes #12700. Write increment over exact transport prerequisite. This updates the existing write topic; the PRs remain open for maintainer review.

Tested

Fresh exact-head Release validation on this PC, CPU builds capped at two jobs:

  • 875/875 Windows focused cases pass (Windows10.0.26300, WinLibs GCC15.2; 51.01 s total).
  • 927/927 Linux focused cases pass (Ubuntu24.04 imav-tao WSL2/kernel6.6.87.2, GCC13.3; 43.72 s total).
  • Both relevant production libc/libkernel/libSceLibcInternal/libkernel_sys/libSceNet/libSceSsl graphs and fixtures rebuilt from this worktree. Selections include read/write cancellation, pipe/socket progress, descriptor duplication/close/reuse, shared/positioned metadata waits, signals, context retirement, stream-close barriers, append/vector writes, socket native/dontwait/host-write behavior and SSL transport. They are focused selections, not the entire project suite; no skipped CI job is counted as executed validation.
  • 82/82 Windows synchronous-write cases, including 20 new cases across write, writev, pwrite, libkernel_sys pwrite and pwritev. Metadata and flush hooks throw a known unknown-gap exception after a real native pipe wait, with and without pending signal delivery. Checks require original exception text, existing ab content, no replay, released descriptor admission, once cleanup/TSD and correct signal count.
  • Regression control: composed production baseline c8e26536e858da234f071beafadd62f4e291fc3b plus the new fixture fails 10/20, all interrupted cases losing the exception; all ten no-interruption cases pass (1.50 s total). The repaired candidate passes the 20 cases and the complete 82-case selection; Linux's final 927-case run includes them. This executes real library/cancellation paths, not an extracted SyncWrites harness. Actual kernel fstat(EINTR) was not fault-injected; that narrowly tagged path was inspected statically, while native-interrupted metadata hooks are exercised.
  • Two fresh independent read-only adversarial MICRO/MACRO reviews of exact bf740fcd275bc7e9c8a78cbfce94da554e0e78b0: no confirmed new must-fix defect. Both inspected production wrappers/lifetimes/positive progress and composition, not only the new tests; neither ran binaries. The transport prerequisite separately records its initial P2 accept finding, failing production counterexample, operation-kind fix, two fresh re-reviews and shutdown-notification removal controls.
  • Public-header audit: 407 libraries / 30,931 exports, unique owning declarations and umbrella coverage pass. Required conventions against origin/main: 0 errors, one existing 1,084-character context-debt warning. Isolated overlap scan: 1,763 heads, 79 uncomparable shared-file branches; failed closed, so no blanket overlap clearance or new contributor-order agreement is claimed.

Known limits remain explicit: original FreeType submodule state preserved; WSL userfaultfd protection unavailable with the runtime's memory-comparison fallback. No fresh PS5, title, macOS, GPU, allocation-failure or paired same-scene trace_digest qualification, and no performance claim. Per-call allocation/signal-mask/handle cost and cancelling-caller spin remain unmeasured nonblocking follow-ups. Unix retained SSL polling, macOS unconnected-datagram/ancillary races, separately established address-waking intermittency and the historical Windows22621 sigjump cause are not repaired by these passing tests. Maintainer scene/bench, new-head CI and maintainer review remain separate gates. Earlier approvals and results below are historical, not approval/execution of this head.

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

What

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

Implement POSIX write cancellation above transport, preserving synchronous completion, partial progress, deterministic stream-close controls, the main-owned #9019 shared PosixPwrite provider and the separate SCE behavior. Inherit the maintainer-requested removal of blocking PEEK|WAITALL throw assertions from transport. Keep the production gap marker/debt, implemented nonblocking coverage and delayed partial-buffer tests.

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

Current source comparison: git diff 95ce5937f26f90a44448271a17fb3d105be6128c 6076fc5ca39d40aad6e69b27a41a50f4af3bc836 spans 17 files. The maintainer merged main separately into the published branches; the current lower head is not an ancestor of this head. This is a direct tree comparison; the main-based Files view remains cumulative. No retarget or history replacement was performed.

Consolidated maintainer response and evidence.

Tested

Historical contributor AMD evidence: TechLevelZero, 2026-11-05 13:14 UTC, tested parent writes 2572b7019d merged onto main e772fb25cc. 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,681 passed / 15 failed / 71 skipped, with ten failures also on main and five unstable on main, zero reported new failures. Validation/no-cache was enabled; 1,409 tests ran on the GPU, with no reported new IDs and four IDs already on main. guest_job_manager_worker_spin was validated but not compared with main; agc_graphics_profile_draw timed out in parallel and passed the 360-second retry. Long-running tests and baseline failures/skips remain recorded, not an all-green claim.

The displayed 4,767-of-4,074 selection count differs from the linked 07-select.log's 4,730/4,804; no unique whole-suite coverage ratio is inferred. This is contributor-reported evidence, not our GPU execution or an independent audit of every linked log. Compared the tested parent to current 6076fc5ca3: the changes are MainThreadMacOs.cpp, GuestMainStackMove.cpp, GuestNpCommonRuntime.cpp and kernel debt; the I/O implementation and requested socket fixtures are unchanged. That source comparison does not turn the old head/main run into blanket current-head qualification. Native Windows/current-head results are separately recorded below; the report does not resolve Windows 22621 or the old accept macOS timeout, qualify unpublished runtime candidates, or supply title performance/paired trace_digest evidence. No new I/O fix or source push follows from this report.

Current writes bot-report audit at 6076fc5ca3: the live progress report compares main d23df92b38 with this head. Reproduced libkernel main 703 done / 55 todo and head 696 / 62. A temporary scanner-only copy replacing only Transfer's required blocking-stream receive PEEK|WAITALL marker with a generic throw restores 703 / 55 and precisely accept/recv/recvfrom/recvmsg/send/sendfile/sendto. Helper-name propagation does not evaluate platform/direction/flag guards. Send paths cannot enter the receive-only guard and accept passes no peek/waitall flags; receive paths retain the documented Windows gap. This classification control supplies no runtime qualification. The production marker/debt and scanner remain unchanged, as do the maintainer-requested test removals; no unconditional seven-function stub replacement or new source fix is established.

The overlap snapshot updated 2026-11-05 12:56:22 UTC has 21 compared / 84 uncomparable branches, against that same main. #15698 is confirmed merged and satisfied in the stack; other removed rows are not presumed merged or cleared. Re-read all 21 compared live heads: 20 match the latest accept selected-source scan. #14085 advanced to fd8e70930fdfba76e3326ac19149b42478cc0543; inspected its delta from 4e67d63a85551ed560845b3abc7766a1eab89ff6. Process.cpp, SSL debt and libc debt are unchanged, and the kernel-debt change carries main's macOS process-start-block retention already present in writes. Preserve that lifetime description alongside deferred POSIX I/O delivery when later composed; no new helper dependency or joint-owner runtime pass is inferred.

The earlier selected-source composition requirements remain, including checked-copy/error ordering, stream-close and retained descriptor ownership, socket address/SCM_RIGHTS behavior and opaque context identity. All 84 uncomparable branches remain uncleared. Depends on stays #12682, #12688; #12149/#9019 are satisfied in main. Archive #11625 is untouched. The current Windows success and remaining macOS/Windows 22621 limits are recorded below. No source push, retarget or repeated overlap comment accompanies this audit.

Current-head Windows verification: native Windows job succeeds at 6076fc5ca39d40aad6e69b27a41a50f4af3bc836. 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 6076fc5ca39d40aad6e69b27a41a50f4af3bc836, 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 a564d53d8f (reads), 95ce5937f2 (transport) and 6076fc5ca3 (writes). Those published commits were adopted unchanged; only accept needed a new ordinary merge of the maintainer's writes head, producing 82eaaf7766. 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.

Writes overlap refresh 2026-11-05 12:00:00 UTC at this head: 22 compared / 94 uncomparable branches, main e772fb25cc. Re-read all 22 live heads. Nineteen match the selected new/changed source patches recorded in the transport description at 40ca3c447b. Preserve the recorded checked-copy/error ordering, host-log/FILE-before-descriptor locking and stream-close controls, Windows address/zero-port/SourceFaults ordering, Native cancellation scopes, received-socket/SCM_RIGHTS ownership, context layout/copy bounds plus opaque mc_spare identity, macOS stack-region lifetime, and SSL handshake error classification with retained transport ownership when later composed. No whole-branch or joint-runtime clearance is inferred from those selected-source reviews.

The three additional compared rows retain their prior audited heads: #8463 f4b87cbb57 (checked sendmsg input/control copying and failure order), #14043 3714f2a16accc46133ffee29d41ba45f7d0f3a9e (connected socketpair sendto address/EISCONN behavior), and #15219 bf4f7b7239 (affinity input-size handling and explicit unsupported ranges/debt). Later composition must preserve their independent coverage/error ordering alongside write admission and partial-progress behavior; they introduce no helper this write implementation requires.

The 94 uncomparable PR numbers match the transport report, but writes adds Stdio.cpp or descriptor-control shared files to #5021/#7121/#9566. These rows remain unverified, not cleared by the transport audit or the focused tests. The coordinated pre-push scan reported 100 uncomparable branches at the top accept tree; the counts have different scope. The existing-main sendto name/NID notice was checked: main and this writes head each retain exactly one implementation definition and canonical declaration, with _sendto forwarding to the existing export; no additional registration is warranted.

Depends on remains #12682, #12688; #12149/#9019 are satisfied in main. No new source push, retarget, import, order agreement or combined-owner runtime pass follows from this refresh. All 94 uncomparable branches remain uncleared; archive #11625 stays untouched. No repeated overlap comment posted; the existing consolidated response and runtime/Windows/macOS limits remain applicable.

Progress-report audit at this head: the e772fb2 → 2572b70 report labels seven socket exports reverted. Reproduced with the current scanner: libkernel main 703 done / 55 todo, this head 696 / 62. In a temporary scanner-only copy, replacing only Transfer's required blocking-stream receive PEEK|WAITALL NotImplemented marker with a generic throw restores 703 / 55 and exactly accept/recv/recvfrom/recvmsg/send/sendfile/sendto. The helper-name propagation does not evaluate platform, send/receive or flag guards. Send paths cannot take that receive-only guard, and accept passes no PEEK|WAITALL flags; receive paths retain the documented unsupported Windows combination alongside their implemented behavior. This is classification evidence, not runtime qualification. The production marker, debt and scanner are unchanged, consistent with the maintainer request to remove tests requiring the missing feature. No unconditional seven-function stub replacement or new source fix follows from this report.

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 32169af1dc, transport 70120f1b86, writes fbd44d3326. 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: #12682, #12688
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5061329178 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700). Originally posted by [Felipebmaitan](https://github.com/Felipebmaitan) on 2026-10-29T02:59:22Z. --- ### What Head `6b8ca980e58f287cb042abf8c09f78f53298aa36` merges published #12688 `978a8bef6c118f57242b96cee5c6f8cdf493e5d8`, including #12682 `7887e7a03da0e8aeed2557f4ba43a6aa777494b9` and main `4f5777f2f320111b156ed5db843a6d5f67968923`. Compose #24382's buffer checks with write cancellation. The Windows send path runs main's source check, which already prepares the guest range for host reads. Other hosts keep explicit preparation. The send retry keeps progress and per-call chunking. The retained receive retry keeps the writable-prefix probe, datagram discard rules, and cancellation and shutdown rechecks. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Release builds and focused tests on this PC at `6b8ca980e58f287cb042abf8c09f78f53298aa36`: - Windows 11, WinLibs GCC 15.2.0 r7. **849 focused tests passed**, zero failures and zero skips. Seven scoped patched checks passed. The loader opened 9 staged modules, and the three cancellation imports still resolve to patched libkernel. - The imported #24382 fixture aborted at the invalid-buffer `recv` assertion on predecessor `e3138d7ceaac42bf00138e2d7d65e49217f916ab` with `ECONNABORTED`. The same diagnostic fixture and the repository's `guest_udp` pass on this head, including the expected `EFAULT` and stream/datagram boundary cases. The UDP fixture and 8 Windows prefix cancellation/shutdown cases passed five consecutive runs each. - Debian on WSL2 Linux 6.6.87.2, GCC 14.2.0. **921 focused tests passed**, zero failures and zero skips. The pending-connect `ENOTCONN` probe, four large-write interruption probes, and three host fstat probes passed. - Conventions, debt-fold, whitespace and the public-header audit passed. The audit covered 413 libraries and 34,810 exports. The [hosted Windows job](https://github.com/boykopovar/AnyPS5/actions/runs/44911283609/job/136870082436) passed on this head. GitHub reports 22 successful checks and one skipped Linux job. Main subsequently introduced a shared signal include conflict through #19463. The reads and transport prerequisites are integrating timer-signal support before the next composed build. Upstream review and bench validation remain pending. Local runs cover focused host fixtures. Title, console, macOS and GPU execution are outside this validation. <details><summary>Previous pending-connect integration and CI evidence at e3138d7ceaac42bf00138e2d7d65e49217f916ab</summary> ### What Head `e3138d7ceaac42bf00138e2d7d65e49217f916ab` merges published transport #12688 at `a57cf356306256d779487ad2e27695ae76f99ea6`, including main `8ab98849d5ddf19f9e8758a5205b6159318ea10c` and #24939. Linux `send`, `write` and addressless `sendto` return `ENOTCONN` while a TCP connection is pending. Windows retains blocking connect retry after refusal. The write layer retains partial progress, synchronous-write error propagation and the patched forwarding ABI. ### Tested Release builds and focused tests on this PC at `e3138d7ceaac42bf00138e2d7d65e49217f916ab`: - Windows 11, WinLibs GCC 15.2.0 r7. **841 focused tests passed**, zero failures and zero skips. This includes the blocking-connect retry fixture. Seven additional scoped patched checks passed. The loader opened 9 staged modules, and the three cancellation imports still resolve to patched libkernel. - Debian on WSL2 Linux 6.6.87.2, GCC 14.2.0. **921 focused tests passed**, zero failures and zero skips. The existing TCP and pending-connect cases ran in `guest_tcp`. A disposable diagnostic variant of main's TCP fixture returned `EAGAIN` on preceding head `c76cc791de9fd7f0e68f0d53676879d25ebef470` and `ENOTCONN` on this head for all three guest APIs. - Both platforms passed the write, descriptor, archive and LibreSSL selections. Four Linux large-write interruption probes and three host fstat probes passed. - Conventions, whitespace and public-header checks passed. The full debt-fold check reported the same unmatched libwebrtc fragment on integrated main and this head. The header audit covered 413 libraries and 34,810 exports. The [hosted eligibility check](https://github.com/boykopovar/AnyPS5/actions/runs/44908119846/job/136857959182) rejected this head because main advanced with #24382's socket buffer checks. The Windows and Linux build jobs were skipped. The reads and transport prerequisites are resolving the shared conflict before the next composed build. Upstream review and bench validation remain pending. Local runs cover focused host fixtures. Title, console, macOS and GPU execution are outside this validation. </details> <details><summary>Previous LibreSSL fixture repair, CI and overlap evidence at c76cc791de9fd7f0e68f0d53676879d25ebef470</summary> ### What Head `c76cc791de9fd7f0e68f0d53676879d25ebef470` merges the LibreSSL fixture repair from published #12688 at `59991e7d5e186a075c78bd7b55718ce6bb63b59f`. The fixture injects the requested interruption, then uses the retained socket owner's transfer callback to preserve guest blocking behavior on a nonblocking host socket. The strict next-call handshake and interruption assertions remain. This merge changes only the shared LibreSSL test helper and retains the published write cancellation and Windows loader fixes. ### Tested Release builds and focused tests on this PC at `c76cc791de9fd7f0e68f0d53676879d25ebef470`: - Windows 11, WinLibs GCC 15.2.0 r7. **839 focused tests passed**, zero failures and zero skips. The seven scoped patched tests also passed. The loader opened all nine staged modules, and the three cancellation imports still resolve to patched libkernel. - Debian on WSL2 Linux 6.6.87.2, GCC 14.2.0. **919 focused tests passed**, zero failures and zero skips. Four large-write chunk interruption probes and three host fstat probes passed. - Both platforms passed all four LibreSSL I/O groups, all three TLS engine groups, and the archive and write-cancellation selections. The earlier [hosted transport failure](https://github.com/boykopovar/AnyPS5/actions/runs/44867082839/job/136733827952) reproduced locally at the exact preceding head. The fixed Windows transport tests each passed 8 consecutive runs. - Conventions, debt fragments, whitespace and the public-header audit passed. The audit covered 413 libraries and 34,805 exports. GitHub reports 22 successful checks and one skipped Linux job at this head. The [hosted Windows job](https://github.com/boykopovar/AnyPS5/actions/runs/44874602004/job/136760039882) passed after the LibreSSL fixture repair. The local Linux results above are from a separate run. Both prerequisite PRs remain open, and upstream review and bench validation remain pending. Local runs cover focused host fixtures. Title, console, macOS and GPU execution are outside this validation. Rechecked all 71 distinct PR refs in the [overlap report](https://github.com/boykopovar/AnyPS5/pull/12700#issuecomment-6487267896) against its base `b8271ad76c97526637d1bcdd4dff3009c6c14350` and this head. Fifty-one refs already conflicted with the base, and 17 more conflicted when composed with this stack. The three textually clean combinations are #24322 and its follow-ups #24910 and #24917. Their build files replace the original socket and file sources with separate compilation units. If that refactor lands, carry the cancellation and descriptor changes into the compiled units for libkernel and libSceNet, including the patch-preserved C entries. Preserve #24382's buffer checks and #24065's close and abort wakeups when composing those independent fixes. The duplicate `recvfrom` and `sendto` notices refer to existing exports: main and this head each have one definition and one canonical declaration. The dependency order remains #12682, then #12688, then #12700. These are source and merge checks. </details> <details><summary>Previous Windows loader fix and CI evidence at 8637b820cc5e03d2e658f4eed8af5f2de779862b</summary> ### What Fix the Windows loader error for the forwarded POSIX write path. Head `8637b820cc5e03d2e658f4eed8af5f2de779862b` merges published #12688 at `7935169d1605d995040076bee0b6128df94a690c` on top of the existing writes branch. It keeps the integrated upstream main at `5e97fdf3415656bef6c786487517982d0a0920e6`. Native registration for forwarded send and sendto lives in libkernel, which holds it through the libSceNet callback. libSceNet uses the three C entries preserved by the NID patcher for active state, interruption and restart control. This preserves partial send progress, socket timeout handling and the captured Winsock error. The composition includes the corresponding receive fix and main's archive-backed pread error translation. ### Tested Release builds and focused runtime tests on this PC at `8637b820cc5e03d2e658f4eed8af5f2de779862b`: - Windows 11, WinLibs GCC 15.2.0 r7. **832 focused tests passed**, zero failures and zero skips. The forwarded-socket fixture includes blocking send cancellation, partial sends, close wakeups and a saturated sendto. The fixture also passed five consecutive runs. - Debian on WSL2 Linux 6.6.87.2, GCC 14.2.0. **912 focused tests passed**, zero failures and zero skips. Four large-write chunk interruption probes and three host fstat error probes also passed. - On published predecessor `bf7939216ab7b00a77633b222f5b036713bfde08`, patched libSceNet failed to load with Windows error 127. PE inspection found five C++ ThreadCancel imports absent from patched libkernel. At the current head, patched libSceNet imports the three C entries and patched libkernel exports all three. The staged loader check loaded 9 patched modules, and all 7 scoped patched tests passed, including the loader, Net socket options and LibreSSL/LibreSSL3 NID checks. - Conventions, debt fragments, whitespace and the public-header audit passed. The audit covered 413 libraries and 34,805 exports. The [hosted Windows job](https://github.com/boykopovar/AnyPS5/actions/runs/44867082839/job/136733827952) reported one failing fixture, `guest_libressl_ssl_io_transport` (`0xc0000409`). Local reproduction at this exact head hit the retry-handshake assertion in `GuestLibreSslSslIo.cpp` at line 1161. The handshake, data and shutdown groups passed locally. The [same fixture failed in #12688](https://github.com/boykopovar/AnyPS5/actions/runs/44866166860/job/136733463096). The transport prerequisite is correcting the fixture so the test double uses the backing socket callbacks while keeping the interruption assertions. Hosted Windows validation, the open prerequisites and upstream validation remain pending. The local results cover focused host fixtures. Title, console, macOS and GPU execution are outside this validation. Earlier source reviews and test runs below are pinned to their respective heads. </details> <details><summary>Previous archive integration evidence at bf7939216ab7b00a77633b222f5b036713bfde08</summary> ### What Integrate main's archive-backed file mapping (#11625) through the published transport prerequisite. Head `bf7939216ab7b00a77633b222f5b036713bfde08` merges #12688 at `dd3e4aa0de0548d820b4aa85a5c6c61ce3ae3683` and upstream main through `5e97fdf3415656bef6c786487517982d0a0920e6`. The merge preserves main's POSIX archive error translation inside the `pread` cancellation point and descriptor admission. The existing writes still preserve partial progress on interruption and finalize synchronous writes once per transfer. ### Tested Release builds and focused tests on this PC at `bf7939216ab7b00a77633b222f5b036713bfde08`: - Native Windows, WinLibs GCC 15.2.0 r7. **832 passed**, zero failures and zero skips. - Debian container on WSL2 Linux 6.6.87.2, GCC 14.2.0. **912 passed**, zero failures and zero skips. - Both platforms ran all five archive fixtures, including mapped-file failures and damaged backing, alongside write and read cancellation, synchronous writes, socket transfers, descriptor reuse, vector and positioned I/O, and AIO. - The four Linux write-chunk interruption probes and three Linux host `fstat` error probes passed again against the rebuilt libraries. - Conventions, debt fragments, whitespace and the public-header audit passed. The audit covered 413 libraries and 34,805 exports. The libkernel progress scan still reports the same eleven exports against the integrated main. A scanner-only control isolates the inherited Windows blocking-stream receive guard, as documented in the previous-head evidence below. The two prerequisite PRs, exact-head CI, and upstream review and bench remain pending. [Marc's focused source review](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-6000763541) covers the previous large-file integration head. These runs cover focused host cases. Title, console, macOS and GPU execution are outside this validation. </details> <details><summary>Previous large-file integration evidence at c567dd9678d10713bc7047d421acc9406671d02c</summary> ### What Resolve the large-file integration after main's #24076. Head `c567dd9678d10713bc7047d421acc9406671d02c` carries the previously published write history, #12688 at `804d854d2bdacb49116521eb6a7c0cba5e45c1d7`, and main through `05349cacbabe201178ea4999e0dba1076d3b5f15`. [Compare the refreshed transport and write heads](https://github.com/Felipebmaitan/AnyPS5/compare/804d854d2bdacb49116521eb6a7c0cba5e45c1d7...c567dd9678d10713bc7047d421acc9406671d02c). Each native chunk of a large regular-file write can now be interrupted. The write returns the bytes completed before interruption, positioned transfers preserve the descriptor offset, and synchronous completion runs once for the aggregate write. The published reads and transport changes carry the read accumulation, retained-socket shutdown wake, and checked accept composition. ### Tested Release builds and focused CTest on this PC at `c567dd9678d10713bc7047d421acc9406671d02c`: - Windows 10.0.26300, WinLibs GCC 15.2.0 r7: **832 passed**, zero failures and zero skips. - Debian container on WSL2 Linux 6.6.87.2, GCC 14.2.0: **913 passed**, zero failures and zero skips. The Unix large-file fixture exercised transfers over 2 GiB, including vector I/O, positioned reads, and AIO. - Both selections covered write cancellation, synchronous writes, descriptor reuse, shared memory, stream close, read/shutdown, and socket and libSceNet forwarding. - Three disposable Linux probes injected host `fstat` errors with seccomp. They confirmed that a pending guest interruption plus host `EINTR` preserves completed bytes, and that otherwise unrelated host metadata failures propagate. - Four additional Linux probes interrupted `write`, `pwrite`, `writev`, and `pwritev` with host `SIGINT` immediately after the first 1 GiB chunk. Each API returned exactly 1 GiB, delivered one deferred signal, and issued no second host transfer. File size and positioned and unpositioned descriptor offsets matched the bytes written. - Conventions, debt-fragment and whitespace checks, and the public-header audit passed. The header audit covered 413 libraries and 34,780 exports. The function-name scan found shared entry points in the stack and in open ksem PRs #24487 and #24488, which cover descriptor error rules. The [progress report for `4387b62` → `c567dd9`](https://github.com/boykopovar/AnyPS5/pull/12700#issuecomment-6592829478) counts libkernel at 719/758 before and 708/758 after. Reproduced both counts in the scanner. A temporary source copy changing only the marker for the inherited Windows blocking-stream `MSG_PEEK | MSG_WAITALL` receive gap restored exactly the eleven flagged exports. The scanner follows the shared `Transfer` helper across platform, direction, and flag guards, including through forwarding aliases. The gap applies to the guarded receive combination. Sends pass `send=true`, and accept passes zero flags. This is a scanner control. The production marker and debt remain in the transport prerequisite. Exact-head CI, the two open prerequisites, and maintainer review and bench remain pending. Title, console, macOS, and GPU execution are outside this validation. </details> <details><summary>Previous write integration and independent review at caeb7f4984210b6b4aa715cf0d20acdf4a7eb55e</summary> ### What Head `caeb7f4984210b6b4aa715cf0d20acdf4a7eb55e` preserves the previously published write commits. It merges the published reads and transport layers through #12688 and upstream main `cb734a9eb84a35717372d1101fa946b68ebe3374`. [Compare transport to this head](https://github.com/Felipebmaitan/AnyPS5/compare/c5c5917dcb067b566811d8692d86cd0eae59f12c...caeb7f4984210b6b4aa715cf0d20acdf4a7eb55e). POSIX writes retain completed byte counts across deferred cancellation, including partial pipe and stream-socket transfers. The composition keeps the transport's retained-socket shutdown wake and `TransferKind::Accept`, main's checked socket addresses and vector copies, and libSceNet forwarding. `sendmsg` holds one descriptor admission from socket lookup through the final send. Windows writes validate the native handle before CRT I/O. The independent review of `fbee14dc27bed22957213358c868617ecde78f86` found a blocked forwarded-send cancellation and close path and a flush-error classification bug. Forwarded POSIX sends now register for interruption, preserve partial progress, and retain the original Winsock error on the nonblocking path. Direct SCE and libSceNet writes retain their behavior. The synchronous-write path distinguishes a flush interruption from an unrelated failure, even when a guest signal is pending. ### Tested Release builds and focused CTest on this PC at `caeb7f4984210b6b4aa715cf0d20acdf4a7eb55e`: - Windows 10.0.26300, WinLibs GCC 15.2.0 r7: **822 passed**, zero failures and zero skips. This includes 405 write cases, Windows restricted-right pipes, named shared memory, libSceNet forwarding, and shutdown. - Debian container on WSL2 Linux 6.6.87.2, GCC 14.2.0: **904 passed**, zero failures and zero skips. This includes 430 write cases, shared-memory preflight, SCM_RIGHTS, and native socket mode. Both platforms ran all 92 synchronous-write cases, main's `sceKernelRdup` fixture, descriptor access, stream close, and SSL transport. - The augmented forwarded-socket fixture checks partial sends under cancellation and POSIX close, and cancellation of a saturated forwarded `sendto`. The fixture rejected the earlier Windows candidate. Five new interrupted flush cases also failed against that candidate by losing the returned `EIO`; the five uninterrupted controls passed. All ten flush cases and the forwarded-socket fixture pass on the final head. The forwarded-socket fixture also passed five consecutive Windows runs. - Three separate Linux probes against the exact built libkernel used a per-thread seccomp filter to inject errors from the actual host stat syscall. Host `EINTR` with a pending guest interruption preserved completed bytes and skipped the flush. Host `EINTR` without a guest interruption and host `EIO` with one propagated their original exceptions. The probes ran from a disposable test executable. - Conventions, debt-fragment validation, whitespace, and the public-header audit passed. The audit covered 413 libraries and 34,771 exports. The function-name overlap scan recorded #23341 and #24382 as related open socket work. Neither is a dependency of this refresh. These are focused runtime selections. Console, title, macOS, and GPU execution were outside this run. Cancellation overhead is still unmeasured. The prerequisite PRs, exact-head CI, maintainer bench, and maintainer review remain pending. </details> <details><summary>Historical evidence and previous description at bf740fcd275bc7e9c8a78cbfce94da554e0e78b0</summary> ### What Published head `bf740fcd275bc7e9c8a78cbfce94da554e0e78b0` preserves November writes `6076fc5ca39d40aad6e69b27a41a50f4af3bc836`, exact published transport `8f34999f2fad40fcf704765c3dedcafe5d157fa7` and reads `32121ca48d0abf5e1c11e7c601636d10ec8cb77d` through ordinary merge history. The refreshed stack includes fetched main `4138defef7c468835190768e5143e411bce92d6a`; previously declared landed prerequisites retain their authorship/history. Address [Dean's inherited shutdown integration request](https://github.com/boykopovar/AnyPS5/pull/12700#issuecomment-6672546991) by composing the reviewed reads/transport repair. Preserve all three receive-wrapper post-wait ReceiveShut checks and receiver arguments, the retained-socket shutdown wake, actual-cancellation separation and transport's explicit TransferKind::Accept. The write-specific sendto merge keeps main's paired Unix-socket checks before GuestArena host-read preparation. No accept-owner branch was edited and no new milestone behavior is introduced. Address the outstanding SyncWrites exception finding. Catch only a distinct InterruptedFstat emitted for actual host fstat errnoEINTR. Handle a metadata-hook reported EINTR explicitly when an I/O interruption is active. Unsupported classifications and other metadata/flush runtime exceptions now propagate instead of being converted to an interrupted flush or ordinary write result. Positive completed progress and the existing SCE boundary remain unchanged. The missing MSG_DONTWAIT FreeBSD citation is restored in the owning transport prerequisite; its production blocking PEEK|WAITALL throw/debt and implemented nonblocking tests remain. Dependency order is reads #12682 -> transport #12688 -> writes #12700. [Write increment over exact transport prerequisite](https://github.com/boykopovar/AnyPS5/compare/8f34999f2fad40fcf704765c3dedcafe5d157fa7...bf740fcd275bc7e9c8a78cbfce94da554e0e78b0). This updates the existing write topic; the PRs remain open for maintainer review. ### Tested Fresh exact-head Release validation on this PC, CPU builds capped at two jobs: - **875/875 Windows** focused cases pass (Windows10.0.26300, WinLibs GCC15.2; 51.01 s total). - **927/927 Linux** focused cases pass (Ubuntu24.04 imav-tao WSL2/kernel6.6.87.2, GCC13.3; 43.72 s total). - Both relevant production libc/libkernel/libSceLibcInternal/libkernel_sys/libSceNet/libSceSsl graphs and fixtures rebuilt from this worktree. Selections include read/write cancellation, pipe/socket progress, descriptor duplication/close/reuse, shared/positioned metadata waits, signals, context retirement, stream-close barriers, append/vector writes, socket native/dontwait/host-write behavior and SSL transport. They are focused selections, not the entire project suite; no skipped CI job is counted as executed validation. - **82/82 Windows synchronous-write cases**, including **20 new cases** across write, writev, pwrite, libkernel_sys pwrite and pwritev. Metadata and flush hooks throw a known unknown-gap exception after a real native pipe wait, with and without pending signal delivery. Checks require original exception text, existing `ab` content, no replay, released descriptor admission, once cleanup/TSD and correct signal count. - Regression control: composed production baseline `c8e26536e858da234f071beafadd62f4e291fc3b` plus the new fixture fails **10/20**, all interrupted cases losing the exception; all ten no-interruption cases pass (1.50 s total). The repaired candidate passes the 20 cases and the complete 82-case selection; Linux's final 927-case run includes them. This executes real library/cancellation paths, not an extracted SyncWrites harness. Actual kernel fstat(EINTR) was not fault-injected; that narrowly tagged path was inspected statically, while native-interrupted metadata hooks are exercised. - Two fresh independent read-only adversarial MICRO/MACRO reviews of exact `bf740fcd275bc7e9c8a78cbfce94da554e0e78b0`: no confirmed new must-fix defect. Both inspected production wrappers/lifetimes/positive progress and composition, not only the new tests; neither ran binaries. The transport prerequisite separately records its initial P2 accept finding, failing production counterexample, operation-kind fix, two fresh re-reviews and shutdown-notification removal controls. - Public-header audit: **407 libraries / 30,931 exports**, unique owning declarations and umbrella coverage pass. Required conventions against origin/main: **0 errors**, one existing 1,084-character context-debt warning. Isolated overlap scan: **1,763 heads**, **79 uncomparable shared-file branches**; failed closed, so no blanket overlap clearance or new contributor-order agreement is claimed. Known limits remain explicit: original FreeType submodule state preserved; WSL userfaultfd protection unavailable with the runtime's memory-comparison fallback. No fresh PS5, title, macOS, GPU, allocation-failure or paired same-scene trace_digest qualification, and no performance claim. Per-call allocation/signal-mask/handle cost and cancelling-caller spin remain unmeasured nonblocking follow-ups. Unix retained SSL polling, macOS unconnected-datagram/ancillary races, separately established address-waking intermittency and the historical Windows22621 sigjump cause are not repaired by these passing tests. Maintainer scene/bench, new-head CI and maintainer review remain separate gates. Earlier approvals and results below are historical, not approval/execution of this head. <details><summary>Historical evidence and status at earlier heads (superseded where stated above)</summary> ### What Head `6076fc5ca39d40aad6e69b27a41a50f4af3bc836`, integrated main `d23df92b3805fea21493a73cbed8835c9e8548d0` through ordinary merge history, preserving every previously published head and maintainer commit. Implement POSIX write cancellation above transport, preserving synchronous completion, partial progress, deterministic stream-close controls, the main-owned #9019 shared PosixPwrite provider and the separate SCE behavior. Inherit the maintainer-requested removal of blocking PEEK|WAITALL throw assertions from transport. Keep the production gap marker/debt, implemented nonblocking coverage and delayed partial-buffer tests. #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. Current source comparison: `git diff 95ce5937f26f90a44448271a17fb3d105be6128c 6076fc5ca39d40aad6e69b27a41a50f4af3bc836` spans 17 files. The maintainer merged main separately into the published branches; the current lower head is not an ancestor of this head. This is a direct tree comparison; the main-based Files view remains cumulative. No retarget or history replacement was performed. [Consolidated maintainer response and evidence](https://github.com/boykopovar/AnyPS5/pull/12688#issuecomment-6657001460). ### Tested Historical contributor AMD evidence: [TechLevelZero, 2026-11-05 13:14 UTC](https://github.com/boykopovar/AnyPS5/pull/12700#issuecomment-6658920823), tested parent writes 2572b7019d9e420854c7617f93d1aa3c99cf62bf merged onto main e772fb25cc72ee5faf77847f06bbc69533016e82. 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,681 passed / 15 failed / 71 skipped**, with ten failures also on main and five unstable on main, zero reported new failures. Validation/no-cache was enabled; 1,409 tests ran on the GPU, with no reported new IDs and four IDs already on main. guest_job_manager_worker_spin was validated but not compared with main; agc_graphics_profile_draw timed out in parallel and passed the 360-second retry. Long-running tests and baseline failures/skips remain recorded, not an all-green claim. The displayed 4,767-of-4,074 selection count differs from the linked 07-select.log's 4,730/4,804; no unique whole-suite coverage ratio is inferred. This is contributor-reported evidence, not our GPU execution or an independent audit of every linked log. Compared the tested parent to current 6076fc5ca39d40aad6e69b27a41a50f4af3bc836: the changes are MainThreadMacOs.cpp, GuestMainStackMove.cpp, GuestNpCommonRuntime.cpp and kernel debt; the I/O implementation and requested socket fixtures are unchanged. That source comparison does not turn the old head/main run into blanket current-head qualification. Native Windows/current-head results are separately recorded below; the report does not resolve Windows 22621 or the old accept macOS timeout, qualify unpublished runtime candidates, or supply title performance/paired trace_digest evidence. No new I/O fix or source push follows from this report. Current writes bot-report audit at 6076fc5ca39d40aad6e69b27a41a50f4af3bc836: the live progress report compares main d23df92b3805fea21493a73cbed8835c9e8548d0 with this head. Reproduced libkernel main 703 done / 55 todo and head 696 / 62. A temporary scanner-only copy replacing only Transfer's required blocking-stream receive PEEK|WAITALL marker with a generic throw restores 703 / 55 and precisely accept/recv/recvfrom/recvmsg/send/sendfile/sendto. Helper-name propagation does not evaluate platform/direction/flag guards. Send paths cannot enter the receive-only guard and accept passes no peek/waitall flags; receive paths retain the documented Windows gap. This classification control supplies no runtime qualification. The production marker/debt and scanner remain unchanged, as do the maintainer-requested test removals; no unconditional seven-function stub replacement or new source fix is established. The overlap snapshot updated 2026-11-05 12:56:22 UTC has **21 compared / 84 uncomparable branches**, against that same main. #15698 is confirmed merged and satisfied in the stack; other removed rows are not presumed merged or cleared. Re-read all 21 compared live heads: 20 match the latest accept selected-source scan. #14085 advanced to fd8e70930fdfba76e3326ac19149b42478cc0543; inspected its delta from 4e67d63a85551ed560845b3abc7766a1eab89ff6. Process.cpp, SSL debt and libc debt are unchanged, and the kernel-debt change carries main's macOS process-start-block retention already present in writes. Preserve that lifetime description alongside deferred POSIX I/O delivery when later composed; no new helper dependency or joint-owner runtime pass is inferred. The earlier selected-source composition requirements remain, including checked-copy/error ordering, stream-close and retained descriptor ownership, socket address/SCM_RIGHTS behavior and opaque context identity. All 84 uncomparable branches remain uncleared. Depends on stays #12682, #12688; #12149/#9019 are satisfied in main. Archive #11625 is untouched. The current Windows success and remaining macOS/Windows 22621 limits are recorded below. No source push, retarget or repeated overlap comment accompanies this audit. Current-head Windows verification: [native Windows job](https://github.com/boykopovar/AnyPS5/actions/runs/42028991879/job/127250811049) succeeds at `6076fc5ca39d40aad6e69b27a41a50f4af3bc836`. 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 `6076fc5ca39d40aad6e69b27a41a50f4af3bc836`, 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 a564d53d8feacc77e94cc6301f35b41175fff6a0 (reads), 95ce5937f26f90a44448271a17fb3d105be6128c (transport) and 6076fc5ca39d40aad6e69b27a41a50f4af3bc836 (writes). Those published commits were adopted unchanged; only accept needed a new ordinary merge of the maintainer's writes head, producing 82eaaf776697625bd9e186d94f7e87c6301f4c30. 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. Writes overlap refresh 2026-11-05 12:00:00 UTC at this head: **22 compared / 94 uncomparable branches**, main e772fb25cc72ee5faf77847f06bbc69533016e82. Re-read all 22 live heads. Nineteen match the selected new/changed source patches recorded in the [transport description](https://github.com/boykopovar/AnyPS5/pull/12688) at 40ca3c447b7ed37e69d7c42bf8670d28c1a3afd7. Preserve the recorded checked-copy/error ordering, host-log/FILE-before-descriptor locking and stream-close controls, Windows address/zero-port/SourceFaults ordering, Native cancellation scopes, received-socket/SCM_RIGHTS ownership, context layout/copy bounds plus opaque mc_spare identity, macOS stack-region lifetime, and SSL handshake error classification with retained transport ownership when later composed. No whole-branch or joint-runtime clearance is inferred from those selected-source reviews. The three additional compared rows retain their prior audited heads: #8463 f4b87cbb57fbffede08451f173667844865cc0a1 (checked sendmsg input/control copying and failure order), #14043 3714f2a16accc46133ffee29d41ba45f7d0f3a9e (connected socketpair sendto address/EISCONN behavior), and #15219 bf4f7b7239d2516172cc41282b4171c1556b6602 (affinity input-size handling and explicit unsupported ranges/debt). Later composition must preserve their independent coverage/error ordering alongside write admission and partial-progress behavior; they introduce no helper this write implementation requires. The 94 uncomparable PR numbers match the transport report, but writes adds Stdio.cpp or descriptor-control shared files to #5021/#7121/#9566. These rows remain unverified, not cleared by the transport audit or the focused tests. The coordinated pre-push scan reported 100 uncomparable branches at the top accept tree; the counts have different scope. The existing-main sendto name/NID notice was checked: main and this writes head each retain exactly one implementation definition and canonical declaration, with _sendto forwarding to the existing export; no additional registration is warranted. Depends on remains #12682, #12688; #12149/#9019 are satisfied in main. No new source push, retarget, import, order agreement or combined-owner runtime pass follows from this refresh. All 94 uncomparable branches remain uncleared; archive #11625 stays untouched. No repeated overlap comment posted; the existing consolidated response and runtime/Windows/macOS limits remain applicable. Progress-report audit at this head: the [e772fb2 → 2572b70 report](https://github.com/boykopovar/AnyPS5/pull/12700#issuecomment-6592829478) labels seven socket exports reverted. Reproduced with the current scanner: libkernel main 703 done / 55 todo, this head 696 / 62. In a temporary scanner-only copy, replacing only Transfer's required blocking-stream receive PEEK|WAITALL NotImplemented marker with a generic throw restores 703 / 55 and exactly accept/recv/recvfrom/recvmsg/send/sendfile/sendto. The helper-name propagation does not evaluate platform, send/receive or flag guards. Send paths cannot take that receive-only guard, and accept passes no PEEK|WAITALL flags; receive paths retain the documented unsupported Windows combination alongside their implemented behavior. This is classification evidence, not runtime qualification. The production marker, debt and scanner are unchanged, consistent with the maintainer request to remove tests requiring the missing feature. No unconditional seven-function stub replacement or new source fix follows from this report. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> 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 32169af1dc395b182370cdf973687d313d33bfc4, transport 70120f1b8604f9a5f4f96cb18fbf299204acdeec, writes fbd44d33266946006afd8ca4acc55e2bbe7d91e6. Accept's prior review is COMMENTED and it remains draft. No new approval is inferred. The old accept macOS x86-64 [job126136729127](https://github.com/boykopovar/AnyPS5/actions/runs/41696471846/job/126136729127) 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. </details> <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #12682, #12688 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
CnRJay commented 2026-11-01 19:50:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:50:56Z.

Review: COMMENTED


The diff is cumulative (+7.5k) over #12682 and #12688, so the Files tab cannot be reviewed as the write step alone; the same remarks as on #12682 apply to the shared layer. In particular, GuestDescriptorAccess::Get(int) takes a global static mutex and runs erase_if across the whole descriptor map on each call, so every write, send, read and recv pays an O(open descriptors) scan under one process-wide lock. The close path polls with wait_for(1ms).

Unblocks: none again sits next to the PPSA02429 evidence. If a title needs write cancellation with partial progress, please name it and show the log line that reaches it on main; otherwise this is 7.5k lines with no consumer. And for the write path, which a networked title calls on every frame, tools/trace_digest.py summaries of main versus the change from one machine and scene would settle the cost question.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729927194 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-5729927194). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-11-01T19:50:56Z. **Review:** COMMENTED --- The diff is cumulative (+7.5k) over #12682 and #12688, so the Files tab cannot be reviewed as the write step alone; the same remarks as on #12682 apply to the shared layer. In particular, `GuestDescriptorAccess::Get(int)` takes a global static mutex and runs `erase_if` across the whole descriptor map on each call, so every write, send, read and recv pays an O(open descriptors) scan under one process-wide lock. The close path polls with `wait_for(1ms)`. `Unblocks: none` again sits next to the PPSA02429 evidence. If a title needs write cancellation with partial progress, please name it and show the log line that reaches it on `main`; otherwise this is 7.5k lines with no consumer. And for the write path, which a networked title calls on every frame, `tools/trace_digest.py` summaries of `main` versus the change from one machine and scene would settle the cost question.
XairRrR commented 2026-11-03 17:46:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T17:46:38Z.

Review: APPROVED


Reviewed — approved

The write-cancellation layer builds on main and its focused tests pass. A mutation of ThreadCancel::IoWrite makes the cancel, partial, close and signal tests fail, and I found nothing blocking.

What I ran

Head 49b52e23db6b683dffe07daee2b2fdda6c8194ce, main 1e658521a0a599872612bb91949311e2956b5283, merged with --no-ff into a clean worktree (Release, GCC 14.2.0, Ninja, Debian 13 VM, 32 vCPU).

git diff --check 1e658521a0a599872612bb91949311e2956b5283...49b52e23db6b683dffe07daee2b2fdda6c8194ce
python3 tools/check_conventions.py --base 1e658521a0a599872612bb91949311e2956b5283
# negative control (see below), then restore and rebuild
ninja -C build -j32 -l32 libkernel libkernel_sys guest_kernel_sys_pwrite_tests guest_io_write_sync_cancel_tests guest_io_shared_write_cancel_tests guest_io_write_cancel_tests
ctest --test-dir build -j8 --test-load 32 -R "^(guest_io_write_|guest_kernel_sys_pwrite|pwrite_sys__)"
ctest --test-dir build -j8 --test-load 32 -R "^(guest_io_context|guest_io_signal|guest_io_read|guest_io_descriptor|guest_stream_close|guest_socket_transfer|guest_socket_native|guest_underscore)" --repeat until-fail:3

The prepared full run (4551 tests) was also available; its results are in the table below.

Results

Check Result
git diff --check clean
check_conventions.py 0 errors, 1 warning (the existing docs/dev/debt/libSceSsl.md debt-length warning, which the author already mentions)
Configure / build / libs OK
Full test run (4551 tests) 0 new failures, 0 timeouts. 9 known failures also fail on main. guest_net_ctl is an unexpected skip, also on main
Write tests after restore (guest_io_write_*, guest_kernel_sys_pwrite*, pwrite_sys__*) 402/402 passed, 17.2 s wall
Context, signal, read, descriptor, stream-close, socket-transport and underscore-jump tests, --repeat until-fail:3 289/289 passed in each of the 3 repeats
Slowest test added by the PR guest_io_write_loopback__send__race at 8.5 s (limit 15 s); none near the 30 s rule
Vulkan validation not applicable: the PR changes no AGC, shader or VideoOut file

Negative control

  1. libkernel_sys only. Restoring core/libs/prx/libkernel_sys/{Export.cpp,Export.Discovery.cpp,include/Api.hpp} from main stops the new test executables from compiling, because they use the new pwrite_nid_postfix(int, const void*, size_t, int64_t) signature. That proves the tests depend on the new export, but it is not a runtime failure.

  2. Mutation of the write wrapper. I replaced ThreadCancel::IoWrite in core/libs/prx/libkernel/Pthread/include/Cancel.hpp:143 with { Check(); return call(); }. This keeps the pre-call check but removes the IoPoint interruption and the post-call cancellation and restart logic. I rebuilt libkernel, libkernel_sys and the four write test executables. 20 of 30 selected tests then failed:

    • pipe and loopback write/writev in the cancel, partial and close scenarios
    • sync write/pwrite_sys in the cancel and signal scenarios
    • shared-memory write/pwrite_sys in the cancel and close scenarios

    The zero and complete cases and the plain guest_kernel_sys_pwrite* tests still passed, as expected for that mutation. I then restored the merged file from 1411454abb41ef6b4047d02d51d6576e0950ccd0, rebuilt, and all 402 write tests passed. git status --porcelain is empty.

Findings

Blocking

None.

Non-blocking

  • An unrelated runtime_error can become EINTR during an interrupted synchronous write. See core/libs/prx/libkernel/File/src/DescriptorControl.cpp:681-695 (head).
    • SyncWrites catches every std::runtime_error thrown inside ThreadCancel::Native and turns it into EINTR whenever IoActive() && IoInterrupted().
    • Classify throws std::runtime_error for real gaps too, such as Unsupported(...) and the "unknown Windows file type" error (lines 148-163).
    • If one of those happens in the same window as an interrupt, it is reported to the guest as a retained positive write count with EINTR. That breaks the "unimplemented paths throw" rule for that window.
    • Suggested fix: convert only the metadata-query failure that the interrupt actually caused, for example a distinct exception type or a check of the fstat errno being EINTR, and rethrow everything else.
  • Per-call cost on every POSIX read and write while an I/O point is active.
    • The constructor at core/libs/prx/libkernel/Pthread/src/NativeIo.cpp:97-99 allocates a State with new on every native call.
    • On Unix it then makes three pthread_sigmask calls plus sigpending; on Windows it calls DuplicateHandle/CloseHandle.
    • The description says the immediate-path cost is unmeasured. This adds to the per-descriptor admission cost the author already lists, and it is a reasonable target for a later measured follow-up.
    • This is not a rule violation: the PR makes no speed claim.
  • Scope. The diff (68 files, +7282) is cumulative: it contains the open prerequisites #12149, #12682, #12688 and #9019, which are declared on the Depends on line.
    • I reviewed the write layer in detail: IoWrite/Io, the PosixPwrite_nid_no_patch and write/_write wrappers, SyncWrites, NativeIo, the scePthreadCancel wake loop and the Signals.cpp dispatch changes.
    • For the prerequisite code I only ran tests.
    • This approval should be read as applying to the write increment, with the prerequisites reviewed in their own PRs and merged first.
  • Debt entry lost its source. The MSG_DONTWAIT entry in docs/dev/debt/libkernel.md:281 no longer cites FreeBSD 11.4's soreceive_generic for the EWOULDBLOCK behaviour, and the old note about a blocking send larger than the socket buffer was removed. If that gap is really closed, removing the note is correct; the citation for the Unix behaviour is still worth keeping.

Not verified

  • Windows and macOS, including the Windows 22621 guest_io_context_sigjump hang the author reports and the macOS relinker timeout and fetch failure. This machine is Linux only.
  • The Windows-only paths, guest_io_write_only_pipe_tests and the ChangeStatus append-admission loop: they are not built on Linux.
  • Detailed code review of the prerequisite layers: reads, transport, underscore jumps and the shared pwrite from #9019.
  • The author's CI and local numbers (Windows 2,773/976/0, 660/660 composed, header audit). I did not reproduce them, apart from what the local test run shows.
  • Title behaviour (Human Fall Flat counts) and any performance effect.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5756968369 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-5756968369). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T17:46:38Z. **Review:** APPROVED --- # Reviewed — approved The write-cancellation layer builds on `main` and its focused tests pass. A mutation of `ThreadCancel::IoWrite` makes the cancel, partial, close and signal tests fail, and I found nothing blocking. ## What I ran Head `49b52e23db6b683dffe07daee2b2fdda6c8194ce`, `main` `1e658521a0a599872612bb91949311e2956b5283`, merged with `--no-ff` into a clean worktree (Release, GCC 14.2.0, Ninja, Debian 13 VM, 32 vCPU). ``` git diff --check 1e658521a0a599872612bb91949311e2956b5283...49b52e23db6b683dffe07daee2b2fdda6c8194ce python3 tools/check_conventions.py --base 1e658521a0a599872612bb91949311e2956b5283 # negative control (see below), then restore and rebuild ninja -C build -j32 -l32 libkernel libkernel_sys guest_kernel_sys_pwrite_tests guest_io_write_sync_cancel_tests guest_io_shared_write_cancel_tests guest_io_write_cancel_tests ctest --test-dir build -j8 --test-load 32 -R "^(guest_io_write_|guest_kernel_sys_pwrite|pwrite_sys__)" ctest --test-dir build -j8 --test-load 32 -R "^(guest_io_context|guest_io_signal|guest_io_read|guest_io_descriptor|guest_stream_close|guest_socket_transfer|guest_socket_native|guest_underscore)" --repeat until-fail:3 ``` The prepared full run (4551 tests) was also available; its results are in the table below. ## Results | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | 0 errors, 1 warning (the existing `docs/dev/debt/libSceSsl.md` debt-length warning, which the author already mentions) | | Configure / build / libs | OK | | Full test run (4551 tests) | 0 new failures, 0 timeouts. 9 known failures also fail on `main`. `guest_net_ctl` is an unexpected skip, also on `main` | | Write tests after restore (`guest_io_write_*`, `guest_kernel_sys_pwrite*`, `pwrite_sys__*`) | 402/402 passed, 17.2 s wall | | Context, signal, read, descriptor, stream-close, socket-transport and underscore-jump tests, `--repeat until-fail:3` | 289/289 passed in each of the 3 repeats | | Slowest test added by the PR | `guest_io_write_loopback__send__race` at 8.5 s (limit 15 s); none near the 30 s rule | | Vulkan validation | not applicable: the PR changes no AGC, shader or VideoOut file | ## Negative control 1. **libkernel_sys only.** Restoring `core/libs/prx/libkernel_sys/{Export.cpp,Export.Discovery.cpp,include/Api.hpp}` from `main` stops the new test executables from compiling, because they use the new `pwrite_nid_postfix(int, const void*, size_t, int64_t)` signature. That proves the tests depend on the new export, but it is not a runtime failure. 2. **Mutation of the write wrapper.** I replaced `ThreadCancel::IoWrite` in `core/libs/prx/libkernel/Pthread/include/Cancel.hpp:143` with `{ Check(); return call(); }`. This keeps the pre-call check but removes the `IoPoint` interruption and the post-call cancellation and restart logic. I rebuilt libkernel, libkernel_sys and the four write test executables. **20 of 30** selected tests then failed: - pipe and loopback `write`/`writev` in the `cancel`, `partial` and `close` scenarios - sync `write`/`pwrite_sys` in the `cancel` and `signal` scenarios - shared-memory `write`/`pwrite_sys` in the `cancel` and `close` scenarios The `zero` and `complete` cases and the plain `guest_kernel_sys_pwrite*` tests still passed, as expected for that mutation. I then restored the merged file from `1411454abb41ef6b4047d02d51d6576e0950ccd0`, rebuilt, and all 402 write tests passed. `git status --porcelain` is empty. ## Findings ### Blocking None. ### Non-blocking - **An unrelated `runtime_error` can become `EINTR` during an interrupted synchronous write.** See `core/libs/prx/libkernel/File/src/DescriptorControl.cpp:681-695` ([head](https://github.com/boykopovar/AnyPS5/blob/49b52e23db6b683dffe07daee2b2fdda6c8194ce/core/libs/prx/libkernel/File/src/DescriptorControl.cpp#L681-L695)). - `SyncWrites` catches every `std::runtime_error` thrown inside `ThreadCancel::Native` and turns it into `EINTR` whenever `IoActive() && IoInterrupted()`. - `Classify` throws `std::runtime_error` for real gaps too, such as `Unsupported(...)` and the "unknown Windows file type" error (lines 148-163). - If one of those happens in the same window as an interrupt, it is reported to the guest as a retained positive write count with `EINTR`. That breaks the "unimplemented paths throw" rule for that window. - Suggested fix: convert only the metadata-query failure that the interrupt actually caused, for example a distinct exception type or a check of the `fstat` errno being `EINTR`, and rethrow everything else. - **Per-call cost on every POSIX read and write while an I/O point is active.** - The constructor at `core/libs/prx/libkernel/Pthread/src/NativeIo.cpp:97-99` allocates a `State` with `new` on every native call. - On Unix it then makes three `pthread_sigmask` calls plus `sigpending`; on Windows it calls `DuplicateHandle`/`CloseHandle`. - The description says the immediate-path cost is unmeasured. This adds to the per-descriptor admission cost the author already lists, and it is a reasonable target for a later measured follow-up. - This is not a rule violation: the PR makes no speed claim. - **Scope.** The diff (68 files, +7282) is cumulative: it contains the open prerequisites #12149, #12682, #12688 and #9019, which are declared on the `Depends on` line. - I reviewed the write layer in detail: `IoWrite`/`Io`, the `PosixPwrite_nid_no_patch` and `write`/`_write` wrappers, `SyncWrites`, `NativeIo`, the `scePthreadCancel` wake loop and the `Signals.cpp` dispatch changes. - For the prerequisite code I only ran tests. - This approval should be read as applying to the write increment, with the prerequisites reviewed in their own PRs and merged first. - **Debt entry lost its source.** The `MSG_DONTWAIT` entry in `docs/dev/debt/libkernel.md:281` no longer cites FreeBSD 11.4's `soreceive_generic` for the `EWOULDBLOCK` behaviour, and the old note about a blocking `send` larger than the socket buffer was removed. If that gap is really closed, removing the note is correct; the citation for the Unix behaviour is still worth keeping. ## Not verified - Windows and macOS, including the Windows 22621 `guest_io_context_sigjump` hang the author reports and the macOS relinker timeout and fetch failure. This machine is Linux only. - The Windows-only paths, `guest_io_write_only_pipe_tests` and the `ChangeStatus` append-admission loop: they are not built on Linux. - Detailed code review of the prerequisite layers: reads, transport, underscore jumps and the shared `pwrite` from #9019. - The author's CI and local numbers (Windows 2,773/976/0, 660/660 composed, header audit). I did not reproduce them, apart from what the local test run shows. - Title behaviour (Human Fall Flat counts) and any performance effect. <!-- anyps5-bots job=2003 head=49b52e23db6b683dffe07daee2b2fdda6c8194ce -->
XairRrR commented 2026-11-03 18:26:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T18:26:47Z.

Review: APPROVED


Re-checked — approved

Two commits were added since 49b52e23. 085458a70c moves the Windows partial-writable-buffer recvfrom probe inside ReceiveNative's Transfer operation and makes Windows blocking stream MSG_PEEK | MSG_WAITALL throw through NotImplemented_nid_no_patch. 8957ad0b52 adds debt entries for the Unix SSL retained-transport poll wait. Checks and focused tests pass, and nothing blocking was found.

What changed since my last review

git range-diff shows commits 1–57 unchanged and two new ones. The source delta from 49b52e23 to 022410be covers 5 files:

  • core/libs/prx/libkernel/Socket/src/Udp.cpp
    • The PendingFits / DropDatagram / EFAULT probe moved from ReceiveFrom into the Transfer lambda (ReceiveNative, L1094-L1104). It runs only when partialBuffer && offset == 0.
    • A WSAEWOULDBLOCK from the probe now goes through the directional wait, cancellation and the single SO_RCVTIMEO deadline. Before, the probe ran once after WaitForTransfer and could fail on a datagram that had not arrived yet.
    • The blocking stream PEEK|WAITALL branch now throws instead of returning WSAEOPNOTSUPP.
    • All of this is under _WIN32. On Unix the new parameter is ignored.
  • Tests
    • GuestUdp.cpp gets CheckDelayedPartialReceive, which runs on every platform.
    • GuestSocketTransferProgress.cpp gets ReceivePeekWaitAll. This executable is registered only if(WIN32).
  • Debt
    • The MSG_DONTWAIT and MSG_WAITALL entries in docs/dev/debt/libkernel.md now say the combination throws.
    • New entries for the retained Unix SSL poll wait are in docs/dev/debt/libkernel.md and docs/dev/debt/libSceSsl.md.

The author's later comments document the macOS CI failures and their admin-retry status. They contain no reply to my previous findings.

What I ran

Head 022410beb3bbf13d1b984a95d25689f2cde6b90b, main 1e658521a0a599872612bb91949311e2956b5283, merged tree e23e8a01707afcbeee5b895ae743e8abd3ca67fa, in a clean worktree (Debian 13 VM, GCC 14.2.0, Release, Ninja).

git diff --stat 49b52e23db6b683dffe07daee2b2fdda6c8194ce 022410beb3bbf13d1b984a95d25689f2cde6b90b
git diff --check 1e658521a0a599872612bb91949311e2956b5283...022410beb3bbf13d1b984a95d25689f2cde6b90b
python3 tools/check_conventions.py --base 1e658521a0a599872612bb91949311e2956b5283
ninja -C build -j32 -l32 guest_udp_tests guest_ssl_transport_tests
ctest --test-dir build -j8 --test-load 32 -R "^(guest_udp|guest_ssl_transport|guest_socket_|guest_io_write_|guest_kernel_sys_pwrite)" --repeat until-fail:3 --output-on-failure
ctest --test-dir build -R "^guest_udp$" --repeat until-fail:5 --output-on-failure
# control: Udp.cpp from 49b52e23, rebuild, run guest_udp, restore from e23e8a01, rebuild
git status --porcelain
Check Result
git diff --check clean
check_conventions.py 0 errors, 1 warning (the existing libSceSsl.md debt-length warning)
Prepared full run (4551 tests, build.json) 0 new failures, 0 timeouts; 9 known failures, same as on main; guest_net_ctl unexpected skip, also on main
Focused selection (426 tests) 425 passed; guest_socket_options_multicast failed, a known main failure
guest_udp ×5 passed, 1.53–1.54 s each (limit 20 s)

Negative control

The production change is entirely under #ifdef _WIN32. I restored Udp.cpp from the previously reviewed head and rebuilt. guest_udp, including the new CheckDelayedPartialReceive, still passed, as expected on Linux. So the new case works as a cross-platform behaviour check on Linux but cannot catch a regression here. ReceivePeekWaitAll is built only on Windows. I restored the merged file and rebuilt; git status --porcelain is empty. The control for the Windows fix depends on the Windows CI run.

Previous findings

  • Unrelated runtime_error becomes EINTR during an interrupted synchronous write — Still open. SyncWrites is unchanged at DescriptorControl.cpp L684-L694. It still catches every std::runtime_error, including those from Classify. Non-blocking.
  • Per-call new State plus signal-mask syscalls in NativeIo — Still open. The code at core/libs/prx/libkernel/Pthread/src/NativeIo.cpp:97-99 is unchanged, and the description still says the cost is unmeasured. Non-blocking.
  • Cumulative scope — Still open as a note. My approval covers the write increment plus the two transport commits reviewed here. The prerequisites (#12149, #12682, #12688, #9019) are reviewed in their own PRs.
  • MSG_DONTWAIT debt entry lost the FreeBSD soreceive_generic citation — Still open. The entry at docs/dev/debt/libkernel.md:281 was edited again in this push and still cites no source for the Unix EWOULDBLOCK behaviour. Non-blocking.

New findings

Blocking

None.

Non-blocking

  • The same gap is recorded twice, and both new entries are split from their lists.
    • The poll gap appears at the end of docs/dev/debt/libkernel.md (L387-L388) and of docs/dev/debt/libSceSsl.md (L22-L23), with nearly the same text.
    • Each entry has a blank line in front of it, which breaks it off from the preceding list in the ### Functional section.
    • The libSceSsl entry links core/libs/prx/libSceSsl/Export.cpp, but the bare poll it describes is in libkernel's Udp.cpp: grep poll finds nothing in that Export.cpp.
    • Suggested fix: keep the full entry in libkernel.md, where the wait lives, and cut the libSceSsl entry to one sentence pointing to it. Also remove the blank lines.
  • The Windows probe's error path relies on the last WSA error surviving NativeError().
    • At core/libs/prx/libkernel/Socket/src/Udp.cpp:1104, if (error != 0) return -1; hands control back to Transfer, which reads WSAGetLastError() to choose between waiting and failing.
    • That is correct only if NativeError() and the FIONREAD path leave the probe's last error in place.
    • I could not exercise this on Linux. A comment-free WSASetLastError with the matching native code before return -1 would make the contract explicit.

Not verified

  • Windows execution of the new code: the moved probe, the PEEK|WAITALL throw, and guest_socket_transfer_progress. This machine is Linux only, and the author reports only MinGW syntax checks for this head.
  • macOS: the two failed previous-head macOS jobs, and the Windows 22621 guest_io_context_sigjump hang.
  • The author's 660/660, 9/9 and 11/11 runs: these are author-reported, and I did not reproduce them beyond the focused selection above.
  • Detailed review of the prerequisite layers: as before, I only ran their tests.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5757475896 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-5757475896). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T18:26:47Z. **Review:** APPROVED --- # Re-checked — approved Two commits were added since `49b52e23`. `085458a70c` moves the Windows partial-writable-buffer `recvfrom` probe inside `ReceiveNative`'s `Transfer` operation and makes Windows blocking stream `MSG_PEEK | MSG_WAITALL` throw through `NotImplemented_nid_no_patch`. `8957ad0b52` adds debt entries for the Unix SSL retained-transport `poll` wait. Checks and focused tests pass, and nothing blocking was found. ## What changed since my last review `git range-diff` shows commits 1–57 unchanged and two new ones. The source delta from `49b52e23` to `022410be` covers 5 files: - **`core/libs/prx/libkernel/Socket/src/Udp.cpp`** - The `PendingFits` / `DropDatagram` / `EFAULT` probe moved from `ReceiveFrom` into the `Transfer` lambda (`ReceiveNative`, L1094-L1104). It runs only when `partialBuffer && offset == 0`. - A `WSAEWOULDBLOCK` from the probe now goes through the directional wait, cancellation and the single `SO_RCVTIMEO` deadline. Before, the probe ran once after `WaitForTransfer` and could fail on a datagram that had not arrived yet. - The blocking stream `PEEK|WAITALL` branch now throws instead of returning `WSAEOPNOTSUPP`. - All of this is under `_WIN32`. On Unix the new parameter is ignored. - **Tests** - `GuestUdp.cpp` gets `CheckDelayedPartialReceive`, which runs on every platform. - `GuestSocketTransferProgress.cpp` gets `ReceivePeekWaitAll`. This executable is registered only `if(WIN32)`. - **Debt** - The `MSG_DONTWAIT` and `MSG_WAITALL` entries in `docs/dev/debt/libkernel.md` now say the combination throws. - New entries for the retained Unix SSL `poll` wait are in `docs/dev/debt/libkernel.md` and `docs/dev/debt/libSceSsl.md`. The author's later comments document the macOS CI failures and their admin-retry status. They contain no reply to my previous findings. ## What I ran Head `022410beb3bbf13d1b984a95d25689f2cde6b90b`, `main` `1e658521a0a599872612bb91949311e2956b5283`, merged tree `e23e8a01707afcbeee5b895ae743e8abd3ca67fa`, in a clean worktree (Debian 13 VM, GCC 14.2.0, Release, Ninja). ``` git diff --stat 49b52e23db6b683dffe07daee2b2fdda6c8194ce 022410beb3bbf13d1b984a95d25689f2cde6b90b git diff --check 1e658521a0a599872612bb91949311e2956b5283...022410beb3bbf13d1b984a95d25689f2cde6b90b python3 tools/check_conventions.py --base 1e658521a0a599872612bb91949311e2956b5283 ninja -C build -j32 -l32 guest_udp_tests guest_ssl_transport_tests ctest --test-dir build -j8 --test-load 32 -R "^(guest_udp|guest_ssl_transport|guest_socket_|guest_io_write_|guest_kernel_sys_pwrite)" --repeat until-fail:3 --output-on-failure ctest --test-dir build -R "^guest_udp$" --repeat until-fail:5 --output-on-failure # control: Udp.cpp from 49b52e23, rebuild, run guest_udp, restore from e23e8a01, rebuild git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | 0 errors, 1 warning (the existing `libSceSsl.md` debt-length warning) | | Prepared full run (4551 tests, build.json) | 0 new failures, 0 timeouts; 9 known failures, same as on `main`; `guest_net_ctl` unexpected skip, also on `main` | | Focused selection (426 tests) | 425 passed; `guest_socket_options_multicast` failed, a known `main` failure | | `guest_udp` ×5 | passed, 1.53–1.54 s each (limit 20 s) | ## Negative control The production change is entirely under `#ifdef _WIN32`. I restored `Udp.cpp` from the previously reviewed head and rebuilt. `guest_udp`, including the new `CheckDelayedPartialReceive`, still passed, as expected on Linux. So the new case works as a cross-platform behaviour check on Linux but cannot catch a regression here. `ReceivePeekWaitAll` is built only on Windows. I restored the merged file and rebuilt; `git status --porcelain` is empty. The control for the Windows fix depends on the Windows CI run. ## Previous findings - **Unrelated `runtime_error` becomes `EINTR` during an interrupted synchronous write** — Still open. `SyncWrites` is unchanged at [DescriptorControl.cpp L684-L694](https://github.com/boykopovar/AnyPS5/blob/022410beb3bbf13d1b984a95d25689f2cde6b90b/core/libs/prx/libkernel/File/src/DescriptorControl.cpp#L684-L694). It still catches every `std::runtime_error`, including those from `Classify`. Non-blocking. - **Per-call `new State` plus signal-mask syscalls in `NativeIo`** — Still open. The code at `core/libs/prx/libkernel/Pthread/src/NativeIo.cpp:97-99` is unchanged, and the description still says the cost is unmeasured. Non-blocking. - **Cumulative scope** — Still open as a note. My approval covers the write increment plus the two transport commits reviewed here. The prerequisites (#12149, #12682, #12688, #9019) are reviewed in their own PRs. - **`MSG_DONTWAIT` debt entry lost the FreeBSD `soreceive_generic` citation** — Still open. The entry at `docs/dev/debt/libkernel.md:281` was edited again in this push and still cites no source for the Unix `EWOULDBLOCK` behaviour. Non-blocking. ## New findings ### Blocking None. ### Non-blocking - **The same gap is recorded twice, and both new entries are split from their lists.** - The `poll` gap appears at the end of `docs/dev/debt/libkernel.md` (L387-L388) and of `docs/dev/debt/libSceSsl.md` (L22-L23), with nearly the same text. - Each entry has a blank line in front of it, which breaks it off from the preceding list in the `### Functional` section. - The libSceSsl entry links `core/libs/prx/libSceSsl/Export.cpp`, but the bare `poll` it describes is in libkernel's `Udp.cpp`: `grep poll` finds nothing in that `Export.cpp`. - Suggested fix: keep the full entry in `libkernel.md`, where the wait lives, and cut the libSceSsl entry to one sentence pointing to it. Also remove the blank lines. - **The Windows probe's error path relies on the last WSA error surviving `NativeError()`.** - At `core/libs/prx/libkernel/Socket/src/Udp.cpp:1104`, `if (error != 0) return -1;` hands control back to `Transfer`, which reads `WSAGetLastError()` to choose between waiting and failing. - That is correct only if `NativeError()` and the `FIONREAD` path leave the probe's last error in place. - I could not exercise this on Linux. A comment-free `WSASetLastError` with the matching native code before `return -1` would make the contract explicit. ## Not verified - **Windows execution of the new code:** the moved probe, the `PEEK|WAITALL` throw, and `guest_socket_transfer_progress`. This machine is Linux only, and the author reports only MinGW syntax checks for this head. - **macOS:** the two failed previous-head macOS jobs, and the Windows 22621 `guest_io_context_sigjump` hang. - **The author's 660/660, 9/9 and 11/11 runs:** these are author-reported, and I did not reproduce them beyond the focused selection above. - **Detailed review of the prerequisite layers:** as before, I only ran their tests. <!-- anyps5-bots job=3499 head=022410beb3bbf13d1b984a95d25689f2cde6b90b -->
XairRrR commented 2026-11-03 18:53:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T18:53:42Z.

Review: APPROVED


Re-checked — approved

Since 022410be, 70120f1b86 changes the Windows PEEK|WAITALL assertion in GuestSocketDontWait.cpp to expect the unsupported throw, and 4f897946d2 fixes the debt-list placement I raised last time. Checks pass and nothing blocking was found.

What changed since my last review

git range-diff shows commits 1–59 unchanged and two new ones. They touch 3 files and no production code.

  • core/libs/tests/GuestSocketDontWait.cpp (commit 70120f1b86)
    • Under #ifdef _WIN32, the old assertion expected -1/EOPNOTSUPP from a worker thread.
    • It is replaced by UnsupportedPeekWaitAll, which runs on the test thread and checks three things:
      • the exception message contains the text that Transfer passes to NotImplemented_nid_no_patch (Udp.cpp:168);
      • NotImplementedCalls_nid_no_patch() goes up by exactly one;
      • the buffer is left unchanged.
    • The CheckReadable(true) that follows, and the later DONTWAIT consume, are kept.
    • This matches the author's explanation of the parent-head Windows failure: the old test let the new production throw escape its worker.
    • The throw happens before any wait or transfer state is set up (Udp.cpp:167-169), so catching it on the test thread leaves the socket usable for the checks that follow.
  • docs/dev/debt/libSceSsl.md / libkernel.md (commit 4f897946d2)
    • The blank lines before the two new entries are removed.
    • The libSceSsl entry is cut to one sentence that points to the libkernel entry, which holds the full description of the Unix poll wait.
  • Author comments: there is no direct reply to my findings. The 18:28 comment says the SyncWrites exception fix and the soreceive_generic citation exist only in an unpublished local candidate, so they are not in this head.

What I ran

Head fbd44d33266946006afd8ca4acc55e2bbe7d91e6, main 1e658521a0a599872612bb91949311e2956b5283, merged tree 4e01270d03f87b21e3851edc24d9c51698cca108, in a clean worktree (Debian 13 VM, GCC 14.2.0, Release, Ninja).

git diff --stat 022410beb3bbf13d1b984a95d25689f2cde6b90b fbd44d33266946006afd8ca4acc55e2bbe7d91e6
git diff --check 1e658521a0a599872612bb91949311e2956b5283...fbd44d33266946006afd8ca4acc55e2bbe7d91e6
python3 tools/check_conventions.py --base 1e658521a0a599872612bb91949311e2956b5283
ninja -C build -j32 -l32 guest_socket_dontwait_tests
ctest --test-dir build -R "^guest_socket_dontwait$" --repeat until-fail:3 --output-on-failure
git status --porcelain
Check Result
git diff --check clean
check_conventions.py 0 errors, 1 warning (the existing libSceSsl.md debt-length warning)
Prepared full run (4551 tests, build.json) 0 new failures, 0 timeouts. The 9 known failures also fail on main. guest_net_ctl is an unexpected skip, also on main.
guest_socket_dontwait ×3 (Linux) passed, 2.01 s (limit 20 s)
git status --porcelain empty

Negative control

None was possible here. The only changed assertion is inside #ifdef _WIN32, and no production file changed, so the Linux build compiles the same test logic as before. The Windows CI run of this head is the real check: the author reports that the parent head's Windows job failed on exactly this assertion.

Previous findings

  • Unrelated runtime_error becomes EINTR during an interrupted synchronous write — Still open. core/libs/prx/libkernel/File/src/DescriptorControl.cpp:684-694 still catches every std::runtime_error. The author reports a fix only in an unpublished local candidate. Non-blocking.
  • Per-call new State plus signal-mask syscalls in NativeIo — Still open. core/libs/prx/libkernel/Pthread/src/NativeIo.cpp:97-99 is unchanged, and the cost is still unmeasured. Non-blocking.
  • Cumulative scope — Still open as a note. This approval covers the write increment, the transport commits reviewed last time, and these two commits. The prerequisites are reviewed in their own PRs.
  • MSG_DONTWAIT debt entry lost the FreeBSD soreceive_generic citation — Still open. The fix is in the author's unpublished candidate, not in this head. Non-blocking.
  • Same gap recorded twice; both entries split from their lists — Resolved:
    • docs/dev/debt/libkernel.md:387 keeps the full entry, and the blank line before it is gone.
    • docs/dev/debt/libSceSsl.md:22 is now a one-sentence pointer to the libkernel debt, and the blank line before it is gone.
  • The Windows probe's error path relies on the last WSA error surviving NativeError() — Still open. core/libs/prx/libkernel/Socket/src/Udp.cpp:1104 is unchanged. Non-blocking, and still unverifiable on Linux.

New findings

Blocking

None.

Non-blocking

None.

Not verified

  • Windows execution of the new assertion and the Transfer throw path: this machine is Linux only. The author reports syntax checks and an isolated harness only, and says the exact-head Windows build was cancelled before CTest ran.
  • Other platforms: macOS, and the Windows 22621 guest_io_context_sigjump hang.
  • Author-reported runs: the author's 660/660 and other focused runs, which I did not reproduce for this head.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5757825174 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-5757825174). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T18:53:42Z. **Review:** APPROVED --- # Re-checked — approved Since `022410be`, `70120f1b86` changes the Windows `PEEK|WAITALL` assertion in `GuestSocketDontWait.cpp` to expect the unsupported throw, and `4f897946d2` fixes the debt-list placement I raised last time. Checks pass and nothing blocking was found. ## What changed since my last review `git range-diff` shows commits 1–59 unchanged and two new ones. They touch 3 files and no production code. - **`core/libs/tests/GuestSocketDontWait.cpp`** (commit `70120f1b86`) - Under `#ifdef _WIN32`, the old assertion expected `-1`/`EOPNOTSUPP` from a worker thread. - It is replaced by `UnsupportedPeekWaitAll`, which runs on the test thread and checks three things: - the exception message contains the text that `Transfer` passes to `NotImplemented_nid_no_patch` (`Udp.cpp:168`); - `NotImplementedCalls_nid_no_patch()` goes up by exactly one; - the buffer is left unchanged. - The `CheckReadable(true)` that follows, and the later `DONTWAIT` consume, are kept. - This matches the author's explanation of the parent-head Windows failure: the old test let the new production throw escape its worker. - The throw happens before any wait or transfer state is set up (`Udp.cpp:167-169`), so catching it on the test thread leaves the socket usable for the checks that follow. - **`docs/dev/debt/libSceSsl.md` / `libkernel.md`** (commit `4f897946d2`) - The blank lines before the two new entries are removed. - The libSceSsl entry is cut to one sentence that points to the libkernel entry, which holds the full description of the Unix `poll` wait. - **Author comments:** there is no direct reply to my findings. The 18:28 comment says the `SyncWrites` exception fix and the `soreceive_generic` citation exist only in an unpublished local candidate, so they are not in this head. ## What I ran Head `fbd44d33266946006afd8ca4acc55e2bbe7d91e6`, `main` `1e658521a0a599872612bb91949311e2956b5283`, merged tree `4e01270d03f87b21e3851edc24d9c51698cca108`, in a clean worktree (Debian 13 VM, GCC 14.2.0, Release, Ninja). ``` git diff --stat 022410beb3bbf13d1b984a95d25689f2cde6b90b fbd44d33266946006afd8ca4acc55e2bbe7d91e6 git diff --check 1e658521a0a599872612bb91949311e2956b5283...fbd44d33266946006afd8ca4acc55e2bbe7d91e6 python3 tools/check_conventions.py --base 1e658521a0a599872612bb91949311e2956b5283 ninja -C build -j32 -l32 guest_socket_dontwait_tests ctest --test-dir build -R "^guest_socket_dontwait$" --repeat until-fail:3 --output-on-failure git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | 0 errors, 1 warning (the existing `libSceSsl.md` debt-length warning) | | Prepared full run (4551 tests, build.json) | 0 new failures, 0 timeouts. The 9 known failures also fail on `main`. `guest_net_ctl` is an unexpected skip, also on `main`. | | `guest_socket_dontwait` ×3 (Linux) | passed, 2.01 s (limit 20 s) | | `git status --porcelain` | empty | ## Negative control None was possible here. The only changed assertion is inside `#ifdef _WIN32`, and no production file changed, so the Linux build compiles the same test logic as before. The Windows CI run of this head is the real check: the author reports that the parent head's Windows job failed on exactly this assertion. ## Previous findings - **Unrelated `runtime_error` becomes `EINTR` during an interrupted synchronous write** — Still open. `core/libs/prx/libkernel/File/src/DescriptorControl.cpp:684-694` still catches every `std::runtime_error`. The author reports a fix only in an unpublished local candidate. Non-blocking. - **Per-call `new State` plus signal-mask syscalls in `NativeIo`** — Still open. `core/libs/prx/libkernel/Pthread/src/NativeIo.cpp:97-99` is unchanged, and the cost is still unmeasured. Non-blocking. - **Cumulative scope** — Still open as a note. This approval covers the write increment, the transport commits reviewed last time, and these two commits. The prerequisites are reviewed in their own PRs. - **`MSG_DONTWAIT` debt entry lost the FreeBSD `soreceive_generic` citation** — Still open. The fix is in the author's unpublished candidate, not in this head. Non-blocking. - **Same gap recorded twice; both entries split from their lists** — Resolved: - `docs/dev/debt/libkernel.md:387` keeps the full entry, and the blank line before it is gone. - `docs/dev/debt/libSceSsl.md:22` is now a one-sentence pointer to the libkernel debt, and the blank line before it is gone. - **The Windows probe's error path relies on the last WSA error surviving `NativeError()`** — Still open. `core/libs/prx/libkernel/Socket/src/Udp.cpp:1104` is unchanged. Non-blocking, and still unverifiable on Linux. ## New findings ### Blocking None. ### Non-blocking None. ## Not verified - **Windows execution of the new assertion and the `Transfer` throw path:** this machine is Linux only. The author reports syntax checks and an isolated harness only, and says the exact-head Windows build was cancelled before CTest ran. - **Other platforms:** macOS, and the Windows 22621 `guest_io_context_sigjump` hang. - **Author-reported runs:** the author's 660/660 and other focused runs, which I did not reproduce for this head. <!-- anyps5-bots job=3531 head=fbd44d33266946006afd8ca4acc55e2bbe7d91e6 -->
MarcZX10 commented 2026-11-20 08:50:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T08:50:43Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

Reviewed head bf740fcd275bc7e9c8a78cbfce94da554e0e78b0 using repo_read.py to inspect the prepared description, manifest, diff, and selected changed hunks. I did not run builds or tests; the validation totals in the description are author-reported.

Results

Check Result Note
Focused source review passed Inspected descriptor access, cancellation, synchronous writes, and socket send/receive hunks.
Build and tests not run Reported results were not independently run here.
Full changed-file review not run Several changed files and paths remain unread.

Findings

Blocking

None identified in the inspected hunks.

Non-blocking

  • Consider adding a current-head test that fault-injects an actual host fstat returning EINTR; the description says this narrowly tagged path was inspected statically, while metadata-hook interruptions are exercised.
  • Per-call allocation, signal-mask and handle costs, and cancelling-caller spin remain unmeasured follow-ups, as noted in the description.

Not verified

This was a partial review, so a formal approval is not justified. I read description.md, commits.md, manifest.json, and selected hunks in diff.patch; I did not read every changed file listed in the manifest. files.json and the full included file texts were not inspected. I did not independently verify the reported Windows/Linux test runs, conventions audit, or adversarial reviews. No tests or builds were run.

To get this to a good state

Nothing is required. The optional follow-ups are listed above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5989850607 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-5989850607). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T08:50:43Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. ## What I ran Reviewed head `bf740fcd275bc7e9c8a78cbfce94da554e0e78b0` using `repo_read.py` to inspect the prepared description, manifest, diff, and selected changed hunks. I did not run builds or tests; the validation totals in the description are author-reported. ## Results | Check | Result | Note | |---|---|---| | Focused source review | passed | Inspected descriptor access, cancellation, synchronous writes, and socket send/receive hunks. | | Build and tests | not run | Reported results were not independently run here. | | Full changed-file review | not run | Several changed files and paths remain unread. | ## Findings ### Blocking None identified in the inspected hunks. ### Non-blocking - Consider adding a current-head test that fault-injects an actual host `fstat` returning `EINTR`; the description says this narrowly tagged path was inspected statically, while metadata-hook interruptions are exercised. - Per-call allocation, signal-mask and handle costs, and cancelling-caller spin remain unmeasured follow-ups, as noted in the description. ## Not verified This was a partial review, so a formal approval is not justified. I read `description.md`, `commits.md`, `manifest.json`, and selected hunks in `diff.patch`; I did not read every changed file listed in the manifest. `files.json` and the full included file texts were not inspected. I did not independently verify the reported Windows/Linux test runs, conventions audit, or adversarial reviews. No tests or builds were run. ## To get this to a good state Nothing is required. The optional follow-ups are listed above.
MarcZX10 commented 2026-11-20 23:28:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T23:28:48Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing in the inspected large-file transfer changes blocks merging; the PR description reports focused tests, but I did not run them.

What I ran

Inspected the prepared diff at head c567dd9678d10713bc7047d421acc9406671d02c and read the large-file transfer implementation and fixture. No build or tests were run.

Results

Check Result Note
Large-file transfer review passed Chunk progress and positioned offsets inspected
Build and runtime tests not run Author-reported results are not independently verified

Findings

Blocking

None in the inspected code.

Non-blocking

None.

Not verified

The PR changes 70 repository files; I read only core/libs/prx/libkernel/File/src/Stdio.cpp and core/libs/tests/GuestFileVector.cpp from the changed files, plus the prepared description, commit list, diff, manifest and review README. The remaining changed files and broader cancellation, signal, descriptor, socket, SSL, context, and test changes were not read. I therefore cannot make a complete-review or approval determination. The description's reported Windows/Linux tests, probes, and audits were not run by me.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6000763541 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-6000763541). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T23:28:48Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing in the inspected large-file transfer changes blocks merging; the PR description reports focused tests, but I did not run them. ## What I ran Inspected the prepared diff at head `c567dd9678d10713bc7047d421acc9406671d02c` and read the large-file transfer implementation and fixture. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Large-file transfer review | passed | Chunk progress and positioned offsets inspected | | Build and runtime tests | not run | Author-reported results are not independently verified | ## Findings ### Blocking None in the inspected code. ### Non-blocking None. ## Not verified The PR changes 70 repository files; I read only `core/libs/prx/libkernel/File/src/Stdio.cpp` and `core/libs/tests/GuestFileVector.cpp` from the changed files, plus the prepared description, commit list, diff, manifest and review README. The remaining changed files and broader cancellation, signal, descriptor, socket, SSL, context, and test changes were not read. I therefore cannot make a complete-review or approval determination. The description's reported Windows/Linux tests, probes, and audits were not run by me. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-21 03:08:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T03:08:25Z.

Review: COMMENTED


Reviewed — comments

The prepared bundle describes POSIX read and write cancellation composed with archive-backed reads; I reviewed selected changed code at head bf7939216ab7b00a77633b222f5b036713bfde08, but not the complete change, so a formal merge decision is not justified.

What I ran

No commands or tests were run. I read the prepared description, commit list, manifest, and selected diff hunks using the review reader. The description reports Windows and Linux test runs; these are author-reported, not runs performed in this review.

Results

Check Result Note
Prepared review bundle passed Description, commits, manifest, diff read
Code review not run Selected hunks only; full review incomplete
Tests not run No tests executed in this review

Findings

Blocking

None confirmed in the code inspected.

Non-blocking

None.

Not verified

The review bundle lists 70 changed files, all marked included. I read selected hunks from core/libs/prx/libc/src/DescriptorAccess.cpp, core/libs/prx/libc/src/FileAndHeap.cpp, and core/libs/prx/libSceNet/Export.cpp's diff, but did not read all changed files or inspect the corresponding full source and callers. Other changed files, tests, archive error mapping, and most cancellation paths remain unverified. files.json was not present in the reader listing, so excluded-by-rule files were not checked.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6002463880 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-6002463880). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T03:08:25Z. **Review:** COMMENTED --- # Reviewed — comments The prepared bundle describes POSIX read and write cancellation composed with archive-backed reads; I reviewed selected changed code at head `bf7939216ab7b00a77633b222f5b036713bfde08`, but not the complete change, so a formal merge decision is not justified. ## What I ran No commands or tests were run. I read the prepared description, commit list, manifest, and selected diff hunks using the review reader. The description reports Windows and Linux test runs; these are author-reported, not runs performed in this review. ## Results | Check | Result | Note | |---|---|---| | Prepared review bundle | passed | Description, commits, manifest, diff read | | Code review | not run | Selected hunks only; full review incomplete | | Tests | not run | No tests executed in this review | ## Findings ### Blocking None confirmed in the code inspected. ### Non-blocking None. ## Not verified The review bundle lists 70 changed files, all marked included. I read selected hunks from `core/libs/prx/libc/src/DescriptorAccess.cpp`, `core/libs/prx/libc/src/FileAndHeap.cpp`, and `core/libs/prx/libSceNet/Export.cpp`'s diff, but did not read all changed files or inspect the corresponding full source and callers. Other changed files, tests, archive error mapping, and most cancellation paths remain unverified. `files.json` was not present in the reader listing, so excluded-by-rule files were not checked. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-21 04:47:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T04:47:13Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed diff shows the forwarded-send registration and error-preservation changes, but this review did not cover every changed file, so a formal approval is not justified.

What I ran

  • Read the prepared description, commit list, manifest, diff, changed-file listing, and targeted diff hunks at head 8637b820cc5e03d2e658f4eed8af5f2de779862b.
  • No build or test commands were run; runtime results in the description are author-reported.

Results

Check Result Note
Targeted source review passed Forwarded-send paths inspected
Build and tests not run Reported results not independently verified
Full changed-file review not run Broad change set remains partly unread

Findings

Blocking

None identified in the inspected hunks.

Non-blocking

  • The review is incomplete for this broad change set. The description reports exact-head focused Windows and Linux tests, but those runs were not performed in this review.

Not verified

The prepared manifest lists 72 changed files, all marked included. I read the diff and targeted hunks for forwarded socket sends and the SSL send adjustment, but did not read every changed file or audit all changed behavior. The description reports that docs/dev/debt/changes/posix-socket-blocking-transport.md was excluded by rule; no other exclusions were listed in the prepared materials. No tests or builds were run here.

To get this to a good state

Nothing is required. Optional: complete a full review of the remaining changed files and independently run the relevant exact-head checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6002907791 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-6002907791). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T04:47:13Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed diff shows the forwarded-send registration and error-preservation changes, but this review did not cover every changed file, so a formal approval is not justified. ## What I ran - Read the prepared description, commit list, manifest, diff, changed-file listing, and targeted diff hunks at head `8637b820cc5e03d2e658f4eed8af5f2de779862b`. - No build or test commands were run; runtime results in the description are author-reported. ## Results | Check | Result | Note | |---|---|---| | Targeted source review | passed | Forwarded-send paths inspected | | Build and tests | not run | Reported results not independently verified | | Full changed-file review | not run | Broad change set remains partly unread | ## Findings ### Blocking None identified in the inspected hunks. ### Non-blocking - The review is incomplete for this broad change set. The description reports exact-head focused Windows and Linux tests, but those runs were not performed in this review. ## Not verified The prepared manifest lists 72 changed files, all marked included. I read the diff and targeted hunks for forwarded socket sends and the SSL send adjustment, but did not read every changed file or audit all changed behavior. The description reports that `docs/dev/debt/changes/posix-socket-blocking-transport.md` was excluded by rule; no other exclusions were listed in the prepared materials. No tests or builds were run here. ## To get this to a good state Nothing is required. Optional: complete a full review of the remaining changed files and independently run the relevant exact-head checks.
MarcZX10 commented 2026-11-21 06:24:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T06:24:57Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

Reviewed head c76cc791de9fd7f0e68f0d53676879d25ebef470. I read the prepared description, commit list, manifest, relevant diff hunk, and targeted source for FakeSocket.hpp; I did not run tests or other commands. The description reports focused Windows and Linux tests, but those results were not independently run here.

Results

Check Result Note
Fixture helper flow passed Delegates through the retained backing owner when available.
Tests in this review not run Focused runs are author reported.
Full change review not run Scope was limited to the current fixture repair.

Findings

Blocking

None in the inspected scope.

Non-blocking

None.

Not verified

The manifest lists 83 changed files, all included in the review bundle. I read one changed file in full, core/libs/prx/libSceLibreSsl/tests/FakeSocket.hpp, plus targeted excerpts from the diff and description. The other 82 changed files were not reviewed, including the broader POSIX I/O cancellation implementation; no conclusion is offered on those changes. Tests, CI, base merge state, and console behavior were not verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6003485934 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-6003485934). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T06:24:57Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. ## What I ran Reviewed head `c76cc791de9fd7f0e68f0d53676879d25ebef470`. I read the prepared description, commit list, manifest, relevant diff hunk, and targeted source for `FakeSocket.hpp`; I did not run tests or other commands. The description reports focused Windows and Linux tests, but those results were not independently run here. ## Results | Check | Result | Note | |---|---|---| | Fixture helper flow | passed | Delegates through the retained backing owner when available. | | Tests in this review | not run | Focused runs are author reported. | | Full change review | not run | Scope was limited to the current fixture repair. | ## Findings ### Blocking None in the inspected scope. ### Non-blocking None. ## Not verified The manifest lists 83 changed files, all included in the review bundle. I read one changed file in full, `core/libs/prx/libSceLibreSsl/tests/FakeSocket.hpp`, plus targeted excerpts from the diff and description. The other 82 changed files were not reviewed, including the broader POSIX I/O cancellation implementation; no conclusion is offered on those changes. Tests, CI, base merge state, and console behavior were not verified. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-21 13:40:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T13:40:56Z.

Review: COMMENTED


Reviewed — comments

The review is incomplete, so a formal merge decision is not justified; no verified blocking defect was identified in the excerpts inspected.

What I ran

Reviewed head e3138d7ceaac42bf00138e2d7d65e49217f916ab using the prepared review documents and repository reader. No executable checks were run.

Results

Check Result Note
Source inspection not run Partial inspection only
Executable checks not run No tests run
Full changed-file review not run Most changed files were not read

Negative control

Not run; no test was executed.

Findings

Blocking

None verified in the inspected excerpts.

Non-blocking

Nothing blocks this; the points below are optional. Complete inspection of the remaining changed files before treating this review as a merge decision.

Sources

Inspected excerpts from core/libs/prx/libc/src/DescriptorAccess.cpp, core/libs/prx/libkernel/Pthread/src/IoSignals.cpp, core/libs/prx/libkernel/Socket/src/Udp.cpp, core/libs/prx/libkernel/Pthread/src/NativeIo.cpp, and core/libs/prx/libc/src/JumpBuffer.cpp, plus selected hunks from review/diff.patch.

Not verified

Most changed files listed in review/manifest.json were not read, including most tests and implementation files. The review folder's prepared description.md, commits.md, manifest.json, and selected diff.patch excerpts were read; excluded files listed in files.json were not available through the prepared folder. Test claims in the description were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6005582875 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-6005582875). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T13:40:56Z. **Review:** COMMENTED --- # Reviewed — comments The review is incomplete, so a formal merge decision is not justified; no verified blocking defect was identified in the excerpts inspected. ## What I ran Reviewed head `e3138d7ceaac42bf00138e2d7d65e49217f916ab` using the prepared review documents and repository reader. No executable checks were run. ## Results | Check | Result | Note | |---|---|---| | Source inspection | not run | Partial inspection only | | Executable checks | not run | No tests run | | Full changed-file review | not run | Most changed files were not read | ## Negative control Not run; no test was executed. ## Findings ### Blocking None verified in the inspected excerpts. ### Non-blocking Nothing blocks this; the points below are optional. Complete inspection of the remaining changed files before treating this review as a merge decision. ## Sources Inspected excerpts from `core/libs/prx/libc/src/DescriptorAccess.cpp`, `core/libs/prx/libkernel/Pthread/src/IoSignals.cpp`, `core/libs/prx/libkernel/Socket/src/Udp.cpp`, `core/libs/prx/libkernel/Pthread/src/NativeIo.cpp`, and `core/libs/prx/libc/src/JumpBuffer.cpp`, plus selected hunks from `review/diff.patch`. ## Not verified Most changed files listed in `review/manifest.json` were not read, including most tests and implementation files. The review folder's prepared `description.md`, `commits.md`, `manifest.json`, and selected `diff.patch` excerpts were read; excluded files listed in `files.json` were not available through the prepared folder. Test claims in the description were not independently verified. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-22 09:07:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T09:07:44Z.

Review: COMMENTED


Reviewed — comments

A full review is incomplete because the change spans 80 files and I inspected only selected cancellation, descriptor, signal, and socket paths; no blocking defect is verified in those paths.

What I ran

No commands or tests were run. I read the prepared description, commit list, manifest, diff, and selected changed source ranges through repo_read.py at head 6b8ca980e58f287cb042abf8c09f78f53298aa36. The description’s build and test results are author-reported.

Results

Check Result Note
Prepared bundle passed Description, commits, manifest, and diff read
Runtime checks not run Author-reported results only
Source review not run Selected paths inspected; review incomplete

Findings

Blocking

None verified in the selected paths.

Non-blocking

None.

Not verified

I did not inspect all added lines in the 80 changed files, so this is not a complete review and does not establish that uninspected code is sound. In particular, the broad file I/O, descriptor, signal/context, and socket changes and their full test coverage remain unverified. The repository file list marks all 80 changed files as included; I read only selected ranges of core/libs/prx/libkernel/Pthread/include/Cancel.hpp, core/libs/prx/libkernel/Pthread/src/IoSignals.cpp, core/libs/prx/libkernel/Pthread/src/NativeIo.cpp, core/libs/prx/libc/src/DescriptorAccess.cpp, core/libs/prx/libkernel/File/src/Stdio.cpp, core/libs/prx/libkernel/Socket/src/Udp.cpp, core/libs/prx/libkernel/System/src/Signals.cpp, core/libs/prx/libc/src/JumpBuffer.cpp, and core/libs/prx/libkernel/System/src/UserContext.cpp. No excluded changed files were listed.

To get this to a good state

Complete the line-by-line review of every changed file and run the relevant checks on this exact head before making a formal merge decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6011430860 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-6011430860). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T09:07:44Z. **Review:** COMMENTED --- # Reviewed — comments A full review is incomplete because the change spans 80 files and I inspected only selected cancellation, descriptor, signal, and socket paths; no blocking defect is verified in those paths. ## What I ran No commands or tests were run. I read the prepared description, commit list, manifest, diff, and selected changed source ranges through `repo_read.py` at head `6b8ca980e58f287cb042abf8c09f78f53298aa36`. The description’s build and test results are author-reported. ## Results | Check | Result | Note | |---|---|---| | Prepared bundle | passed | Description, commits, manifest, and diff read | | Runtime checks | not run | Author-reported results only | | Source review | not run | Selected paths inspected; review incomplete | ## Findings ### Blocking None verified in the selected paths. ### Non-blocking None. ## Not verified I did not inspect all added lines in the 80 changed files, so this is not a complete review and does not establish that uninspected code is sound. In particular, the broad file I/O, descriptor, signal/context, and socket changes and their full test coverage remain unverified. The repository file list marks all 80 changed files as included; I read only selected ranges of `core/libs/prx/libkernel/Pthread/include/Cancel.hpp`, `core/libs/prx/libkernel/Pthread/src/IoSignals.cpp`, `core/libs/prx/libkernel/Pthread/src/NativeIo.cpp`, `core/libs/prx/libc/src/DescriptorAccess.cpp`, `core/libs/prx/libkernel/File/src/Stdio.cpp`, `core/libs/prx/libkernel/Socket/src/Udp.cpp`, `core/libs/prx/libkernel/System/src/Signals.cpp`, `core/libs/prx/libc/src/JumpBuffer.cpp`, and `core/libs/prx/libkernel/System/src/UserContext.cpp`. No excluded changed files were listed. ## To get this to a good state Complete the line-by-line review of every changed file and run the relevant checks on this exact head before making a formal merge decision.
ligmaSec commented 2026-12-03 22:56:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:56:25Z.

Review: COMMENTED


The trial merge conflicts across libkernel stdio, socket and signal code. This head also lacks the current #12682 head in its ancestry. Please refresh the stack before testing the combined cancellation changes. The partial-progress tests should still prove that already accepted bytes are returned on interruption and the following call observes its own error state. Please retain the shared-descriptor and Windows pending-I/O cases when resolving the conflicts. Put the new debt entries in fragments.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6180100443 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12700#pullrequestreview-6180100443). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T22:56:25Z. **Review:** COMMENTED --- The trial merge conflicts across libkernel stdio, socket and signal code. This head also lacks the current #12682 head in its ancestry. Please refresh the stack before testing the combined cancellation changes. The partial-progress tests should still prove that already accepted bytes are returned on interruption and the following call observes its own error state. Please retain the shared-descriptor and Windows pending-I/O cases when resolving the conflicts. Put the new debt entries in fragments. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/12700:upstream-pr/12700'
git switch 'upstream-pr/12700'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/12700'
git switch 'upstream-pr/12700'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/12700'
git switch 'upstream-pr/12700'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/12700'
git switch 'main'
git merge --squash 'upstream-pr/12700'
git switch 'main'
git merge --ff-only 'upstream-pr/12700'
git switch 'main'
git merge 'upstream-pr/12700'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12700
No description provided.