fix(libcairo): fault matrix pointers that Cairo dereferences #23881

Open
brianmatute011 wants to merge 5 commits from upstream-pr/23881 into main
brianmatute011 commented 2026-11-19 20:40:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by brianmatute011 on 2026-11-19T20:40:29Z.


What

Moves the four throw sites in core/libs/prx/libcairo/Matrix.cpp from NotImplemented_nid_no_patch to GuestFault_nid_no_patch, the helper added by #23849. Part of #23391.

Reason: Cairo 1.18.0 src/cairo-matrix.c, the version these exports run, reads and writes the matrix and coordinate pointers without a check, for example *x += matrix->x0; in cairo_matrix_transform_point. An unreadable or unwritable pointer is therefore undefined upstream. The four sites only fire on such a pointer:

  • ReadGuest and WriteGuest, when GuestCopyIn_nid_no_patch or GuestCopyOut_nid_no_patch fails;
  • the GuestWritable_nid_no_patch checks on the coordinate outputs of cairo_matrix_transform_distance and cairo_matrix_transform_point.

Behaviour does not change: the same inputs still throw before any guest write, and every valid call takes the same path as before. Only the exception message changes, and these calls no longer count as unimplemented exports.

GuestCairoMatrixGuestPointers.cpp now also requires that each rejected call leaves NotImplementedCalls_nid_no_patch() unchanged. The reason is added to the pending libcairo debt fragment that already changes the Matrix.cpp entry (codex-cairo-matrix-point-alias.md), because debt_fold.py refuses a second fragment on the same entry.

tools/progress.py --module libcairo: 108 of 161 before, 118 of 161 after. The ten functions now counted are cairo_matrix_init, cairo_matrix_init_identity, cairo_matrix_init_translate, cairo_matrix_multiply, cairo_matrix_translate, cairo_matrix_scale, cairo_matrix_rotate, cairo_matrix_invert, cairo_matrix_transform_distance and cairo_matrix_transform_point.

This branch carries the commit of #23849 until that pull request is merged. Only the last commit belongs to this one.

Tested

