fix(libkernel): return EFAULT from AIO poll, cancel and delete for invalid memory #14417

Merged
roboterspinne merged 1 commit from upstream-pr/14417 into main 2026-11-02 22:36:03 +00:00
roboterspinne commented 2026-11-01 11:52:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by roboterspinne on 2026-11-01T11:52:56Z.


What

On 26fa1212b8 (line numbers below refer to it) sceKernelAioPollRequest, sceKernelAioPollRequests, sceKernelAioCancelRequest, sceKernelAioCancelRequests, sceKernelAioDeleteRequest and sceKernelAioDeleteRequests crash the host when a guest passes a non-null id array or output that is not mapped or not writable. Each checks its pointers only for null (the single forms inline, the batch forms through ValidateIds, core/libs/prx/libkernel/Aio/src/Aio.cpp:249-253) and then writes *ret, *state, ret[i] and state[i] and reads id[i] with plain host accesses (Aio.cpp:276, 284-285, 293, 301-302, 353, 429), so a state pointer of 0x10 or a read-only page takes an access violation in libkernel.prx instead of returning an error. The repository's rule for guest pointers in these libraries is the checked copy: GuestCopyOut_nid_no_patch (core/libs/prx/libc/src/General.cpp:823-854) checks the destination with VirtualQuery on Windows, process_vm_writev on Linux and mach_vm_write on macOS, and GuestCopyIn_nid_no_patch (General.cpp:856-861) reads through CopyGuestBytes (General.cpp:86); a failed copy returns SCE_KERNEL_ERROR_EFAULT, as sceKernelQueryMemoryProtection and sceKernelIsStack do (#13904, docs/dev/debt/libkernel.md:76). The null EFAULT checks these six exports already have are that rule for a null pointer only.

  • Rule. After the existing null and count checks, the batch forms copy the ids into a local array with GuestCopyIn; the single and batch forms run the existing ReportLocked, CancelLocked or DeleteLocked calls in the same order under the registry lock, into local states, and copy the states out with one GuestCopyOut. A failed copy returns SCE_KERNEL_ERROR_EFAULT. Everything else is unchanged: ValidateIds stays as it is, because the waits share it, so a null pointer still returns EFAULT and a count outside 1 to 128 still returns EINVAL before anything is read or written; a pending id still throws before anything is written; unknown ids still get ESRCH. Because the operations still run one id after the other, duplicate ids keep their results: {x, x} gives {3, 0x10003} for an unreported finished request in sceKernelAioPollRequests and {0, ESRCH} in sceKernelAioDeleteRequests. The states are copied out after the registry changed, so when the copy faults a poll has already marked the request reported and a delete has already removed it (a cancel changes nothing), as #13904 leaves earlier outputs written; the new debt entry says so and that console fault behaviour is unmeasured. sceKernelAioWaitRequest(s) (changed by open #13224) and the submit calls are left for a follow-up and named in the entry.
  • Tests. guest_aio gains checks next to the existing null checks: an id array at 0x10 returns EFAULT from the three batch forms and leaves the states untouched (a count of 0 still returns EINVAL first); with a state or ret pointer of 0x10 and with a read-only page (VirtualAlloc with PAGE_READONLY on Windows, mmap with PROT_READ elsewhere, so the protection check runs and not only the unmapped one) every one of the six exports returns EFAULT and the page stays 0; afterwards a request whose poll faulted polls 0x10003 and one whose delete faulted deletes with ESRCH, which pins the order above, and one whose cancel faulted polls 3; and the duplicate-id results of the batch forms. guest_aio_registry_tests needs one test-only change: its host-read hook HoldAioSource (core/libs/tests/GuestAioRegistry.cpp:164-170, installed at 183) parks every caller of the guest-arena host-read hook until the main thread releases it, and GuestCopyIn goes through that hook (General.cpp:86-87). With this change the main thread's own sceKernelAioCancelRequests and sceKernelAioDeleteRequests checks (lines 200-206) read their ids through it and wait on the gate they are meant to observe, so guest_aio_processing and guest_aio_processing-rollback abort after 5 s at line 168. The hook now holds only the read of the submitter's source byte (g_aioGateSource, set to its address before the hook is installed), which is the transfer the test parks; the test checks the same things as before.
  • Overlap. pr_overlap.py --branch finds no shared lines with the open pull requests it can compare, including #13224, and cannot compare 46 open pull requests that do not merge with main: #7121, which also changes Aio.cpp and docs/dev/debt/libkernel.md, and 45 that change only docs/dev/debt/libkernel.md of this PR's files. Checked by hand: a trial merge of this branch with each of the 46 conflicts in exactly the files that main with it already conflicts in, so Aio.cpp and docs/dev/debt/libkernel.md add no conflict.

