feat(libSceNKWebKit): implement the WebCore::MessagePortChannel processForPort and hasAnyMessagesPendingOrInFlight exports #24019

Closed
RiverWhy wants to merge 3 commits from upstream-pr/24019 into main
RiverWhy commented 2026-11-20 01:05:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by RiverWhy on 2026-11-20T01:05:10Z.


What

Implements 2 libSceNKWebKit exports of WebCore::MessagePortChannel. Both throw NotImplemented on main today.

  • processForPort(const MessagePortIdentifier&): returns the process entangled with the given port (m_processes[0] when the port equals m_ports[0], otherwise m_processes[1]). The std::optional<ProcessIdentifier> comes back in registers: the value in rax, the engaged byte in dl.
  • hasAnyMessagesPendingOrInFlight() const: true when m_messageBatchesInFlight is non-zero or either pending message vector is non-empty.

Source: the libSceNKWebKit.sprx with SHA-256 3af992253665387feeb5df90ff27dff683e3aa270cc4d92a0535b46ab18fa20d. The logic follows the pinned WebKit MessagePortChannel.cpp (licence notice kept). The object offsets come from the module's own code and match the pinned MessagePortChannel.h: ports at 0x8 and 0x18 (16 bytes each), process slots at 0x30 and 0x40 (value plus engaged byte), pending message vector sizes at 0x6c and 0x7c, batches in flight at 0xa0. They live in the new src/MessagePortChannelAbi.hpp.

Only the fields the two functions read were checked against the module; the other members are laid out from the pinned header.

Debt: the fragment docs/dev/debt/changes/feat-nkwebkit-message-port-channel.md adds the Functional entry and removes the hasAnyMessagesPendingOrInFlight inventory row (processForPort had no inventory row).
Overlap: no open PR matches MessagePortChannel, and on current origin/main both are still only the NotImplemented stubs.

How it was checked

Offline, against the module's own code (none of it is in the repository): both function bodies were disassembled and their byte blobs run against this implementation in a harness.

  • 5,000,000 random channel objects (random bytes everywhere, ports equal to the first, the second or neither, near-misses differing in one word, random pending sizes and in-flight counts), 0 mismatches for both functions, comparing the returned value and engaged byte.
  • Four mutants (ignoring the object identifier, ignoring the second vector, ignoring batches in flight, swapping the slots) give 23561, 22908, 29218 and 200000 mismatches per 200000 runs, so the harness does tell the behaviours apart.

In the repository, the new nkwebkit_messageportchannel test builds channel objects in memory and checks both exports, including a port matching in only one of its two words, an unengaged process slot, vector capacity without size, and the field offsets.

Tested

