fix(libc): keep errno when a checked guest copy faults on Linux #13664

Merged
jotitadev merged 3 commits from upstream-pr/13664 into main 2026-11-08 02:06:39 +00:00
jotitadev commented 2026-10-30 22:19:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-30T22:19:07Z.


What

GuestCopyIn_nid_no_patch and GuestCopyOut_nid_no_patch report a fault only through their false return. On Linux they use process_vm_readv/process_vm_writev, which also leave EFAULT in the host errno, and the guest errno is that same variable (__error returns &errno). On Windows (ReadProcessMemory/VirtualQuery) and macOS (mach_vm_read_overwrite/mach_vm_write) errno is never touched. So any caller that reports the fault through a return code, and any test that checks errno is left alone, sees errno == 14 on Linux only.

The Linux paths now save errno before the syscall and restore it on the EFAULT path, so the three hosts behave the same and each caller sets the guest errno itself. Every current caller in main already does that (*__error() = 14, Fail(GuestEfault), PosixFailure(GUEST_EFAULT), Fault()), returns an SCE error code, or throws, so none depends on the leaked value. Non-EFAULT failures still throw as before.

libkernel has its own copies of this pattern that call process_vm_readv/process_vm_writev directly, so the second commit applies the same rule to them: ReadGuest, WriteGuest and StoreGuestId in System/src/Process.cpp, ReadGuest/WriteGuest in Socket/src/Udp.cpp (also exported as GuestSocketReadGuest_nid_no_patch), CopyIovecs in File/src/Stdio.cpp and ReadGuestTime in Time/Time.cpp. Their callers set the guest errno themselves (*__error() = 14, Fail(14), fail(NET_EFAULT)) or return an SCE code (sceKernelReadv/Writev/Preadv/Pwritev), so none depends on the leaked value either; StoreGuestId's non-EFAULT path is unchanged. The two process_vm_readv probes in libSceAgcDriver (GuestMemory.cpp, FrameRecorder.cpp) are host-side page probes, not guest copies, and are left alone.

This is the shared cause of the Linux-only failures in the "return EFAULT for invalid memory" family, for example #13577 (getlogin_r) and #13552 (system version queries): with this change their tests pass on Linux without the local errno save/restore suggested in their reviews.

Tested

Ubuntu 26.04 x86_64, i7-8700, GCC 15.2, Release, BUILD_TESTING=ON, base main 9605300f29 (the branch was then rebased onto 7fcab08f71, which changes neither touched file).

  • New check in guest_output_pointer_fault: GuestCopyOut/GuestCopyIn on an unmapped address keep errno as the caller left it. Without the fix it fails 3/3 at the GuestCopyOut check; with only the GuestCopyOut hunk it fails 3/3 at the GuestCopyIn check; with the fix 3/3 pass.
  • Full non-GPU suite (ctest -E "^agc|gpu|vulkan|video_out"): 1853/1853 on the base and 1853/1853 with the fix.
  • public_headers passes; tools/check_conventions.py clean.
  • #13552 @ 6906580bc3 merged on top, without its local fix: guest_system_configuration aborts 3/3 on main, passes 3/3 on this branch.
  • #13577 @ 330e1c1d69 merged on top, without its local fix: the errno == 12345 check after getlogin_r(0x10, size) fails 3/3 on main and passes on this branch. Its getlogin_r(0x10, 1) == 14 check still fails on every host (the size check runs first and returns 34); that is a test issue in #13577, not covered here.

Second commit (829f40c523), base main c3c45d73ab, same machine:

  • guest_output_pointer_fault gains two checks on the same unmapped addresses: GuestSocketReadGuest_nid_no_patch (Udp.cpp helpers) and sceKernelReadv with an unreadable iovec table (Stdio.cpp CopyIovecs, returns 0x8002000e) keep errno. On main + the first commit it fails 3/3 at the GuestSocketReadGuest check; with only the Udp.cpp hunk reverted it fails 3/3 there, with only the Stdio.cpp hunk reverted it fails 3/3 at the sceKernelReadv check; with the commit 3/3 pass.
  • Full non-GPU suite: 1857/1857 on main and 1857/1857 on main + this branch. public_headers passes; tools/check_conventions.py clean.
  • #13798 @ bed3f89b78 merged on top with its local errno save/restore removed: guest_app_info aborts 3/3 on main + the first commit only, passes 3/3 on this branch (covers the Process.cpp WriteGuest). With its restore kept it passes too, and a 187-test libkernel subset (process, socket, readv/writev, time, app_info) passes.

