fix(libkernel): fchown, fstat and ioctl on a kqueue descriptor behave as FreeBSD #10016

Merged
xXPBSXx merged 11 commits from upstream-pr/10016 into main 2026-11-12 19:18:40 +00:00
xXPBSXx commented 2026-10-23 04:08:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-23T04:08:38Z.


What

A kqueue descriptor is a placeholder host handle (NUL / /dev/null). Four calls treated it as a character device:

  • fchown(kq, 0, 0) returned 0. FreeBSD: kqueueops uses invfo_chown, sys/kern/kern_descrip.c:4076 returns EINVAL. Now EINVAL.
  • fstat(kq) reported the host placeholder's type. FreeBSD kqueue_stat (sys/kern/kern_event.c:1928) zeroes the struct and sets st_mode = S_IFIFO. Now the same.
  • ioctl(kq, <request>) reached the "unsupported request" throw. FreeBSD kqueue_ioctl (kern_event.c:1853, body under #if 0 in 11.4) returns ENOTTY for every request. Now ENOTTY (FIOCLEX/FIONCLEX still handled before, as in sys_ioctl).
  • fchmod(kq, mode) went to the host: on Linux the placeholder is an open of /dev/null, and run as root it changed the mode of /dev/null. FreeBSD: kqueueops sets fo_chmod = invfo_chmod (kern_event.c:131), sys/kern/kern_descrip.c:4068 returns EINVAL. Now EINVAL (commit f51395bc09; guest_kqueue gets the case).
    Applies to fstat_nid_disambig1_nid_postfix and sceKernelFstat; both build the result locally and copy it out with GuestCopyOut_nid_no_patch, failing with EFAULT when the buffer is not writable, like the other fstat paths after #9618.

The commits 9226e7bd6c, 3bc62ee2b7 and c1716688cb only merge main into the branch (conflicts resolved in Stdio.cpp, then in libkernel_sys/Export.cpp and GuestKernelSys.cpp, then in GuestKqueue.cpp).
Fixes: #10015

Tested

Head 22a5b6db47 (two commits), rebased onto main b91a6a60c5 after #9618; git merge-tree against current main 03b96b9241 is clean. The diff is 7 files, +41/-1. The second commit (the exported helper for libkernel_sys) is unchanged by the rebase. In the first commit the only change is in Stdio.cpp: the kqueue branch of both fstat functions now fills a local result and copies it out like the other branches, instead of writing into the caller's buffer.

  • Windows 10 Pro 19045, MinGW-w64 GCC 15.2, Release, on main b91a6a60c5 with this head (ninja exit code 0): guest_kqueue and guest_kernel_sys each pass 3 of 3 runs.
  • Without the changes in Equeue.hpp, Kqueue.cpp, DescriptorControl.cpp, Stdio.cpp and libkernel_sys/Export.cpp (all five taken from main, same build directory, tests kept; ninja exit code 0): guest_kqueue and guest_kernel_sys each fail 3 of 3 runs with exit code 0xc0000409.
  • patched_libraries (this change touches libkernel_sys/Export.cpp) passes on Windows, 1 of 1.
  • Ubuntu 24.04 under WSL2 (a virtualised kernel, not bare-metal), GCC 13.3, Release, with this head on main b91a6a60c5 (ninja exit code 0): patched_libraries, guest_kqueue and guest_kernel_sys each pass 3 of 3 runs. I did not run these three without the changes on Linux.
  • The family file|posix|shm|kqueue|equeue|pipe|truncate|lseek|flock|fsync|vector|socket_read|dup|fcntl|descriptor|stdio|aio|kernel_sys|ioctl|fstat|fchown|sendfile has 161 tests on main now (the earlier description named 116): 159 pass and 2 are skipped (guest_named_shm_windows_short_temp and guest_named_shm_windows_long_short_temp, which skip because the volume of the test's temporary directory creates no 8.3 alias for it; measured with TEMP on K:); ctest reports 100% tests passed, 0 tests failed out of 161, counting the skips as passed.
  • check_conventions --base upstream/main passes.
  • Head c1716688cb (merge of main 5cb015caaa, which contains #10014; the diff against that main is the same 5 files, +37/-2), Windows 10 Pro 19045, MinGW-w64 GCC 15.2, Release (ninja exit code 0 in both arms): guest_kqueue and guest_kernel_sys each pass 3 of 3 runs and patched_libraries passes; with DescriptorControl.cpp, Stdio.cpp and libkernel_sys/Export.cpp taken from that main and the tests kept, guest_kqueue and guest_kernel_sys each fail 3 of 3 runs, and ctest reports Exit code 0xc0000409 for both.
  • Not run: an EFAULT test for fstat on a kqueue descriptor with an unwritable buffer (the code path exists, no test covers it), macOS, a title, a console. Measured by wachi35676 on Windows 11 and WSL2 Ubuntu 24.04 (GCC 13.3, as root): at head 22a5b6db47 merged onto main 5b85225ef3, guest_kqueue, guest_kernel_sys and guest_kernel_fcntl pass 3 of 3 on both hosts and, with the PR's source files from main and the tests kept, guest_kqueue and guest_kernel_sys fail on both; at head 9226e7bd6c merged onto main 9f386f3a29 (the current head 3bc62ee2b7 is a later merge of main), guest_kqueue and guest_kernel_sys pass 3 of 3 on both hosts and fail with main's sources, and the fchmod(kq, 0644) check gives EINVAL on Linux too, with /dev/null still crw-rw-rw- after the runs. Behaviour on the console itself is not measured; the reference is FreeBSD 11.4 source.

Overlap

This touches Stdio.cpp and GuestKqueue.cpp like #10014 (read/write/lseek/fsync/flock on a kqueue) and DescriptorControl.cpp and GuestKernelSys.cpp like #9994 (fchdir on a kqueue). The three are independent changes in what they do, but two of them conflict in the test file. Measured with git merge-tree --write-tree on the current heads (#9994 c76ff24b4d, #10014 5ba5164c72, this head 22a5b6db47; each on its own base, the merge base git found for the pair):

  • this PR and #9994: no conflict;
  • #10014 and #9994: no conflict;
  • this PR and #10014: one conflict, in GuestKqueue.cpp (both add a test function and a call next to each other in main); all three together: the same one conflict.
    The earlier dependency on #10014 no longer applies: #10014 was merged on 2026-11-02 at 17:26 UTC. The conflict with it, in GuestKqueue.cpp (the errno constants and the call list in main), is resolved in c1716688cb.

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

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4977662221 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10016). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-23T04:08:38Z. --- ### What A kqueue descriptor is a placeholder host handle (NUL / /dev/null). Four calls treated it as a character device: - `fchown(kq, 0, 0)` returned 0. FreeBSD: kqueueops uses `invfo_chown`, `sys/kern/kern_descrip.c:4076` returns EINVAL. Now EINVAL. - `fstat(kq)` reported the host placeholder's type. FreeBSD `kqueue_stat` (`sys/kern/kern_event.c:1928`) zeroes the struct and sets `st_mode = S_IFIFO`. Now the same. - `ioctl(kq, <request>)` reached the "unsupported request" throw. FreeBSD `kqueue_ioctl` (`kern_event.c:1853`, body under `#if 0` in 11.4) returns ENOTTY for every request. Now ENOTTY (FIOCLEX/FIONCLEX still handled before, as in sys_ioctl). - `fchmod(kq, mode)` went to the host: on Linux the placeholder is an open of `/dev/null`, and run as root it changed the mode of `/dev/null`. FreeBSD: kqueueops sets `fo_chmod = invfo_chmod` (`kern_event.c:131`), `sys/kern/kern_descrip.c:4068` returns EINVAL. Now EINVAL (commit `f51395bc09`; `guest_kqueue` gets the case). Applies to `fstat_nid_disambig1_nid_postfix` and `sceKernelFstat`; both build the result locally and copy it out with `GuestCopyOut_nid_no_patch`, failing with EFAULT when the buffer is not writable, like the other `fstat` paths after #9618. The commits `9226e7bd6c`, `3bc62ee2b7` and `c1716688cb` only merge `main` into the branch (conflicts resolved in `Stdio.cpp`, then in `libkernel_sys/Export.cpp` and `GuestKernelSys.cpp`, then in `GuestKqueue.cpp`). Fixes: #10015 ### Tested Head `22a5b6db47` (two commits), rebased onto `main` `b91a6a60c5` after #9618; `git merge-tree` against current `main` `03b96b9241` is clean. The diff is 7 files, +41/-1. The second commit (the exported helper for `libkernel_sys`) is unchanged by the rebase. In the first commit the only change is in `Stdio.cpp`: the kqueue branch of both `fstat` functions now fills a local result and copies it out like the other branches, instead of writing into the caller's buffer. - Windows 10 Pro 19045, MinGW-w64 GCC 15.2, Release, on `main` `b91a6a60c5` with this head (ninja exit code 0): `guest_kqueue` and `guest_kernel_sys` each pass 3 of 3 runs. - Without the changes in `Equeue.hpp`, `Kqueue.cpp`, `DescriptorControl.cpp`, `Stdio.cpp` and `libkernel_sys/Export.cpp` (all five taken from `main`, same build directory, tests kept; ninja exit code 0): `guest_kqueue` and `guest_kernel_sys` each fail 3 of 3 runs with exit code 0xc0000409. - `patched_libraries` (this change touches `libkernel_sys/Export.cpp`) passes on Windows, 1 of 1. - Ubuntu 24.04 under WSL2 (a virtualised kernel, not bare-metal), GCC 13.3, Release, with this head on `main` `b91a6a60c5` (ninja exit code 0): `patched_libraries`, `guest_kqueue` and `guest_kernel_sys` each pass 3 of 3 runs. I did not run these three without the changes on Linux. - The family `file|posix|shm|kqueue|equeue|pipe|truncate|lseek|flock|fsync|vector|socket_read|dup|fcntl|descriptor|stdio|aio|kernel_sys|ioctl|fstat|fchown|sendfile` has 161 tests on `main` now (the earlier description named 116): 159 pass and 2 are skipped (`guest_named_shm_windows_short_temp` and `guest_named_shm_windows_long_short_temp`, which skip because the volume of the test's temporary directory creates no 8.3 alias for it; measured with `TEMP` on `K:`); ctest reports `100% tests passed, 0 tests failed out of 161`, counting the skips as passed. - `check_conventions --base upstream/main` passes. - Head `c1716688cb` (merge of `main` `5cb015caaa`, which contains #10014; the diff against that `main` is the same 5 files, +37/-2), Windows 10 Pro 19045, MinGW-w64 GCC 15.2, Release (ninja exit code 0 in both arms): `guest_kqueue` and `guest_kernel_sys` each pass 3 of 3 runs and `patched_libraries` passes; with `DescriptorControl.cpp`, `Stdio.cpp` and `libkernel_sys/Export.cpp` taken from that `main` and the tests kept, `guest_kqueue` and `guest_kernel_sys` each fail 3 of 3 runs, and ctest reports `Exit code 0xc0000409` for both. - Not run: an EFAULT test for `fstat` on a kqueue descriptor with an unwritable buffer (the code path exists, no test covers it), macOS, a title, a console. Measured by wachi35676 on Windows 11 and WSL2 Ubuntu 24.04 (GCC 13.3, as root): at head `22a5b6db47` merged onto `main` `5b85225ef3`, `guest_kqueue`, `guest_kernel_sys` and `guest_kernel_fcntl` pass 3 of 3 on both hosts and, with the PR's source files from `main` and the tests kept, `guest_kqueue` and `guest_kernel_sys` fail on both; at head `9226e7bd6c` merged onto `main` `9f386f3a29` (the current head `3bc62ee2b7` is a later merge of `main`), `guest_kqueue` and `guest_kernel_sys` pass 3 of 3 on both hosts and fail with `main`'s sources, and the `fchmod(kq, 0644)` check gives `EINVAL` on Linux too, with `/dev/null` still `crw-rw-rw-` after the runs. Behaviour on the console itself is not measured; the reference is FreeBSD 11.4 source. ### Overlap This touches `Stdio.cpp` and `GuestKqueue.cpp` like #10014 (read/write/lseek/fsync/flock on a kqueue) and `DescriptorControl.cpp` and `GuestKernelSys.cpp` like #9994 (fchdir on a kqueue). The three are independent changes in what they do, but two of them conflict in the test file. Measured with `git merge-tree --write-tree` on the current heads (#9994 `c76ff24b4d`, #10014 `5ba5164c72`, this head `22a5b6db47`; each on its own base, the merge base git found for the pair): - this PR and #9994: no conflict; - #10014 and #9994: no conflict; - this PR and #10014: one conflict, in `GuestKqueue.cpp` (both add a test function and a call next to each other in `main`); all three together: the same one conflict. The earlier dependency on #10014 no longer applies: #10014 was merged on 2026-11-02 at 17:26 UTC. The conflict with it, in `GuestKqueue.cpp` (the errno constants and the call list in `main`), is resolved in `c1716688cb`. ### 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 #10015 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-23 04:33:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T04:33:09Z.

Review: APPROVED


Reviewed the exact diff and submitted Windows test report. Kqueue metadata is handled before the placeholder host descriptor path: fstat/sceKernelFstat zero the structure and report S_IFIFO; ioctl returns ENOTTY after the existing close-on-exec commands are handled; fchown returns EINVAL. The added tests cover the metadata, FIONREAD, and fchown paths. The PR reports focused and 116-test Windows results with a red control, and explicitly leaves console behavior unmeasured. Current-main conventions and diff checks pass; hosted convention/intake/labels pass, while product jobs skip under current path policy. No blocking issue found in the reviewed scope.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5623923219 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10016#pullrequestreview-5623923219). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T04:33:09Z. **Review:** APPROVED --- Reviewed the exact diff and submitted Windows test report. Kqueue metadata is handled before the placeholder host descriptor path: `fstat`/`sceKernelFstat` zero the structure and report `S_IFIFO`; ioctl returns `ENOTTY` after the existing close-on-exec commands are handled; `fchown` returns `EINVAL`. The added tests cover the metadata, FIONREAD, and fchown paths. The PR reports focused and 116-test Windows results with a red control, and explicitly leaves console behavior unmeasured. Current-main conventions and diff checks pass; hosted convention/intake/labels pass, while product jobs skip under current path policy. No blocking issue found in the reviewed scope.
jotitadev commented 2026-10-23 05:59:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-23T05:59:08Z.

Review: COMMENTED


macOS test: Apple M2 Max, macOS 27.2

Apple M2 Max, macOS 27.2, Apple clang (Xcode 27), x86-64 Release build under Rosetta 2, BUILD_TESTING=ON. Head b7caab1f11. main does not build on macOS, so the platform is #8658 (feat/macos-port) @ fa063d8b07 with this PR's diff applied (clean apply).

On macOS the kqueue placeholder is also /dev/null (a character device), so fstat and fchown answered for the host device without the change.

guest_kqueue guest_kernel_sys
#8658 alone pass pass
#8658 + this PR's tests only 3/3 abort (SIGABRT) 3/3 abort (SIGABRT)
#8658 + this PR 5/5 pass 5/5 pass

Both new cases catch the bug on macOS, and the fix holds there.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5624502735 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10016#pullrequestreview-5624502735). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-23T05:59:08Z. **Review:** COMMENTED --- ### macOS test: Apple M2 Max, macOS 27.2 Apple M2 Max, macOS 27.2, Apple clang (Xcode 27), x86-64 Release build under Rosetta 2, `BUILD_TESTING=ON`. Head `b7caab1f11`. `main` does not build on macOS, so the platform is #8658 (`feat/macos-port`) @ `fa063d8b07` with this PR's diff applied (clean apply). On macOS the kqueue placeholder is also `/dev/null` (a character device), so `fstat` and `fchown` answered for the host device without the change. | | `guest_kqueue` | `guest_kernel_sys` | |---|---|---| | #8658 alone | pass | pass | | #8658 + this PR's tests only | 3/3 abort (SIGABRT) | 3/3 abort (SIGABRT) | | #8658 + this PR | 5/5 pass | 5/5 pass | Both new cases catch the bug on macOS, and the fix holds there. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-29 23:07:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T23:07:28Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The reported Windows and Linux tests cover head d58a78540e3054325beb72bb1cde7c1bd4d61bdf, but it now conflicts with current main in GuestKqueue.cpp.

What I ran

Reviewed head d58a78540e3054325beb72bb1cde7c1bd4d61bdf against PR base 84e91df41864e18869c289420d5e1696ed5d1291; current main is dc38224141e0b6096007b876b4c42fc9144d11b8. The merge preview is conflicted. Local checks ran in Linux; no compiler or build was invoked.

git merge-tree --write-tree refs/remotes/upstream/main refs/review/pr-10016-current
git diff --check refs/remotes/upstream/main...refs/review/pr-10016-current
python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/review/pr-10016-current
gh pr checks 10016 --repo boykopovar/AnyPS5

Results

Check Result
Current-main merge preview Conflict in core/libs/tests/GuestKqueue.cpp
Diff check Passed; no output
Repository conventions Passed
Hosted checks Conventions, eligibility, labels and report passed; product Linux/Windows and specialized jobs skipped
Focused tests Author reports guest_kqueue, guest_kernel_sys and related tests pass on Windows/WSL2 on this head; not independently run here
Unedited local check output
All conventions checks passed.
CONFLICT (content): Merge conflict in core/libs/tests/GuestKqueue.cpp

Findings

Blocking

  • The current-main merge preview conflicts in GuestKqueue.cpp, so the PR cannot be integrated as-is. Please preserve both the current main test changes and this PR's kqueue coverage, then rerun guest_kqueue on the rebased head.

Non-blocking

The implementation and Linux fchmod regression evidence are described in the prior report; I did not independently rerun those tests.

Sources

Not verified

No local build or tests, console behavior, or current-main merged test run was performed. Hosted product Linux and Windows jobs skipped.

To get this to a good state

Please resolve the GuestKqueue.cpp conflict against current main and rerun guest_kqueue on the new head. I will rerun the merge preview, diff check and conventions on that revision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5706121967 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10016#pullrequestreview-5706121967). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T23:07:28Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The reported Windows and Linux tests cover head `d58a78540e3054325beb72bb1cde7c1bd4d61bdf`, but it now conflicts with current `main` in `GuestKqueue.cpp`. ## What I ran Reviewed head `d58a78540e3054325beb72bb1cde7c1bd4d61bdf` against PR base `84e91df41864e18869c289420d5e1696ed5d1291`; current `main` is `dc38224141e0b6096007b876b4c42fc9144d11b8`. The merge preview is conflicted. Local checks ran in Linux; no compiler or build was invoked. ```sh git merge-tree --write-tree refs/remotes/upstream/main refs/review/pr-10016-current git diff --check refs/remotes/upstream/main...refs/review/pr-10016-current python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/review/pr-10016-current gh pr checks 10016 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Conflict in `core/libs/tests/GuestKqueue.cpp` | | Diff check | Passed; no output | | Repository conventions | Passed | | Hosted checks | Conventions, eligibility, labels and report passed; product Linux/Windows and specialized jobs skipped | | Focused tests | Author reports `guest_kqueue`, `guest_kernel_sys` and related tests pass on Windows/WSL2 on this head; not independently run here | <details> <summary>Unedited local check output</summary> ```text All conventions checks passed. CONFLICT (content): Merge conflict in core/libs/tests/GuestKqueue.cpp ``` </details> ## Findings ### Blocking - The current-main merge preview conflicts in `GuestKqueue.cpp`, so the PR cannot be integrated as-is. Please preserve both the current `main` test changes and this PR's kqueue coverage, then rerun `guest_kqueue` on the rebased head. ### Non-blocking The implementation and Linux `fchmod` regression evidence are described in the prior report; I did not independently rerun those tests. ## Sources - [Current kqueue tests at this head](https://github.com/boykopovar/AnyPS5/blob/d58a78540e3054325beb72bb1cde7c1bd4d61bdf/core/libs/tests/GuestKqueue.cpp) - [Author's exact-head Linux and Windows report](https://github.com/boykopovar/AnyPS5/pull/10016#issuecomment-6420115981) ## Not verified No local build or tests, console behavior, or current-main merged test run was performed. Hosted product Linux and Windows jobs skipped. ## To get this to a good state Please resolve the `GuestKqueue.cpp` conflict against current `main` and rerun `guest_kqueue` on the new head. I will rerun the merge preview, diff check and conventions on that revision.
MarcZX10 commented 2026-10-29 23:46:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T23:46:54Z.

Review: APPROVED


Re-checked — new head, looks good

The helper rename and latest merge resolve the GuestKqueue.cpp conflict; the current-main preview is clean and the kqueue-specific error handling and regressions remain in the diff.

What I ran

  • PR head: dd1a7c9efc734b4c127a8b4f36284ca74fde6b88; recorded PR base: 58f6cff97a274f1f24755966d9d81fd8e8aa9bf5.
  • Current upstream/main: 1189ec3003672bb364dd9f3119ead7b3976e3c83; preview merged cleanly as tree a5d9a85ccfb63338e74b20317499130066e66e2f.
  • Environment: Linux workspace; no compiler or build was invoked.
git merge-tree --write-tree upstream/main refs/review/pr-10016-current
git diff --check upstream/main...refs/review/pr-10016-current
python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-10016-current

Results

Check Result
Current-main merge preview Clean
git diff --check Passed; no output
Conventions Passed
Windows hosted job Passed on this head
Eligibility, conventions, labels, report Passed
Linux product and specialized jobs Skipped by workflow policy
Unedited local command output
$ git merge-tree --write-tree upstream/main refs/review/pr-10016-current
a5d9a85ccfb63338e74b20317499130066e66e2f
$ git diff --check upstream/main...refs/review/pr-10016-current
[no output; exit status 0]
$ python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-10016-current
All conventions checks passed.

Not verified

I did not run local tests or a build. The current hosted Linux product job was skipped. The earlier author-run Linux guest_kqueue and guest_kernel_sys results apply to the prior implementation head; the current code update changes the helper name and rebases the same behavior onto main. The exact-head Windows run passed.

Sources

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5706413553 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10016#pullrequestreview-5706413553). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T23:46:54Z. **Review:** APPROVED --- # Re-checked — new head, looks good The helper rename and latest merge resolve the `GuestKqueue.cpp` conflict; the current-main preview is clean and the kqueue-specific error handling and regressions remain in the diff. ## What I ran - PR head: `dd1a7c9efc734b4c127a8b4f36284ca74fde6b88`; recorded PR base: `58f6cff97a274f1f24755966d9d81fd8e8aa9bf5`. - Current `upstream/main`: `1189ec3003672bb364dd9f3119ead7b3976e3c83`; preview merged cleanly as tree `a5d9a85ccfb63338e74b20317499130066e66e2f`. - Environment: Linux workspace; no compiler or build was invoked. ```sh git merge-tree --write-tree upstream/main refs/review/pr-10016-current git diff --check upstream/main...refs/review/pr-10016-current python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-10016-current ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Clean | | `git diff --check` | Passed; no output | | Conventions | Passed | | Windows hosted job | Passed on this head | | Eligibility, conventions, labels, report | Passed | | Linux product and specialized jobs | Skipped by workflow policy | <details> <summary>Unedited local command output</summary> ```text $ git merge-tree --write-tree upstream/main refs/review/pr-10016-current a5d9a85ccfb63338e74b20317499130066e66e2f $ git diff --check upstream/main...refs/review/pr-10016-current [no output; exit status 0] $ python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-10016-current All conventions checks passed. ``` </details> ## Not verified I did not run local tests or a build. The current hosted Linux product job was skipped. The earlier author-run Linux `guest_kqueue` and `guest_kernel_sys` results apply to the prior implementation head; the current code update changes the helper name and rebases the same behavior onto `main`. The exact-head Windows run passed. ## Sources - [Kqueue handling at the reviewed head](https://github.com/boykopovar/AnyPS5/tree/dd1a7c9efc734b4c127a8b4f36284ca74fde6b88/core/libs/prx/libkernel) - [Focused author test report](https://github.com/boykopovar/AnyPS5/pull/10016#issuecomment-6420115981)
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!10016
No description provided.