Linux Mint 22.3, GCC 13.3, Release:

  • nkwebkit_messageportchannel passes (100% of the 1 test selected).
  • tools/check_conventions.py passes.
  • core/libs/tests/test_public_headers.py --audit-only passes.
  • git merge-tree against current origin/main is clean.
  • Not run on Windows.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Summary by CodeRabbit

  • New Features

    • Message-port handling can now identify the process associated with a port and report whether messages are pending or in flight. These updates provide clearer visibility into message-port activity and support more accurate coordination between processes.
  • Tests

    • Added checks for process identification and message activity across idle, pending, and in-flight scenarios.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5405829797 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24019). Originally posted by [RiverWhy](https://github.com/RiverWhy) on 2026-11-20T01:05:10Z. --- ### What Implements 2 `libSceNKWebKit` exports of `WebCore::MessagePortChannel`. Both throw `NotImplemented` on `main` today. - `processForPort(const MessagePortIdentifier&)`: returns the process entangled with the given port (`m_processes[0]` when the port equals `m_ports[0]`, otherwise `m_processes[1]`). The `std::optional<ProcessIdentifier>` comes back in registers: the value in `rax`, the engaged byte in `dl`. - `hasAnyMessagesPendingOrInFlight() const`: true when `m_messageBatchesInFlight` is non-zero or either pending message vector is non-empty. Source: the `libSceNKWebKit.sprx` with SHA-256 `3af992253665387feeb5df90ff27dff683e3aa270cc4d92a0535b46ab18fa20d`. The logic follows the pinned WebKit `MessagePortChannel.cpp` (licence notice kept). The object offsets come from the module's own code and match the pinned `MessagePortChannel.h`: ports at `0x8` and `0x18` (16 bytes each), process slots at `0x30` and `0x40` (value plus engaged byte), pending message vector sizes at `0x6c` and `0x7c`, batches in flight at `0xa0`. They live in the new `src/MessagePortChannelAbi.hpp`. Only the fields the two functions read were checked against the module; the other members are laid out from the pinned header. Debt: the fragment `docs/dev/debt/changes/feat-nkwebkit-message-port-channel.md` adds the Functional entry and removes the `hasAnyMessagesPendingOrInFlight` inventory row (`processForPort` had no inventory row). Overlap: no open PR matches `MessagePortChannel`, and on current `origin/main` both are still only the `NotImplemented` stubs. ### How it was checked Offline, against the module's own code (none of it is in the repository): both function bodies were disassembled and their byte blobs run against this implementation in a harness. - 5,000,000 random channel objects (random bytes everywhere, ports equal to the first, the second or neither, near-misses differing in one word, random pending sizes and in-flight counts), 0 mismatches for both functions, comparing the returned value and engaged byte. - Four mutants (ignoring the object identifier, ignoring the second vector, ignoring batches in flight, swapping the slots) give 23561, 22908, 29218 and 200000 mismatches per 200000 runs, so the harness does tell the behaviours apart. In the repository, the new `nkwebkit_messageportchannel` test builds channel objects in memory and checks both exports, including a port matching in only one of its two words, an unengaged process slot, vector capacity without size, and the field offsets. ### Tested Linux Mint 22.3, GCC 13.3, Release: - `nkwebkit_messageportchannel` passes (100% of the 1 test selected). - `tools/check_conventions.py` passes. - `core/libs/tests/test_public_headers.py --audit-only` passes. - `git merge-tree` against current `origin/main` is clean. - Not run on Windows. ### Checklist - [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: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Message-port handling can now identify the process associated with a port and report whether messages are pending or in flight. These updates provide clearer visibility into message-port activity and support more accurate coordination between processes. * **Tests** * Added checks for process identification and message activity across idle, pending, and in-flight scenarios. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
PrivacyOnion commented 2026-11-20 01:23:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T01:23:28Z.

Review: CHANGES_REQUESTED


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

  • Conventions: tools/check_conventions.py failed.
    (pull request): error: [pr-template] Fill in the pull request template: answer AI-assisted with yes or no
    (pull request): error: [pr-template] Fill in the pull request template: fill Depends on with #N or none
    2 findings, 2 errors; GitHub shows at most 10 error annotations, the job summary lists all
    
  • Build: nkwebkit_messageportchannel_tests built cleanly.
  • CTest (nkwebkit_messageportchannel):
    1/1 Test #4718: nkwebkit_messageportchannel ......   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5986126009 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24019#pullrequestreview-5986126009). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-20T01:23:28Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `ba7902e762`: - **Conventions**: `tools/check_conventions.py` failed. ``` (pull request): error: [pr-template] Fill in the pull request template: answer AI-assisted with yes or no (pull request): error: [pr-template] Fill in the pull request template: fill Depends on with #N or none 2 findings, 2 errors; GitHub shows at most 10 error annotations, the job summary lists all ``` - **Build**: `nkwebkit_messageportchannel_tests` built cleanly. - **CTest** (`nkwebkit_messageportchannel`): ``` 1/1 Test #4718: nkwebkit_messageportchannel ...... Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` Requesting changes for the points above.
MarcZX10 commented 2026-11-20 06:31:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T06:31:34Z.

Review: COMMENTED


Reviewed — no blocking findings

The implementation follows the described field checks and includes focused tests; I did not run the reported checks, and two changed files were excluded from the review folder.

What I ran

Reviewed head ba7902e762955bf591da8bcb10fa4ffdae457320 using the prepared diff and pinned repository reader. No build or test commands were run.

Results

Check Result Note
Source review passed Core implementation and focused tests read
Reported checks not run Reported by the author
Full changed-file review not run Two files excluded from folder

Findings

Blocking

None identified in the files read.

Non-blocking

None.

Not verified

core/libs/prx/libSceNKWebKit/Export.cpp and core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp were excluded from the prepared review folder and were not read. The author reports that nkwebkit_messageportchannel, tools/check_conventions.py, and core/libs/tests/test_public_headers.py --audit-only passed on Linux Mint 22.3 with GCC 13.3; these results were not independently verified. Windows behavior was not run.

Files read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch, core/libs/prx/libSceNKWebKit/include/MessagePortChannelExports.hpp, core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp, core/libs/prx/libSceNKWebKit/src/MessagePortChannel.cpp, core/libs/prx/libSceNKWebKit/src/MessagePortChannelAbi.hpp, core/libs/prx/libSceNKWebKit/tests/MessagePortChannel.cpp, and docs/dev/debt/changes/feat-nkwebkit-message-port-channel.md. Excluded changed files: core/libs/prx/libSceNKWebKit/Export.cpp and core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5988468059 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24019#pullrequestreview-5988468059). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T06:31:34Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The implementation follows the described field checks and includes focused tests; I did not run the reported checks, and two changed files were excluded from the review folder. ## What I ran Reviewed head `ba7902e762955bf591da8bcb10fa4ffdae457320` using the prepared diff and pinned repository reader. No build or test commands were run. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Core implementation and focused tests read | | Reported checks | not run | Reported by the author | | Full changed-file review | not run | Two files excluded from folder | ## Findings ### Blocking None identified in the files read. ### Non-blocking None. ## Not verified `core/libs/prx/libSceNKWebKit/Export.cpp` and `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` were excluded from the prepared review folder and were not read. The author reports that `nkwebkit_messageportchannel`, `tools/check_conventions.py`, and `core/libs/tests/test_public_headers.py --audit-only` passed on Linux Mint 22.3 with GCC 13.3; these results were not independently verified. Windows behavior was not run. Files read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, `core/libs/prx/libSceNKWebKit/include/MessagePortChannelExports.hpp`, `core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp`, `core/libs/prx/libSceNKWebKit/src/MessagePortChannel.cpp`, `core/libs/prx/libSceNKWebKit/src/MessagePortChannelAbi.hpp`, `core/libs/prx/libSceNKWebKit/tests/MessagePortChannel.cpp`, and `docs/dev/debt/changes/feat-nkwebkit-message-port-channel.md`. Excluded changed files: `core/libs/prx/libSceNKWebKit/Export.cpp` and `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`. ## To get this to a good state Nothing is required.
PrivacyOnion commented 2026-11-20 19:03:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T19:03:25Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 86601da188:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_messageportchannel_tests built cleanly.
  • CTest (nkwebkit_messageportchannel):
    1/1 Test #4757: nkwebkit_messageportchannel ......   Passed    0.04 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp, core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp, core/libs/prx/libSceNKWebKit/src/MessagePortChannel.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified C++ calling convention and ABI for WebCore::MessagePortChannel::processForPort and hasAnyMessagesPendingOrInFlight, including pass-by-reference and optional return type representation in rax/rdx (engaged flag in dl) matching OptionalProcessIdentifier
    • Audited MessagePortChannelAbi.hpp struct layout, offsets, and field alignment against the WebKit upstream definitions and module offsets verified with static_asserts (ports at 0x8/0x18, processes at 0x30/0x40, pendingMessages size at 0x6c/0x7c, messageBatchesInFlight at 0xa0)
    • Checked AGENTS.md rules regarding license notices, lack of extraneous comments, debt fragment formatting, and removal of replaced stubs from Export.cpp, InventoryExports.hpp, and LegacyExports.hpp
    • Evaluated pointer handling, const-correctness, 64-bit integer comparisons, and LP64/LLP64 data type safety in MessagePortChannel.cpp and MessagePortChannelAbi.hpp
    • Inspected test coverage in tests/MessagePortChannel.cpp ensuring proper validation of port matching logic, fallbacks, empty vs in-flight/pending batches, and offset invariants

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5997938033 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24019#pullrequestreview-5997938033). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-20T19:03:25Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `86601da188`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_messageportchannel_tests` built cleanly. - **CTest** (`nkwebkit_messageportchannel`): ``` 1/1 Test #4757: nkwebkit_messageportchannel ...... Passed 0.04 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp`, `core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp`, `core/libs/prx/libSceNKWebKit/src/MessagePortChannel.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified C++ calling convention and ABI for WebCore::MessagePortChannel::processForPort and hasAnyMessagesPendingOrInFlight, including pass-by-reference and optional return type representation in rax/rdx (engaged flag in dl) matching OptionalProcessIdentifier - Audited MessagePortChannelAbi.hpp struct layout, offsets, and field alignment against the WebKit upstream definitions and module offsets verified with static_asserts (ports at 0x8/0x18, processes at 0x30/0x40, pendingMessages size at 0x6c/0x7c, messageBatchesInFlight at 0xa0) - Checked AGENTS.md rules regarding license notices, lack of extraneous comments, debt fragment formatting, and removal of replaced stubs from Export.cpp, InventoryExports.hpp, and LegacyExports.hpp - Evaluated pointer handling, const-correctness, 64-bit integer comparisons, and LP64/LLP64 data type safety in MessagePortChannel.cpp and MessagePortChannelAbi.hpp - Inspected test coverage in tests/MessagePortChannel.cpp ensuring proper validation of port matching logic, fallbacks, empty vs in-flight/pending batches, and offset invariants Looks Good To Me
MarcZX10 commented 2026-11-21 03:03:27 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed — looks good

The reviewed changes at head 86601da18889c31d23db6f00adcecdf074fc1e94 have no verified blocking defects; the implementation and its targeted tests support merging.

What I ran

Read the prepared diff and relevant changed source at the pinned head. No commands or tests were run. The description reports Linux Mint/GCC test and convention checks; those results were not independently run here.

Results

Check Result Note
Diff and source review passed Core behavior and test read
Automated checks not run Author-reported results only
Complete changed-file review not run Two large files partly unread

Findings

Blocking

None found in the read code.

Non-blocking

None.

Not verified

Export.cpp and include/InventoryExports.hpp are marked too large for the prepared folder. I read the changed regions of each through the pinned reader, but not their full text. The complete LegacyExports.hpp text was available but only its touched region was read. The review-folder exclusion listing was unavailable. The PR's reported module disassembly/harness checks, reported test commands, Windows behavior, and console behavior were not independently verified. Could not run the repository reader as a command or execute checks in this environment.

Files read: description.md, commits.md, manifest.json, diff.patch; changed source files include/LegacyExports.hpp, include/MessagePortChannelExports.hpp, libSceNKWebKit.hpp, src/MessagePortChannel.cpp, src/MessagePortChannelAbi.hpp, tests/MessagePortChannel.cpp, and docs/dev/debt/changes/feat-nkwebkit-message-port-channel.md; relevant changed regions of Export.cpp and include/InventoryExports.hpp. files.json was not available.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6002442670 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24019#pullrequestreview-6002442670). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T03:03:27Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed changes at head `86601da18889c31d23db6f00adcecdf074fc1e94` have no verified blocking defects; the implementation and its targeted tests support merging. ## What I ran Read the prepared diff and relevant changed source at the pinned head. No commands or tests were run. The description reports Linux Mint/GCC test and convention checks; those results were not independently run here. ## Results | Check | Result | Note | |---|---|---| | Diff and source review | passed | Core behavior and test read | | Automated checks | not run | Author-reported results only | | Complete changed-file review | not run | Two large files partly unread | ## Findings ### Blocking None found in the read code. ### Non-blocking None. ## Not verified `Export.cpp` and `include/InventoryExports.hpp` are marked too large for the prepared folder. I read the changed regions of each through the pinned reader, but not their full text. The complete `LegacyExports.hpp` text was available but only its touched region was read. The review-folder exclusion listing was unavailable. The PR's reported module disassembly/harness checks, reported test commands, Windows behavior, and console behavior were not independently verified. Could not run the repository reader as a command or execute checks in this environment. Files read: `description.md`, `commits.md`, `manifest.json`, `diff.patch`; changed source files `include/LegacyExports.hpp`, `include/MessagePortChannelExports.hpp`, `libSceNKWebKit.hpp`, `src/MessagePortChannel.cpp`, `src/MessagePortChannelAbi.hpp`, `tests/MessagePortChannel.cpp`, and `docs/dev/debt/changes/feat-nkwebkit-message-port-channel.md`; relevant changed regions of `Export.cpp` and `include/InventoryExports.hpp`. `files.json` was not available. ## To get this to a good state Nothing is required.
coderabbitai[bot] commented 2026-11-30 03:48:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T03:48:26Z.

Review: COMMENTED


Architecture findings (1)

Advisory architecture findings (1)

  • Trivial — The working exports introduce direct reads through caller-provided pointers where the base stubs performed none. If a deployed binding passes a stale or ABI-incompatible channel object, the calls can fault or return incorrect channel state. Whether an untrusted caller can violate that precondition remains unverified.
Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8be32171-de8d-4b31-b4b9-d38ce54820fc
Commits

Reviewing files that changed from the base of the PR and between aecfbf79b1 and 260920b7d6.

Files selected for processing: 9

  • core/libs/prx/libSceNKWebKit/Export.cpp
  • core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
  • core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp
  • core/libs/prx/libSceNKWebKit/include/MessagePortChannelExports.hpp
  • core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp
  • core/libs/prx/libSceNKWebKit/src/MessagePortChannel.cpp
  • core/libs/prx/libSceNKWebKit/src/MessagePortChannelAbi.hpp
  • core/libs/prx/libSceNKWebKit/tests/MessagePortChannel.cpp
  • docs/dev/debt/changes/feat-nkwebkit-message-port-channel.md
Files with no reviewable changes: 3

  • core/libs/prx/libSceNKWebKit/Export.cpp
  • core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
  • core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp

Limit details: You’ve used all 10 included reviews currently available.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6106659225 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24019#pullrequestreview-6106659225). Originally posted by [coderabbitai[bot]](https://github.com/apps/coderabbitai) on 2026-11-30T03:48:26Z. **Review:** COMMENTED --- <!-- coderabbit-ai-generated:v1 --> **Architecture findings (1)** <details> <summary>Advisory architecture findings (1)</summary> <dl> <dd> <br> - **Trivial** — The working exports introduce direct reads through caller-provided pointers where the base stubs performed none. If a deployed binding passes a stale or ABI-incompatible channel object, the calls can fault or return incorrect channel state. Whether an untrusted caller can violate that precondition remains unverified. </dd> </dl> </details> <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: Unavailable - **Branch**: Unavailable - **File**: No configuration file from this repository applied - **Commit**: Unavailable - **Layers**: defaults - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `8be32171-de8d-4b31-b4b9-d38ce54820fc` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between aecfbf79b16f30381fbba00a60ac33c817611f08 and 260920b7d6a7c6aaaaf991fcdc3b5596efc1b799. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 9</summary> <dl> <dd> <br> * `core/libs/prx/libSceNKWebKit/Export.cpp` * `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` * `core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp` * `core/libs/prx/libSceNKWebKit/include/MessagePortChannelExports.hpp` * `core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp` * `core/libs/prx/libSceNKWebKit/src/MessagePortChannel.cpp` * `core/libs/prx/libSceNKWebKit/src/MessagePortChannelAbi.hpp` * `core/libs/prx/libSceNKWebKit/tests/MessagePortChannel.cpp` * `docs/dev/debt/changes/feat-nkwebkit-message-port-channel.md` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-no-changes-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-no-changes.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files with no reviewable changes: 3</summary> <dl> <dd> <br> * core/libs/prx/libSceNKWebKit/Export.cpp * core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp * core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp </dd> </dl> </details> **Limit details:** You’ve used all 10 included reviews currently available. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=7bfc7479-f9c3-4f16-b46a-8ade890d2c4a attempt=1182e49e-65fa-4677-843c-74d264b4c4e4 batch=1/1 -->
MarcZX10 commented 2026-11-30 05:54:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T05:54:19Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the inspected implementation and tests support merging.

What I ran

Reviewed head 260920b7d6a7c6aaaaf991fcdc3b5596efc1b799. I inspected the prepared diff and manifest, plus the pinned source for the changed functions. No test commands were run; reported test results below are from the PR description.

Results

Check Result Note
Patch review passed Export logic and ABI layout inspected
Tests not run Results reported by the author
Windows not run Reported by the author

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text of Export.cpp was excluded by the review folder size rule; I read the relevant source ranges around the removed stubs. The changed header files InventoryExports.hpp and LegacyExports.hpp were listed as included but were not read. I did not inspect the test build registration, run the tests, verify the binary module or its offsets, or test on Windows or a console. The author reports the Linux test, conventions check, public headers audit, and merge-tree check passed.

Files read: description.md, commits.md, manifest.json, diff.patch, Export.cpp relevant ranges, and the added test, implementation, ABI, exports, and debt files as shown in the diff. Files excluded by the review folder: Export.cpp full text (too large). InventoryExports.hpp and LegacyExports.hpp were not inspected.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6107477813 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24019#pullrequestreview-6107477813). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-30T05:54:19Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the inspected implementation and tests support merging. ## What I ran Reviewed head `260920b7d6a7c6aaaaf991fcdc3b5596efc1b799`. I inspected the prepared diff and manifest, plus the pinned source for the changed functions. No test commands were run; reported test results below are from the PR description. ## Results | Check | Result | Note | |---|---|---| | Patch review | passed | Export logic and ABI layout inspected | | Tests | not run | Results reported by the author | | Windows | not run | Reported by the author | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full text of `Export.cpp` was excluded by the review folder size rule; I read the relevant source ranges around the removed stubs. The changed header files `InventoryExports.hpp` and `LegacyExports.hpp` were listed as included but were not read. I did not inspect the test build registration, run the tests, verify the binary module or its offsets, or test on Windows or a console. The author reports the Linux test, conventions check, public headers audit, and merge-tree check passed. Files read: `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `Export.cpp` relevant ranges, and the added test, implementation, ABI, exports, and debt files as shown in the diff. Files excluded by the review folder: `Export.cpp` full text (too large). `InventoryExports.hpp` and `LegacyExports.hpp` were not inspected. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 12:47:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:47:16Z.

Review: COMMENTED


Built the branch’s changed sources and ran MessagePortChannel on Linux against the existing runtime libraries. The test run passed and covered the process lookup and pending-or-in-flight state queries.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6170096246 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24019#pullrequestreview-6170096246). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T12:47:16Z. **Review:** COMMENTED --- Built the branch’s changed sources and ran `MessagePortChannel` on Linux against the existing runtime libraries. The test run passed and covered the process lookup and pending-or-in-flight state queries. AI-assisted: yes.

Pull request closed

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!24019
No description provided.