Overlap: #11281 also touches General.cpp (it adds a GuestCopyIn_nid_no_patch that main already has); #9371 and #11446 touch other functions in the same file. None changes the lines edited here.

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 (unblocks the Linux tests of #13577, #13552, #13798 and the other "return EFAULT for invalid memory" PRs)
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5091762584 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13664). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-30T22:19:07Z. --- ### What `GuestCopyIn_nid_no_patch` and `GuestCopyOut_nid_no_patch` report a fault only through their `false` return. On Linux they use `process_vm_readv`/`process_vm_writev`, which also leave `EFAULT` in the host `errno`, and the guest `errno` is that same variable (`__error` returns `&errno`). On Windows (`ReadProcessMemory`/`VirtualQuery`) and macOS (`mach_vm_read_overwrite`/`mach_vm_write`) `errno` is never touched. So any caller that reports the fault through a return code, and any test that checks `errno` is left alone, sees `errno == 14` on Linux only. The Linux paths now save `errno` before the syscall and restore it on the `EFAULT` path, so the three hosts behave the same and each caller sets the guest `errno` itself. Every current caller in `main` already does that (`*__error() = 14`, `Fail(GuestEfault)`, `PosixFailure(GUEST_EFAULT)`, `Fault()`), returns an SCE error code, or throws, so none depends on the leaked value. Non-`EFAULT` failures still throw as before. libkernel has its own copies of this pattern that call `process_vm_readv`/`process_vm_writev` directly, so the second commit applies the same rule to them: `ReadGuest`, `WriteGuest` and `StoreGuestId` in `System/src/Process.cpp`, `ReadGuest`/`WriteGuest` in `Socket/src/Udp.cpp` (also exported as `GuestSocketReadGuest_nid_no_patch`), `CopyIovecs` in `File/src/Stdio.cpp` and `ReadGuestTime` in `Time/Time.cpp`. Their callers set the guest `errno` themselves (`*__error() = 14`, `Fail(14)`, `fail(NET_EFAULT)`) or return an SCE code (`sceKernelReadv`/`Writev`/`Preadv`/`Pwritev`), so none depends on the leaked value either; `StoreGuestId`'s non-`EFAULT` path is unchanged. The two `process_vm_readv` probes in libSceAgcDriver (`GuestMemory.cpp`, `FrameRecorder.cpp`) are host-side page probes, not guest copies, and are left alone. This is the shared cause of the Linux-only failures in the "return EFAULT for invalid memory" family, for example #13577 (getlogin_r) and #13552 (system version queries): with this change their tests pass on Linux without the local `errno` save/restore suggested in their reviews. ### Tested Ubuntu 26.04 x86_64, i7-8700, GCC 15.2, Release, `BUILD_TESTING=ON`, base `main` 9605300f29 (the branch was then rebased onto 7fcab08f71, which changes neither touched file). - New check in `guest_output_pointer_fault`: `GuestCopyOut`/`GuestCopyIn` on an unmapped address keep `errno` as the caller left it. Without the fix it fails 3/3 at the `GuestCopyOut` check; with only the `GuestCopyOut` hunk it fails 3/3 at the `GuestCopyIn` check; with the fix 3/3 pass. - Full non-GPU suite (`ctest -E "^agc|gpu|vulkan|video_out"`): 1853/1853 on the base and 1853/1853 with the fix. - `public_headers` passes; `tools/check_conventions.py` clean. - #13552 @ 6906580bc3 merged on top, without its local fix: `guest_system_configuration` aborts 3/3 on `main`, passes 3/3 on this branch. - #13577 @ 330e1c1d69 merged on top, without its local fix: the `errno == 12345` check after `getlogin_r(0x10, size)` fails 3/3 on `main` and passes on this branch. Its `getlogin_r(0x10, 1) == 14` check still fails on every host (the size check runs first and returns 34); that is a test issue in #13577, not covered here. Second commit (829f40c523), base `main` c3c45d73ab, same machine: - `guest_output_pointer_fault` gains two checks on the same unmapped addresses: `GuestSocketReadGuest_nid_no_patch` (Udp.cpp helpers) and `sceKernelReadv` with an unreadable iovec table (Stdio.cpp `CopyIovecs`, returns `0x8002000e`) keep `errno`. On `main` + the first commit it fails 3/3 at the `GuestSocketReadGuest` check; with only the Udp.cpp hunk reverted it fails 3/3 there, with only the Stdio.cpp hunk reverted it fails 3/3 at the `sceKernelReadv` check; with the commit 3/3 pass. - Full non-GPU suite: 1857/1857 on `main` and 1857/1857 on `main` + this branch. `public_headers` passes; `tools/check_conventions.py` clean. - #13798 @ bed3f89b78 merged on top with its local `errno` save/restore removed: `guest_app_info` aborts 3/3 on `main` + the first commit only, passes 3/3 on this branch (covers the Process.cpp `WriteGuest`). With its restore kept it passes too, and a 187-test libkernel subset (process, socket, readv/writev, time, app_info) passes. Overlap: #11281 also touches `General.cpp` (it adds a `GuestCopyIn_nid_no_patch` that `main` already has); #9371 and #11446 touch other functions in the same file. None changes the lines edited here. ### 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) - [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 (unblocks the Linux tests of #13577, #13552, #13798 and the other "return EFAULT for invalid memory" PRs) - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-30 22:35:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T22:35:23Z.