Tested

Windows 11, WinLibs GCC 15.2.0, Ninja Release build (BUILD_TESTING=ON) of the targets guest_aio_tests and guest_aio_registry_tests on c2bd5e5a1f (based on 26fa1212b8):

  • cmake --build build --parallel 6 --target guest_aio_tests guest_aio_registry_tests, then ctest --test-dir build -R '^guest_aio' --output-on-failure (8 tests: guest_aio, guest_aio_bad_descriptors and the six guest_aio_registry_tests modes identity, admission, rollback, identity-exhaustion, processing and processing-rollback).
  • Counter-check with the new tests and the Aio.cpp of 26fa1212b8: guest_aio fails with Exception: SegFault, FATAL: unhandled exception 0xc0000005, rip ... libkernel.prx+0xb3cf0, read of 0x0000000000000010 (the first check with a count of 2 and the id array at 0x10); the other 7 pass, so the hook change keeps the registry tests green on main.
  • With the Aio.cpp change and the registry test of 26fa1212b8: guest_aio_processing and guest_aio_processing-rollback fail with Exit code 0xc0000409 after about 5.2 s, which is the timeout of the hook's wait_for (line 168 on 26fa1212b8); the other 6 pass.
  • The two counter-checks above ran on 2198bfcd71, a local commit that was never pushed; it differs from c2bd5e5a1f only in one sentence of docs/dev/debt/libkernel.md:77, so the code and the tests are identical.
  • With this change, on c2bd5e5a1f: 8 of 8 pass (guest_aio 0.28 s, the other seven 0.02 to 0.12 s), including guest_aio_bad_descriptors.
  • Hosted Windows job on c2bd5e5a1f merged into main (run 41303851668, job 124842517716): it built guest_aio_tests and guest_aio_registry_tests and ran guest_aio and the six registry modes, all passed; guest_aio_bad_descriptors was not among the tests it selected.
  • Linux and macOS: not run. There is no POSIX host here, and the hosted linux job runs only on push or on a workflow_dispatch with linux enabled, so the mmap/PROT_READ branch of the test and the process_vm_writev/mach_vm_write paths of GuestCopyOut are untested.
  • python tools/check_conventions.py --base 26fa1212b8 with this title and description passed.

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
  • 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 (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5107067687 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14417). Originally posted by [roboterspinne](https://github.com/roboterspinne) on 2026-11-01T11:52:56Z. --- ### What On 26fa1212b8 (line numbers below refer to it) `sceKernelAioPollRequest`, `sceKernelAioPollRequests`, `sceKernelAioCancelRequest`, `sceKernelAioCancelRequests`, `sceKernelAioDeleteRequest` and `sceKernelAioDeleteRequests` crash the host when a guest passes a non-null id array or output that is not mapped or not writable. Each checks its pointers only for null (the single forms inline, the batch forms through `ValidateIds`, `core/libs/prx/libkernel/Aio/src/Aio.cpp:249-253`) and then writes `*ret`, `*state`, `ret[i]` and `state[i]` and reads `id[i]` with plain host accesses (`Aio.cpp:276`, `284-285`, `293`, `301-302`, `353`, `429`), so a state pointer of `0x10` or a read-only page takes an access violation in `libkernel.prx` instead of returning an error. The repository's rule for guest pointers in these libraries is the checked copy: `GuestCopyOut_nid_no_patch` (`core/libs/prx/libc/src/General.cpp:823-854`) checks the destination with `VirtualQuery` on Windows, `process_vm_writev` on Linux and `mach_vm_write` on macOS, and `GuestCopyIn_nid_no_patch` (`General.cpp:856-861`) reads through `CopyGuestBytes` (`General.cpp:86`); a failed copy returns `SCE_KERNEL_ERROR_EFAULT`, as `sceKernelQueryMemoryProtection` and `sceKernelIsStack` do (#13904, `docs/dev/debt/libkernel.md:76`). The null `EFAULT` checks these six exports already have are that rule for a null pointer only. - **Rule.** After the existing null and count checks, the batch forms copy the ids into a local array with `GuestCopyIn`; the single and batch forms run the existing `ReportLocked`, `CancelLocked` or `DeleteLocked` calls in the same order under the registry lock, into local states, and copy the states out with one `GuestCopyOut`. A failed copy returns `SCE_KERNEL_ERROR_EFAULT`. Everything else is unchanged: `ValidateIds` stays as it is, because the waits share it, so a null pointer still returns `EFAULT` and a count outside 1 to 128 still returns `EINVAL` before anything is read or written; a pending id still throws before anything is written; unknown ids still get `ESRCH`. Because the operations still run one id after the other, duplicate ids keep their results: `{x, x}` gives `{3, 0x10003}` for an unreported finished request in `sceKernelAioPollRequests` and `{0, ESRCH}` in `sceKernelAioDeleteRequests`. The states are copied out after the registry changed, so when the copy faults a poll has already marked the request reported and a delete has already removed it (a cancel changes nothing), as #13904 leaves earlier outputs written; the new debt entry says so and that console fault behaviour is unmeasured. `sceKernelAioWaitRequest(s)` (changed by open #13224) and the submit calls are left for a follow-up and named in the entry. - **Tests.** `guest_aio` gains checks next to the existing null checks: an id array at `0x10` returns `EFAULT` from the three batch forms and leaves the states untouched (a count of 0 still returns `EINVAL` first); with a state or ret pointer of `0x10` and with a read-only page (`VirtualAlloc` with `PAGE_READONLY` on Windows, `mmap` with `PROT_READ` elsewhere, so the protection check runs and not only the unmapped one) every one of the six exports returns `EFAULT` and the page stays 0; afterwards a request whose poll faulted polls `0x10003` and one whose delete faulted deletes with `ESRCH`, which pins the order above, and one whose cancel faulted polls 3; and the duplicate-id results of the batch forms. `guest_aio_registry_tests` needs one test-only change: its host-read hook `HoldAioSource` (`core/libs/tests/GuestAioRegistry.cpp:164-170`, installed at 183) parks every caller of the guest-arena host-read hook until the main thread releases it, and `GuestCopyIn` goes through that hook (`General.cpp:86-87`). With this change the main thread's own `sceKernelAioCancelRequests` and `sceKernelAioDeleteRequests` checks (lines 200-206) read their ids through it and wait on the gate they are meant to observe, so `guest_aio_processing` and `guest_aio_processing-rollback` abort after 5 s at line 168. The hook now holds only the read of the submitter's source byte (`g_aioGateSource`, set to its address before the hook is installed), which is the transfer the test parks; the test checks the same things as before. - **Overlap.** `pr_overlap.py --branch` finds no shared lines with the open pull requests it can compare, including #13224, and cannot compare 46 open pull requests that do not merge with `main`: #7121, which also changes `Aio.cpp` and `docs/dev/debt/libkernel.md`, and 45 that change only `docs/dev/debt/libkernel.md` of this PR's files. Checked by hand: a trial merge of this branch with each of the 46 conflicts in exactly the files that `main` with it already conflicts in, so `Aio.cpp` and `docs/dev/debt/libkernel.md` add no conflict. ### 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. --> Windows 11, WinLibs GCC 15.2.0, Ninja Release build (`BUILD_TESTING=ON`) of the targets `guest_aio_tests` and `guest_aio_registry_tests` on c2bd5e5a1f (based on 26fa1212b8): - `cmake --build build --parallel 6 --target guest_aio_tests guest_aio_registry_tests`, then `ctest --test-dir build -R '^guest_aio' --output-on-failure` (8 tests: `guest_aio`, `guest_aio_bad_descriptors` and the six `guest_aio_registry_tests` modes `identity`, `admission`, `rollback`, `identity-exhaustion`, `processing` and `processing-rollback`). - Counter-check with the new tests and the `Aio.cpp` of 26fa1212b8: `guest_aio` fails with `Exception: SegFault`, `FATAL: unhandled exception 0xc0000005`, `rip ... libkernel.prx+0xb3cf0`, `read of 0x0000000000000010` (the first check with a count of 2 and the id array at `0x10`); the other 7 pass, so the hook change keeps the registry tests green on `main`. - With the `Aio.cpp` change and the registry test of 26fa1212b8: `guest_aio_processing` and `guest_aio_processing-rollback` fail with `Exit code 0xc0000409` after about 5.2 s, which is the timeout of the hook's `wait_for` (line 168 on 26fa1212b8); the other 6 pass. - The two counter-checks above ran on 2198bfcd71, a local commit that was never pushed; it differs from c2bd5e5a1f only in one sentence of `docs/dev/debt/libkernel.md:77`, so the code and the tests are identical. - With this change, on c2bd5e5a1f: 8 of 8 pass (`guest_aio` 0.28 s, the other seven 0.02 to 0.12 s), including `guest_aio_bad_descriptors`. - Hosted Windows job on c2bd5e5a1f merged into `main` ([run 41303851668, job 124842517716](https://github.com/boykopovar/AnyPS5/actions/runs/41303851668/job/124842517716)): it built `guest_aio_tests` and `guest_aio_registry_tests` and ran `guest_aio` and the six registry modes, all passed; `guest_aio_bad_descriptors` was not among the tests it selected. - Linux and macOS: not run. There is no POSIX host here, and the hosted `linux` job runs only on `push` or on a `workflow_dispatch` with `linux` enabled, so the `mmap`/`PROT_READ` branch of the test and the `process_vm_writev`/`mach_vm_write` paths of `GuestCopyOut` are untested. - `python tools/check_conventions.py --base 26fa1212b8` with this title and description passed. ### 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) - [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: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> n/a - [x] AI-assisted: <!-- yes / no --> yes (Claude Code)
MarcZX10 commented 2026-11-01 12:17:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T12:17:16Z.

Review: COMMENTED


Reviewed — no blocking findings, two evidence gaps

The change routes the six AIO poll, cancel and delete exports through checked guest copies and keeps the existing registry order, but the Tested section reports runs on an earlier head (2198bfcd71), and the POSIX branch of the new test has not been run.

What I ran

  • Head c2bd5e5a1f14847c88fe7425e57152a6668b062d (one commit on 26fa1212b8). Base for the mergeability check: ba627802e2210187d417deb64c8f2fed8e33011f (current main). No merged-preview build was run.
  • python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14417 from /marc/AnyPS5 (no build). Diff check, conventions and PR template, and the live stack check passed. The ABI and test-quality steps failed only because tools/pr_abi_audit.py and tools/pr_test_quality.py are not in the head tree.
  • By hand, from /marc/AnyPS5: python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base ba627802e2210187d417deb64c8f2fed8e33011f --head c2bd5e5a1f14847c88fe7425e57152a6668b062d --json (status passed, 15 symbols, 0 findings; lexical only).
  • By hand: python3 tools/pr_test_quality.py --root <export of c2bd5e5a1f> --json core/libs/tests/GuestAio.cpp core/libs/tests/GuestAioRegistry.cpp. Two possible-unregistered-cpp-test findings, both false positives: the tests are registered in core/libs/prx/libkernel/CMakeLists.txt through ${LIBS_INCLUDE_DIR}/tests/....
  • Source reading at c2bd5e5a1f only: Aio.cpp, General.cpp (GuestCopyOut/GuestCopyIn), GuestAio.cpp, GuestAioRegistry.cpp, build.yml.
  • Nothing was compiled, built or executed by me.

Results

Check Result
diff check passed
conventions and PR template passed
stack and mergeability (live) passed
ABI audit (run by hand) passed, 15 symbols, 0 findings
test-quality heuristics (run by hand) two false positives, see above
hosted CI at this head conventions, library-portability, report, intake, eligibility: success; windows and labels: queued; linux, relinker and others: skipped

The linux job in build.yml runs only on push or a manual dispatch, so it does not run for this pull request.

ABI audit (by hand) — raw output
{'status': 'passed', 'symbols': 15, 'findings': 0, 'limitations': 2}

Findings

Blocking

None.

Non-blocking

  1. The Tested section is tied to a head that is no longer the PR head. It reports the guest_aio and guest_aio_registry_tests runs on 2198bfcd71 and says c2bd5e5a1f only rewords the debt entry. 2198bfcd71 is not reachable from this PR, which has one commit, c2bd5e5a1f, so that statement cannot be checked here. Please either rerun the two targets on c2bd5e5a1f and restate the results against that SHA, or give the exact diff from 2198bfcd71 that the body relies on.

  2. The POSIX branch of the new test has not been run. GuestAio.cpp adds <sys/mman.h> and a read-only anonymous page through mmap and munmap (PROT_READ) for the fault cases. The fault results on Linux and macOS depend on process_vm_writev and mach_vm_write in GuestCopyOut. The Tested section reports Windows only, and the hosted Linux job does not run on pull requests. Please run guest_aio on Linux or macOS and report the result against c2bd5e5a1f, or name the run that covers it.

Sources

Permalinks at c2bd5e5a1f14847c88fe7425e57152a6668b062d:

Not verified

  • No build or run was done here. The new tests were not run on any host at this head, and the Windows result in the body is for 2198bfcd71.
  • Linux and macOS behaviour of the new fault cases (process_vm_writev, mach_vm_write) and of the POSIX test branch.
  • The hosted Windows job was queued when I looked. Approval waits for it.
  • Console behaviour on bad memory is unmeasured, as the debt entry says; this review does not address it.

To get this to a good state

  1. Restate the Tested section against c2bd5e5a1f, or give the exact diff from 2198bfcd71 that the body relies on.
  2. Run guest_aio on Linux or macOS, or name the run that covers the POSIX branch.

The hosted Windows job at the head is the remaining gate; if the head changes, the new diff will be read again.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5727985594 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14417#pullrequestreview-5727985594). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T12:17:16Z. **Review:** COMMENTED --- # Reviewed — no blocking findings, two evidence gaps The change routes the six AIO poll, cancel and delete exports through checked guest copies and keeps the existing registry order, but the Tested section reports runs on an earlier head (2198bfcd71), and the POSIX branch of the new test has not been run. ## What I ran - Head `c2bd5e5a1f14847c88fe7425e57152a6668b062d` (one commit on `26fa1212b8`). Base for the mergeability check: `ba627802e2210187d417deb64c8f2fed8e33011f` (current `main`). No merged-preview build was run. - `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14417` from `/marc/AnyPS5` (no build). Diff check, conventions and PR template, and the live stack check passed. The ABI and test-quality steps failed only because `tools/pr_abi_audit.py` and `tools/pr_test_quality.py` are not in the head tree. - By hand, from `/marc/AnyPS5`: `python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base ba627802e2210187d417deb64c8f2fed8e33011f --head c2bd5e5a1f14847c88fe7425e57152a6668b062d --json` (status passed, 15 symbols, 0 findings; lexical only). - By hand: `python3 tools/pr_test_quality.py --root <export of c2bd5e5a1f> --json core/libs/tests/GuestAio.cpp core/libs/tests/GuestAioRegistry.cpp`. Two `possible-unregistered-cpp-test` findings, both false positives: the tests are registered in `core/libs/prx/libkernel/CMakeLists.txt` through `${LIBS_INCLUDE_DIR}/tests/...`. - Source reading at `c2bd5e5a1f` only: `Aio.cpp`, `General.cpp` (`GuestCopyOut`/`GuestCopyIn`), `GuestAio.cpp`, `GuestAioRegistry.cpp`, `build.yml`. - Nothing was compiled, built or executed by me. ## Results | Check | Result | |---|---| | diff check | passed | | conventions and PR template | passed | | stack and mergeability (live) | passed | | ABI audit (run by hand) | passed, 15 symbols, 0 findings | | test-quality heuristics (run by hand) | two false positives, see above | | hosted CI at this head | conventions, library-portability, report, intake, eligibility: success; windows and labels: queued; linux, relinker and others: skipped | The `linux` job in `build.yml` runs only on `push` or a manual dispatch, so it does not run for this pull request. <details><summary>ABI audit (by hand) — raw output</summary> ```text {'status': 'passed', 'symbols': 15, 'findings': 0, 'limitations': 2} ``` </details> ## Findings ### Blocking None. ### Non-blocking 1. The Tested section is tied to a head that is no longer the PR head. It reports the `guest_aio` and `guest_aio_registry_tests` runs on `2198bfcd71` and says `c2bd5e5a1f` only rewords the debt entry. `2198bfcd71` is not reachable from this PR, which has one commit, `c2bd5e5a1f`, so that statement cannot be checked here. Please either rerun the two targets on `c2bd5e5a1f` and restate the results against that SHA, or give the exact diff from `2198bfcd71` that the body relies on. 2. The POSIX branch of the new test has not been run. `GuestAio.cpp` adds `<sys/mman.h>` and a read-only anonymous page through `mmap` and `munmap` (`PROT_READ`) for the fault cases. The fault results on Linux and macOS depend on `process_vm_writev` and `mach_vm_write` in `GuestCopyOut`. The Tested section reports Windows only, and the hosted Linux job does not run on pull requests. Please run `guest_aio` on Linux or macOS and report the result against `c2bd5e5a1f`, or name the run that covers it. ## Sources Permalinks at `c2bd5e5a1f14847c88fe7425e57152a6668b062d`: - `ApplyToIds`: the ids are copied in with `GuestCopyIn`, the registry operations run under the lock, and the states are copied out after it: https://github.com/boykopovar/AnyPS5/blob/c2bd5e5a1f14847c88fe7425e57152a6668b062d/core/libs/prx/libkernel/Aio/src/Aio.cpp#L259-L275 - `CancelLocked` does not write the registry, which is why a faulting cancel changes nothing: https://github.com/boykopovar/AnyPS5/blob/c2bd5e5a1f14847c88fe7425e57152a6668b062d/core/libs/prx/libkernel/Aio/src/Aio.cpp#L142-L146 - `GuestCopyOut` on Windows rejects read-only pages, and on Linux and macOS it uses `process_vm_writev` and `mach_vm_write`: https://github.com/boykopovar/AnyPS5/blob/c2bd5e5a1f14847c88fe7425e57152a6668b062d/core/libs/prx/libc/src/General.cpp#L823-L854 - The `linux` job condition (`push` or `workflow_dispatch` only): https://github.com/boykopovar/AnyPS5/blob/c2bd5e5a1f14847c88fe7425e57152a6668b062d/.github/workflows/build.yml#L434-L436 ## Not verified - No build or run was done here. The new tests were not run on any host at this head, and the Windows result in the body is for `2198bfcd71`. - Linux and macOS behaviour of the new fault cases (`process_vm_writev`, `mach_vm_write`) and of the POSIX test branch. - The hosted Windows job was queued when I looked. Approval waits for it. - Console behaviour on bad memory is unmeasured, as the debt entry says; this review does not address it. ## To get this to a good state 1. Restate the Tested section against `c2bd5e5a1f`, or give the exact diff from `2198bfcd71` that the body relies on. 2. Run `guest_aio` on Linux or macOS, or name the run that covers the POSIX branch. The hosted Windows job at the head is the remaining gate; if the head changes, the new diff will be read again.
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!14417
No description provided.