Ubuntu 24.04.5, kernel 7.0.0, GCC 13.3.0, Release, on main 87ee89b036 with #23849 (4a618c6db0) applied:

  • ctest -R cairo: 35 of 35 pass.
  • With one site temporarily switched back to NotImplemented_nid_no_patch, guest_cairo_matrix_guest_pointers fails on the new counter check; with GuestFault_nid_no_patch it passes.
  • python3 tools/debt_fold.py --check: passes.
  • python3 tools/check_conventions.py --base upstream/main: all checks passed.
  • python3 tools/pr_overlap.py --branch feat/libcairo-matrix-guest-fault --base main: the only overlaps reported are in the files of #23849. No open pull request touches Matrix.cpp, GuestCairoMatrixGuestPointers.cpp or the debt fragment. #15208, #18404 and #19529 edit docs/dev/debt/libcairo.md, but not the Matrix.cpp entry.

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: #23849
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Summary by CodeRabbit

  • Bug Fixes
    • Invalid guest-memory access during Cairo matrix operations now reports a guest fault instead of an unimplemented operation. This applies when reading or writing matrix and coordinate data.
    • Regression coverage verifies that rejected operations no longer trigger the unimplemented-call response.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5402604989 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23881). Originally posted by [brianmatute011](https://github.com/brianmatute011) on 2026-11-19T20:40:29Z. --- ### What Moves the four throw sites in `core/libs/prx/libcairo/Matrix.cpp` from `NotImplemented_nid_no_patch` to `GuestFault_nid_no_patch`, the helper added by #23849. Part of #23391. Reason: Cairo 1.18.0 [`src/cairo-matrix.c`](https://gitlab.freedesktop.org/cairo/cairo/-/blob/1.18.0/src/cairo-matrix.c), the version these exports run, reads and writes the matrix and coordinate pointers without a check, for example `*x += matrix->x0;` in `cairo_matrix_transform_point`. An unreadable or unwritable pointer is therefore undefined upstream. The four sites only fire on such a pointer: - `ReadGuest` and `WriteGuest`, when `GuestCopyIn_nid_no_patch` or `GuestCopyOut_nid_no_patch` fails; - the `GuestWritable_nid_no_patch` checks on the coordinate outputs of `cairo_matrix_transform_distance` and `cairo_matrix_transform_point`. Behaviour does not change: the same inputs still throw before any guest write, and every valid call takes the same path as before. Only the exception message changes, and these calls no longer count as unimplemented exports. `GuestCairoMatrixGuestPointers.cpp` now also requires that each rejected call leaves `NotImplementedCalls_nid_no_patch()` unchanged. The reason is added to the pending `libcairo` debt fragment that already changes the `Matrix.cpp` entry (`codex-cairo-matrix-point-alias.md`), because `debt_fold.py` refuses a second fragment on the same entry. `tools/progress.py --module libcairo`: 108 of 161 before, 118 of 161 after. The ten functions now counted are `cairo_matrix_init`, `cairo_matrix_init_identity`, `cairo_matrix_init_translate`, `cairo_matrix_multiply`, `cairo_matrix_translate`, `cairo_matrix_scale`, `cairo_matrix_rotate`, `cairo_matrix_invert`, `cairo_matrix_transform_distance` and `cairo_matrix_transform_point`. This branch carries the commit of #23849 until that pull request is merged. Only the last commit belongs to this one. ### Tested Ubuntu 24.04.5, kernel 7.0.0, GCC 13.3.0, Release, on `main` `87ee89b036` with #23849 (`4a618c6db0`) applied: - `ctest -R cairo`: 35 of 35 pass. - With one site temporarily switched back to `NotImplemented_nid_no_patch`, `guest_cairo_matrix_guest_pointers` fails on the new counter check; with `GuestFault_nid_no_patch` it passes. - `python3 tools/debt_fold.py --check`: passes. - `python3 tools/check_conventions.py --base upstream/main`: all checks passed. - `python3 tools/pr_overlap.py --branch feat/libcairo-matrix-guest-fault --base main`: the only overlaps reported are in the files of #23849. No open pull request touches `Matrix.cpp`, `GuestCairoMatrixGuestPointers.cpp` or the debt fragment. #15208, #18404 and #19529 edit `docs/dev/debt/libcairo.md`, but not the `Matrix.cpp` entry. ### 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: #23849 - [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 * **Bug Fixes** * Invalid guest-memory access during Cairo matrix operations now reports a guest fault instead of an unimplemented operation. This applies when reading or writing matrix and coordinate data. * Regression coverage verifies that rejected operations no longer trigger the unimplemented-call response. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
PrivacyOnion commented 2026-11-19 21:05:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T21:05:19Z.

Review: APPROVED


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

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_cairo_matrix_guest_pointer_tests built cleanly.
  • CTest (guest_cairo_matrix_guest_pointers):
    1/1 Test #5457: guest_cairo_matrix_guest_pointers ...   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libc/include/General.hpp, core/libs/prx/libc/src/General.cpp, core/libs/prx/libcairo/Matrix.cpp reverted to main and the new tests kept, the suite fails:
    1/1 Test #5457: guest_cairo_matrix_guest_pointers ...Subprocess aborted***Exception:   0.46 sec
    0% tests passed, 1 tests failed out of 1
    
    Restoring the change makes it pass again.
  • Code reading:
    • Verified that GuestFault_nid_no_patch is declared with noreturn and proper extern C linkage in core/libs/prx/libc/include/General.hpp and defined in General.cpp without incrementing notImplementedCalls.
    • Checked all replacement call sites in core/libs/prx/libcairo/Matrix.cpp (ReadGuest, WriteGuest, cairo_matrix_transform_distance, cairo_matrix_transform_point) to confirm invalid memory access throws GuestFault rather than counting as an unimplemented export.
    • Verified tools/progress.py reaching_definitions regex logic and AST scanner updates ensuring that GuestFault_nid_no_patch does not keep functions marked as pending stubs, supported by test cases in tools/tests/test_progress.py.
    • Audited documentation and guidelines updates in AGENTS.md, CONTRIBUTING.md, and docs/dev/PROGRESS.md matching repository convention for undefined/faulting guest pointer inputs.
    • Verified technical debt fragment codex-cairo-matrix-point-alias.md and test assertions in core/libs/tests/GuestCairoMatrixGuestPointers.cpp confirming that rejected guest fault calls leave NotImplementedCalls_nid_no_patch() unchanged.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5983388983 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23881#pullrequestreview-5983388983). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-19T21:05:19Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `820e3ffc66`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_cairo_matrix_guest_pointer_tests` built cleanly. - **CTest** (`guest_cairo_matrix_guest_pointers`): ``` 1/1 Test #5457: guest_cairo_matrix_guest_pointers ... Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libc/include/General.hpp`, `core/libs/prx/libc/src/General.cpp`, `core/libs/prx/libcairo/Matrix.cpp` reverted to `main` and the new tests kept, the suite fails: ``` 1/1 Test #5457: guest_cairo_matrix_guest_pointers ...Subprocess aborted***Exception: 0.46 sec 0% tests passed, 1 tests failed out of 1 ``` Restoring the change makes it pass again. - **Code reading**: - Verified that GuestFault_nid_no_patch is declared with [[noreturn]] and proper extern C linkage in core/libs/prx/libc/include/General.hpp and defined in General.cpp without incrementing notImplementedCalls. - Checked all replacement call sites in core/libs/prx/libcairo/Matrix.cpp (ReadGuest, WriteGuest, cairo_matrix_transform_distance, cairo_matrix_transform_point) to confirm invalid memory access throws GuestFault rather than counting as an unimplemented export. - Verified tools/progress.py reaching_definitions regex logic and AST scanner updates ensuring that GuestFault_nid_no_patch does not keep functions marked as pending stubs, supported by test cases in tools/tests/test_progress.py. - Audited documentation and guidelines updates in AGENTS.md, CONTRIBUTING.md, and docs/dev/PROGRESS.md matching repository convention for undefined/faulting guest pointer inputs. - Verified technical debt fragment codex-cairo-matrix-point-alias.md and test assertions in core/libs/tests/GuestCairoMatrixGuestPointers.cpp confirming that rejected guest fault calls leave NotImplementedCalls_nid_no_patch() unchanged. Looks Good To Me
MarcZX10 commented 2026-11-19 21:26:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T21:26:20Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed head changes Cairo matrix pointer rejection to use the guest fault path and updates progress classification; no blocking defect was verified, but tests were not run in this review.

What I ran

Inspected the prepared diff and changed source at head 820e3ffc662fb4d2cbabc0563a74b037b87aa386 using the repo_read.py reader tools. No build or tests were run.

Results

Check Result Note
Prepared diff and source inspection passed Changed behavior reviewed
Build and tests not run Author reports test results in the PR description

Findings

Blocking

None identified in the inspected changes.

Non-blocking

None.

Sources

Reviewed changed lines in Matrix.cpp, General.cpp, progress.py, and test_progress.py, alongside the remaining changed files listed below.

Not verified

No build or tests were run. The PR description reports Cairo tests, a negative control, debt validation, convention checks and overlap checks; these results were not independently verified. Read: AGENTS.md, CONTRIBUTING.md, core/libs/prx/libc/include/General.hpp, core/libs/prx/libc/src/General.cpp, core/libs/prx/libcairo/Matrix.cpp, core/libs/tests/GuestCairoMatrixGuestPointers.cpp, docs/dev/PROGRESS.md, docs/dev/debt/changes/codex-cairo-matrix-point-alias.md, tools/progress.py (relevant changed sections), and tools/tests/test_progress.py (new tests). The manifest marks all changed files included; no excluded files were listed. Full-file text for tools/progress.py and tools/tests/test_progress.py was not read.

To get this to a good state

Nothing is required. Optional: run the focused Cairo tests and progress scanner tests on this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5983668540 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23881#pullrequestreview-5983668540). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T21:26:20Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed head changes Cairo matrix pointer rejection to use the guest fault path and updates progress classification; no blocking defect was verified, but tests were not run in this review. ## What I ran Inspected the prepared diff and changed source at head `820e3ffc662fb4d2cbabc0563a74b037b87aa386` using the `repo_read.py` reader tools. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Prepared diff and source inspection | passed | Changed behavior reviewed | | Build and tests | not run | Author reports test results in the PR description | ## Findings ### Blocking None identified in the inspected changes. ### Non-blocking None. ## Sources Reviewed changed lines in `Matrix.cpp`, `General.cpp`, `progress.py`, and `test_progress.py`, alongside the remaining changed files listed below. ## Not verified No build or tests were run. The PR description reports Cairo tests, a negative control, debt validation, convention checks and overlap checks; these results were not independently verified. Read: `AGENTS.md`, `CONTRIBUTING.md`, `core/libs/prx/libc/include/General.hpp`, `core/libs/prx/libc/src/General.cpp`, `core/libs/prx/libcairo/Matrix.cpp`, `core/libs/tests/GuestCairoMatrixGuestPointers.cpp`, `docs/dev/PROGRESS.md`, `docs/dev/debt/changes/codex-cairo-matrix-point-alias.md`, `tools/progress.py` (relevant changed sections), and `tools/tests/test_progress.py` (new tests). The manifest marks all changed files included; no excluded files were listed. Full-file text for `tools/progress.py` and `tools/tests/test_progress.py` was not read. ## To get this to a good state Nothing is required. Optional: run the focused Cairo tests and progress scanner tests on this head.
MarcZX10 commented 2026-11-21 07:33:03 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — no blocking findings

The pointer fault handling and progress classification changes appear consistent with the stated goal; I did not run the reported checks.

What I ran

Reviewed head d113d50fd27e6a18f9ca6cdc149f99b20c777477 using repo_read.py to inspect the prepared diff and changed source. No test, build, or merged-preview commands were run. The author reports Cairo tests and repository checks passed; those results were not independently verified.

Files read: AGENTS.md, CONTRIBUTING.md, core/libs/prx/libc/include/General.hpp, core/libs/prx/libc/src/General.cpp, core/libs/prx/libcairo/Matrix.cpp, core/libs/tests/GuestCairoMatrixGuestPointers.cpp, docs/dev/PROGRESS.md, docs/dev/debt/changes/codex-cairo-matrix-point-alias.md, tools/progress.py, and tools/tests/test_progress.py. The manifest marks all 10 changed files as included; no excluded files were listed in the manifest.

Results

Check Result Note
Changed-code review passed No concrete defect found
Build and tests not run Author reports checks passed
Merged preview not run Not independently checked

Findings

Blocking

None.

Non-blocking

None.

Not verified

Build and test results in the PR description, including the reported negative control, were not independently run. Console behavior for invalid pointers is reported as unmeasured in the debt entry.

To get this to a good state

Nothing is required. Optional: retain the reported check results with the PR for reviewers to verify.

Sources

Changed behavior reviewed in Matrix.cpp at the reviewed commit, General.cpp at the reviewed commit, and progress.py at the reviewed commit.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6003853198 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23881#pullrequestreview-6003853198). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T07:33:03Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The pointer fault handling and progress classification changes appear consistent with the stated goal; I did not run the reported checks. ## What I ran Reviewed head `d113d50fd27e6a18f9ca6cdc149f99b20c777477` using `repo_read.py` to inspect the prepared diff and changed source. No test, build, or merged-preview commands were run. The author reports Cairo tests and repository checks passed; those results were not independently verified. Files read: `AGENTS.md`, `CONTRIBUTING.md`, `core/libs/prx/libc/include/General.hpp`, `core/libs/prx/libc/src/General.cpp`, `core/libs/prx/libcairo/Matrix.cpp`, `core/libs/tests/GuestCairoMatrixGuestPointers.cpp`, `docs/dev/PROGRESS.md`, `docs/dev/debt/changes/codex-cairo-matrix-point-alias.md`, `tools/progress.py`, and `tools/tests/test_progress.py`. The manifest marks all 10 changed files as included; no excluded files were listed in the manifest. ## Results | Check | Result | Note | |---|---|---| | Changed-code review | passed | No concrete defect found | | Build and tests | not run | Author reports checks passed | | Merged preview | not run | Not independently checked | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Build and test results in the PR description, including the reported negative control, were not independently run. Console behavior for invalid pointers is reported as unmeasured in the debt entry. ## To get this to a good state Nothing is required. Optional: retain the reported check results with the PR for reviewers to verify. ## Sources Changed behavior reviewed in [Matrix.cpp at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/d113d50fd27e6a18f9ca6cdc149f99b20c777477/core/libs/prx/libcairo/Matrix.cpp), [General.cpp at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/d113d50fd27e6a18f9ca6cdc149f99b20c777477/core/libs/prx/libc/src/General.cpp), and [progress.py at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/d113d50fd27e6a18f9ca6cdc149f99b20c777477/tools/progress.py).
MarcZX10 commented 2026-11-22 14:34:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T14:34:36Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the inspected diff moves invalid guest-pointer failures to GuestFault_nid_no_patch and adds checks that those calls do not count as unimplemented.

What I ran

Reviewed head cc312acf156f97074dca3cbcd13d553621cd3710 using the prepared diff and pinned reader. No test commands were run; the commands reported in the PR description are author-reported. I read all ten changed files listed as reviewed in the manifest. files.json was not available through the reader, so excluded-file details are not verified.

Results

Check Result Note
Diff and targeted source review passed All ten manifest files read
Tests and prechecks not run PR description reports author-run checks
Excluded-file inventory not run files.json unavailable

Findings

Blocking

None.

Non-blocking

None.

Not verified

Tests and prechecks were not run on this head. Excluded-file inventory was not verified because files.json was unavailable. Console behavior for invalid pointers remains unmeasured, as recorded in the debt fragment.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6012795390 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23881#pullrequestreview-6012795390). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T14:34:36Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the inspected diff moves invalid guest-pointer failures to `GuestFault_nid_no_patch` and adds checks that those calls do not count as unimplemented. ## What I ran Reviewed head `cc312acf156f97074dca3cbcd13d553621cd3710` using the prepared diff and pinned reader. No test commands were run; the commands reported in the PR description are author-reported. I read all ten changed files listed as reviewed in the manifest. `files.json` was not available through the reader, so excluded-file details are not verified. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | All ten manifest files read | | Tests and prechecks | not run | PR description reports author-run checks | | Excluded-file inventory | not run | `files.json` unavailable | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Tests and prechecks were not run on this head. Excluded-file inventory was not verified because `files.json` was unavailable. Console behavior for invalid pointers remains unmeasured, as recorded in the debt fragment. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 14:57:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T14:57:19Z.

Review: COMMENTED


Built and ran guest_cairo_matrix_guest_pointers on Linux with this head integrated. It passed. I checked the distinction between matrix inputs read by Cairo and guest destinations that the wrapper writes back to after the operation.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6172270615 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23881#pullrequestreview-6172270615). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T14:57:19Z. **Review:** COMMENTED --- Built and ran `guest_cairo_matrix_guest_pointers` on Linux with this head integrated. It passed. I checked the distinction between matrix inputs read by Cairo and guest destinations that the wrapper writes back to after the operation. AI-assisted: yes.
MarcZX10 commented 2026-12-04 02:26:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T02:26:32Z.

Review: APPROVED


Reviewed — looks good

The reviewed changes consistently classify rejected guest-memory accesses as guest faults, and all three changed files were read at 96aca5c46b367a7cca7abbb3fd4e87c1adf802a4.

What I ran

Read the prepared diff and all three changed files. Used repo_read.py at the pinned head for the guest fault implementation. No tests or builds were run.

python3 repo_read.py search GuestFault_nid_no_patch
python3 repo_read.py cat core/libs/prx/libc/src/General.cpp 1270 1305
python3 repo_read.py cat core/libs/tests/GuestCairoMatrixGuestPointers.cpp 1 186

Results

Check Result Note
Changed source review passed All three changed files read
Tests and builds not run No execution performed

Negative control

Not run; the regression test was not executed.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

No tests or builds were run, and guest fault behavior on a physical console was not verified. Files read: core/libs/prx/libcairo/Matrix.cpp, core/libs/tests/GuestCairoMatrixGuestPointers.cpp, and docs/dev/debt/changes/codex-cairo-matrix-point-alias.md. All files listed as reviewed were read; none were excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6182117032 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23881#pullrequestreview-6182117032). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-04T02:26:32Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed changes consistently classify rejected guest-memory accesses as guest faults, and all three changed files were read at `96aca5c46b367a7cca7abbb3fd4e87c1adf802a4`. ## What I ran Read the prepared diff and all three changed files. Used `repo_read.py` at the pinned head for the guest fault implementation. No tests or builds were run. ```text python3 repo_read.py search GuestFault_nid_no_patch python3 repo_read.py cat core/libs/prx/libc/src/General.cpp 1270 1305 python3 repo_read.py cat core/libs/tests/GuestCairoMatrixGuestPointers.cpp 1 186 ``` ## Results | Check | Result | Note | |---|---|---| | Changed source review | passed | All three changed files read | | Tests and builds | not run | No execution performed | ## Negative control Not run; the regression test was not executed. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [Matrix.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/96aca5c46b367a7cca7abbb3fd4e87c1adf802a4/core/libs/prx/libcairo/Matrix.cpp) - [GuestCairoMatrixGuestPointers.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/96aca5c46b367a7cca7abbb3fd4e87c1adf802a4/core/libs/tests/GuestCairoMatrixGuestPointers.cpp) - [General.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/96aca5c46b367a7cca7abbb3fd4e87c1adf802a4/core/libs/prx/libc/src/General.cpp) ## Not verified No tests or builds were run, and guest fault behavior on a physical console was not verified. Files read: `core/libs/prx/libcairo/Matrix.cpp`, `core/libs/tests/GuestCairoMatrixGuestPointers.cpp`, and `docs/dev/debt/changes/codex-cairo-matrix-point-alias.md`. All files listed as reviewed were read; none were excluded. ## To get this to a good state Nothing is required.
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/23881:upstream-pr/23881'
git switch 'upstream-pr/23881'

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/23881'
git switch 'upstream-pr/23881'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/23881'
git switch 'upstream-pr/23881'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/23881'
git switch 'main'
git merge --squash 'upstream-pr/23881'
git switch 'main'
git merge --ff-only 'upstream-pr/23881'
git switch 'main'
git merge 'upstream-pr/23881'
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!23881
No description provided.