Review: APPROVED


Reviewed — looks good

The Linux EFAULT paths now restore the caller's errno; the new regression assertions exercise both checked-copy directions and are registered as guest_output_pointer_fault.

What I ran

Reviewed head dfb9b774fc5c58b509a4ee7f17c7868b8014230c against PR base 7fcab08f71e463b1768730a626a0f5472d336708. The current-main merge preview was clean against e8efeed58af48d0682ab2e0eab72cfaf996e4886. Environment: Linux x86-64, Python 3.11.2; GCC 12.2 was available but not invoked. No local C++ build or test was run.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13664
python3 tools/check_conventions.py --base 7fcab08f71e463b1768730a626a0f5472d336708 --head refs/review/pr-13664-current --title 'fix(libc): keep errno when a checked guest copy faults on Linux' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13664-dfb9b774fc5c/pr-body.md
timeout 30s python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/prx/libc/src/General.cpp core/libs/tests/GuestOutputPointerFault.cpp; echo exit:$?
git grep -n 'GuestOutputPointerFault\|guest_output_pointer_fault' refs/review/pr-13664-current -- CMakeLists.txt core tools
git diff --check 7fcab08f71e463b1768730a626a0f5472d336708...refs/review/pr-13664-current
python3 tools/pr_stack_check.py 13664 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-13664
cat /tmp/anyps5-stack-13664/stack-report.md
gh pr checks 13664 --repo boykopovar/AnyPS5

Results

Check Result
Source review On Linux, GuestArenaBeginHostWrite returns true and the write-watch hook is a no-op; the test's invalid addresses therefore reach process_vm_writev/process_vm_readv. The changed EFAULT branches restore the saved value.
Test registration and quality CMake registers GuestOutputPointerFault.cpp as guest_output_pointer_fault; the test-quality heuristic's unregistered-test warning is a false positive.
Diff and conventions git diff --check exited 0; conventions passed.
Current-main merge preview Clean against e8efeed58af48d0682ab2e0eab72cfaf996e4886; no declared dependency.
Author-reported tests The author reports 1853/1853 non-GPU tests on both base and PR, three failing baseline repetitions and three passing PR repetitions for the new errno assertion, and passing dependent checks from #13552/#13577 without their local errno changes. I did not reproduce these runs.
Hosted CI Windows, Ubuntu Debug/Release register-context, relinker Ubuntu, relinker ASan, conventions, eligibility, intake, labels, library portability, and report passed. Linux was skipped; Windows relinker and macOS jobs remained pending at the last snapshot.
Precheck wrapper Diff/conventions/mergeability passed. The aggregate says checks failed because its isolated checkout lacks workspace-only ABI/test-quality scripts; the ABI audit is not applicable to this PR, and I ran the test-quality heuristic directly.
Unedited command output

Convention check:

All conventions checks passed.

Test-quality heuristic:

{
  "findings": [
    {
      "path": "core/libs/tests/GuestOutputPointerFault.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}
exit:0

Registration:

refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2122:    add_test_executable(guest_output_pointer_fault_tests ${LIBS_INCLUDE_DIR}/tests/GuestOutputPointerFault.cpp)
refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2123:    target_include_directories(guest_output_pointer_fault_tests PRIVATE ${LIBS_INCLUDE_DIR})
refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2124:    target_link_libraries(guest_output_pointer_fault_tests PRIVATE libkernel libc)
refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2125:    configure_windows_unwind(guest_output_pointer_fault_tests)
refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2126:    add_test(NAME guest_output_pointer_fault COMMAND guest_output_pointer_fault_tests)
refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2127:    set_tests_properties(guest_output_pointer_fault PROPERTIES TIMEOUT 15)
refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2129:        set_tests_properties(guest_output_pointer_fault PROPERTIES ENVIRONMENT_MODIFICATION

Merge preview:

# PR stack check — fresh

Target: https://github.com/boykopovar/AnyPS5/pull/13664
Target branch tip: `e8efeed58af48d0682ab2e0eab72cfaf996e4886`
All heads unchanged: **True**
Dependency order: #13664

## Individual merge previews

- PR #13664: **clean** against current base; head `dfb9b774fc5c58b509a4ee7f17c7868b8014230c`; changed paths: none reported

## Dependency relationships

No declared PR dependencies were found in the target PR chain.

## Limits

Merge previews apply each exact PR head independently to the current base. A dependency head that is absent from its dependent is reported separately from merge conflicts; file overlap is only a signal and does not prove a conflict. This tool does not build, resolve conflicts, publish comments, or update branches.

git diff --check emitted no output and exited 0.

Precheck helper stderr:

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13664-dfb9b774fc5c/head-dfb9b774fc5c-9d110e3c/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13664-dfb9b774fc5c/head-dfb9b774fc5c-9d110e3c/tools/pr_test_quality.py': [Errno 2] No such file or directory

Negative control

Assertion Baseline change Result
The errno-preservation assertion catches the Linux EFAULT leak Author reports the new assertion against the base without either fix hunk Author reports 3/3 failures at GuestCopyOut; with only the GuestCopyOut hunk, 3/3 failures at GuestCopyIn; with both hunks, 3/3 passes. Not independently reproduced.

Findings

Blocking

None found in the reviewed change.

Non-blocking

The Linux full-suite and focused negative-control results are author-reported; Linux CI was skipped. Windows relinker and macOS checks were still pending at the last snapshot.

Sources

Not verified

No local build or C++ test was run. Linux, Windows relinker, and macOS hosted results were not complete/available as passed at review time. The author's Linux results were not independently reproduced.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5719403338 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13664#pullrequestreview-5719403338). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T22:35:23Z. **Review:** APPROVED --- # Reviewed — looks good The Linux `EFAULT` paths now restore the caller's `errno`; the new regression assertions exercise both checked-copy directions and are registered as `guest_output_pointer_fault`. ## What I ran Reviewed head `dfb9b774fc5c58b509a4ee7f17c7868b8014230c` against PR base `7fcab08f71e463b1768730a626a0f5472d336708`. The current-main merge preview was clean against `e8efeed58af48d0682ab2e0eab72cfaf996e4886`. Environment: Linux x86-64, Python 3.11.2; GCC 12.2 was available but not invoked. No local C++ build or test was run. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13664 python3 tools/check_conventions.py --base 7fcab08f71e463b1768730a626a0f5472d336708 --head refs/review/pr-13664-current --title 'fix(libc): keep errno when a checked guest copy faults on Linux' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13664-dfb9b774fc5c/pr-body.md timeout 30s python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/prx/libc/src/General.cpp core/libs/tests/GuestOutputPointerFault.cpp; echo exit:$? git grep -n 'GuestOutputPointerFault\|guest_output_pointer_fault' refs/review/pr-13664-current -- CMakeLists.txt core tools git diff --check 7fcab08f71e463b1768730a626a0f5472d336708...refs/review/pr-13664-current python3 tools/pr_stack_check.py 13664 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-13664 cat /tmp/anyps5-stack-13664/stack-report.md gh pr checks 13664 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Source review | On Linux, `GuestArenaBeginHostWrite` returns true and the write-watch hook is a no-op; the test's invalid addresses therefore reach `process_vm_writev`/`process_vm_readv`. The changed EFAULT branches restore the saved value. | | Test registration and quality | CMake registers `GuestOutputPointerFault.cpp` as `guest_output_pointer_fault`; the test-quality heuristic's unregistered-test warning is a false positive. | | Diff and conventions | `git diff --check` exited 0; conventions passed. | | Current-main merge preview | Clean against `e8efeed58af48d0682ab2e0eab72cfaf996e4886`; no declared dependency. | | Author-reported tests | The author reports 1853/1853 non-GPU tests on both base and PR, three failing baseline repetitions and three passing PR repetitions for the new errno assertion, and passing dependent checks from #13552/#13577 without their local errno changes. I did not reproduce these runs. | | Hosted CI | Windows, Ubuntu Debug/Release register-context, relinker Ubuntu, relinker ASan, conventions, eligibility, intake, labels, library portability, and report passed. Linux was skipped; Windows relinker and macOS jobs remained pending at the last snapshot. | | Precheck wrapper | Diff/conventions/mergeability passed. The aggregate says checks failed because its isolated checkout lacks workspace-only ABI/test-quality scripts; the ABI audit is not applicable to this PR, and I ran the test-quality heuristic directly. | <details> <summary>Unedited command output</summary> Convention check: ```text All conventions checks passed. ``` Test-quality heuristic: ```json { "findings": [ { "path": "core/libs/tests/GuestOutputPointerFault.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } exit:0 ``` Registration: ```text refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2122: add_test_executable(guest_output_pointer_fault_tests ${LIBS_INCLUDE_DIR}/tests/GuestOutputPointerFault.cpp) refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2123: target_include_directories(guest_output_pointer_fault_tests PRIVATE ${LIBS_INCLUDE_DIR}) refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2124: target_link_libraries(guest_output_pointer_fault_tests PRIVATE libkernel libc) refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2125: configure_windows_unwind(guest_output_pointer_fault_tests) refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2126: add_test(NAME guest_output_pointer_fault COMMAND guest_output_pointer_fault_tests) refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2127: set_tests_properties(guest_output_pointer_fault PROPERTIES TIMEOUT 15) refs/review/pr-13664-current:core/libs/prx/libkernel/CMakeLists.txt:2129: set_tests_properties(guest_output_pointer_fault PROPERTIES ENVIRONMENT_MODIFICATION ``` Merge preview: ```text # PR stack check — fresh Target: https://github.com/boykopovar/AnyPS5/pull/13664 Target branch tip: `e8efeed58af48d0682ab2e0eab72cfaf996e4886` All heads unchanged: **True** Dependency order: #13664 ## Individual merge previews - PR #13664: **clean** against current base; head `dfb9b774fc5c58b509a4ee7f17c7868b8014230c`; changed paths: none reported ## Dependency relationships No declared PR dependencies were found in the target PR chain. ## Limits Merge previews apply each exact PR head independently to the current base. A dependency head that is absent from its dependent is reported separately from merge conflicts; file overlap is only a signal and does not prove a conflict. This tool does not build, resolve conflicts, publish comments, or update branches. ``` `git diff --check` emitted no output and exited 0. Precheck helper stderr: ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13664-dfb9b774fc5c/head-dfb9b774fc5c-9d110e3c/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13664-dfb9b774fc5c/head-dfb9b774fc5c-9d110e3c/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` </details> ## Negative control | Assertion | Baseline change | Result | |---|---|---| | The errno-preservation assertion catches the Linux EFAULT leak | Author reports the new assertion against the base without either fix hunk | Author reports 3/3 failures at `GuestCopyOut`; with only the `GuestCopyOut` hunk, 3/3 failures at `GuestCopyIn`; with both hunks, 3/3 passes. Not independently reproduced. | ## Findings ### Blocking None found in the reviewed change. ### Non-blocking The Linux full-suite and focused negative-control results are author-reported; Linux CI was skipped. Windows relinker and macOS checks were still pending at the last snapshot. ## Sources - [Linux checked-copy changes at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/dfb9b774fc5c58b509a4ee7f17c7868b8014230c/core/libs/prx/libc/src/General.cpp) - [Regression assertions at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/dfb9b774fc5c58b509a4ee7f17c7868b8014230c/core/libs/tests/GuestOutputPointerFault.cpp) - [Linux host-write path used by the regression test at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/dfb9b774fc5c58b509a4ee7f17c7868b8014230c/core/libs/prx/libc/src/GuestArena.cpp#L718-L720) - [Guest `errno` accessor at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/dfb9b774fc5c58b509a4ee7f17c7868b8014230c/core/libs/prx/libc/src/Process.cpp#L242-L243) ## Not verified No local build or C++ test was run. Linux, Windows relinker, and macOS hosted results were not complete/available as passed at review time. The author's Linux results were not independently reproduced.
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!13664
No description provided.