fix(libkernel): support socket fcntl duplication #7437

Merged
Queuse merged 1 commit from upstream-pr/7437 into main 2026-10-20 15:40:07 +00:00
Queuse commented 2026-10-18 06:22:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-18T06:22:09Z.


What

  • Implement F_DUPFD, F_DUPFD_CLOEXEC, F_DUP2FD, and F_DUP2FD_CLOEXEC for guest socket descriptors with the lowest-free-descriptor and close-on-exec semantics used by FreeBSD 11.4.
  • Forward every typed sceKernelFcntl variadic argument to the guest-socket path, including pointer arguments for unsupported lock commands, and preserve descriptor metadata when an exact-target duplicate replaces another descriptor type.
  • Cover minimum bounds, invalid arguments, exact-target replacement, close-on-exec behavior, pointer-command error translation, and cross-type descriptor replacement.
  • Update the libkernel debt entry to retain only the remaining socket ownership and console-verification gaps.
  • Rebase resolution preserves the host-socket documentation from merged #7403 together with the guest-socket duplication behavior in this PR.
  • The refreshed overlap scan reports #7956 at neighboring test/debt lines. Direct inspection shows its malformed ioctl handling does not implement guest-socket fcntl duplication; no functional dependency was identified. #6044 reorganizes tests; #7332 changes Apple-only socket paths. The scan could not compare several PRs conflicting with main, so those results are incomplete rather than proof of no overlap.

Tested

  • Rebased onto main e80325a4c7; head b6b1255830.
  • Windows 11 10.0.26200, WinLibs GCC 15.2.0, Release: cmake --build build --target libkernel guest_socket_descriptor_flags_tests guest_kernel_fcntl_tests guest_dup_tests guest_socket_descriptors_tests guest_udp_tests guest_tcp_tests --parallel 4 passed after initializing the new upstream mimalloc submodule with git submodule update --init --recursive.
  • Windows: ctest --test-dir build -R '^(guest_socket_descriptor_flags|guest_kernel_fcntl|guest_dup|guest_socket_descriptors|guest_udp|guest_tcp)$' --output-on-failure passed 6/6.
  • WSL Ubuntu 26.04, GCC 15.2.0, Release: the same focused build targets passed; the same six CTest cases passed 6/6. guest_kernel_fcntl includes host-socket checks from #7403.
  • The builds and tests ran on the conflict-resolved tree. Subsequent rebases brought unrelated upstream changes; independent Git comparisons verified final libkernel, libc and focused test sources remained identical to that tested tree.
  • python tools/check_conventions.py --base origin/main: 0 errors, 1 debt-length warning on the existing long fcntl entry.
  • git diff --check origin/main...HEAD: passed. Conflict-marker, UTF-8 BOM and machine-specific absolute-path checks passed.
  • python tools/pr_overlap.py --branch fix/libkernel-socket-fcntl-duplication --repo boykopovar/AnyPS5: completed; findings and comparison limitations described above.
  • No console validation or full-suite run was performed in this rebase session.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4906915290 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7437). Originally posted by [Queuse](https://github.com/Queuse) on 2026-10-18T06:22:09Z. --- ### What - Implement `F_DUPFD`, `F_DUPFD_CLOEXEC`, `F_DUP2FD`, and `F_DUP2FD_CLOEXEC` for guest socket descriptors with the lowest-free-descriptor and close-on-exec semantics used by FreeBSD 11.4. - Forward every typed `sceKernelFcntl` variadic argument to the guest-socket path, including pointer arguments for unsupported lock commands, and preserve descriptor metadata when an exact-target duplicate replaces another descriptor type. - Cover minimum bounds, invalid arguments, exact-target replacement, close-on-exec behavior, pointer-command error translation, and cross-type descriptor replacement. - Update the libkernel debt entry to retain only the remaining socket ownership and console-verification gaps. - Rebase resolution preserves the host-socket documentation from merged #7403 together with the guest-socket duplication behavior in this PR. - The refreshed overlap scan reports #7956 at neighboring test/debt lines. Direct inspection shows its malformed ioctl handling does not implement guest-socket fcntl duplication; no functional dependency was identified. #6044 reorganizes tests; #7332 changes Apple-only socket paths. The scan could not compare several PRs conflicting with main, so those results are incomplete rather than proof of no overlap. ### 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. --> - Rebased onto `main` `e80325a4c7`; head `b6b1255830`. - Windows 11 10.0.26200, WinLibs GCC 15.2.0, Release: `cmake --build build --target libkernel guest_socket_descriptor_flags_tests guest_kernel_fcntl_tests guest_dup_tests guest_socket_descriptors_tests guest_udp_tests guest_tcp_tests --parallel 4` passed after initializing the new upstream mimalloc submodule with `git submodule update --init --recursive`. - Windows: `ctest --test-dir build -R '^(guest_socket_descriptor_flags|guest_kernel_fcntl|guest_dup|guest_socket_descriptors|guest_udp|guest_tcp)$' --output-on-failure` passed 6/6. - WSL Ubuntu 26.04, GCC 15.2.0, Release: the same focused build targets passed; the same six CTest cases passed 6/6. `guest_kernel_fcntl` includes host-socket checks from #7403. - The builds and tests ran on the conflict-resolved tree. Subsequent rebases brought unrelated upstream changes; independent Git comparisons verified final libkernel, libc and focused test sources remained identical to that tested tree. - `python tools/check_conventions.py --base origin/main`: 0 errors, 1 debt-length warning on the existing long fcntl entry. - `git diff --check origin/main...HEAD`: passed. Conflict-marker, UTF-8 BOM and machine-specific absolute-path checks passed. - `python tools/pr_overlap.py --branch fix/libkernel-socket-fcntl-duplication --repo boykopovar/AnyPS5`: completed; findings and comparison limitations described above. - No console validation or full-suite run was performed in this rebase session. ### 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: none <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
github-actions[bot] commented 2026-10-18 06:28:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T06:28:45Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 4630 docs/dev/debt/libkernel.md
PR 5021 core/libs/prx/libkernel/File/src/Open.cpp
core/libs/prx/libkernel/Socket/src/Udp.cpp
docs/dev/debt/libkernel.md
PR 6044 core/libs/tests/GuestKernelFcntl.cpp
core/libs/tests/GuestSocketDescriptorFlags.cpp
PR 6149 docs/dev/debt/libkernel.md
PR 6469 docs/dev/debt/libkernel.md
PR 6519 docs/dev/debt/libkernel.md
PR 6658 docs/dev/debt/libkernel.md
PR 6740 docs/dev/debt/libkernel.md
PR 6893 docs/dev/debt/libkernel.md
PR 6936 core/libs/prx/libkernel/File/src/Open.cpp
docs/dev/debt/libkernel.md
PR 6977 core/libs/prx/libkernel/Socket/src/Udp.cpp
core/libs/tests/GuestKernelFcntl.cpp
docs/dev/debt/libkernel.md
PR 7049 docs/dev/debt/libkernel.md
PR 7088 core/libs/prx/libkernel/Socket/src/Udp.cpp
docs/dev/debt/libkernel.md
PR 7105 docs/dev/debt/libkernel.md
PR 7121 core/libs/prx/libkernel/File/src/Open.cpp
docs/dev/debt/libkernel.md
PR 7149 docs/dev/debt/libkernel.md
PR 7201 core/libs/prx/libkernel/File/src/Open.cpp
core/libs/prx/libkernel/Socket/src/Udp.cpp
PR 7464 docs/dev/debt/libkernel.md
PR 7509 docs/dev/debt/libkernel.md
PR 7530 core/libs/prx/libkernel/File/src/Open.cpp
docs/dev/debt/libkernel.md
PR 7653 docs/dev/debt/libkernel.md
PR 7937 docs/dev/debt/libkernel.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6246566893 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7437#issuecomment-6246566893). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T06:28:45Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 4630](https://www.github.com/boykopovar/AnyPS5/pull/4630) | `docs/dev/debt/libkernel.md` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libkernel/File/src/Open.cpp`<br>`core/libs/prx/libkernel/Socket/src/Udp.cpp`<br>`docs/dev/debt/libkernel.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestKernelFcntl.cpp`<br>`core/libs/tests/GuestSocketDescriptorFlags.cpp` | | [PR 6149](https://www.github.com/boykopovar/AnyPS5/pull/6149) | `docs/dev/debt/libkernel.md` | | [PR 6469](https://www.github.com/boykopovar/AnyPS5/pull/6469) | `docs/dev/debt/libkernel.md` | | [PR 6519](https://www.github.com/boykopovar/AnyPS5/pull/6519) | `docs/dev/debt/libkernel.md` | | [PR 6658](https://www.github.com/boykopovar/AnyPS5/pull/6658) | `docs/dev/debt/libkernel.md` | | [PR 6740](https://www.github.com/boykopovar/AnyPS5/pull/6740) | `docs/dev/debt/libkernel.md` | | [PR 6893](https://www.github.com/boykopovar/AnyPS5/pull/6893) | `docs/dev/debt/libkernel.md` | | [PR 6936](https://www.github.com/boykopovar/AnyPS5/pull/6936) | `core/libs/prx/libkernel/File/src/Open.cpp`<br>`docs/dev/debt/libkernel.md` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libkernel/Socket/src/Udp.cpp`<br>`core/libs/tests/GuestKernelFcntl.cpp`<br>`docs/dev/debt/libkernel.md` | | [PR 7049](https://www.github.com/boykopovar/AnyPS5/pull/7049) | `docs/dev/debt/libkernel.md` | | [PR 7088](https://www.github.com/boykopovar/AnyPS5/pull/7088) | `core/libs/prx/libkernel/Socket/src/Udp.cpp`<br>`docs/dev/debt/libkernel.md` | | [PR 7105](https://www.github.com/boykopovar/AnyPS5/pull/7105) | `docs/dev/debt/libkernel.md` | | [PR 7121](https://www.github.com/boykopovar/AnyPS5/pull/7121) | `core/libs/prx/libkernel/File/src/Open.cpp`<br>`docs/dev/debt/libkernel.md` | | [PR 7149](https://www.github.com/boykopovar/AnyPS5/pull/7149) | `docs/dev/debt/libkernel.md` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libkernel/File/src/Open.cpp`<br>`core/libs/prx/libkernel/Socket/src/Udp.cpp` | | [PR 7464](https://www.github.com/boykopovar/AnyPS5/pull/7464) | `docs/dev/debt/libkernel.md` | | [PR 7509](https://www.github.com/boykopovar/AnyPS5/pull/7509) | `docs/dev/debt/libkernel.md` | | [PR 7530](https://www.github.com/boykopovar/AnyPS5/pull/7530) | `core/libs/prx/libkernel/File/src/Open.cpp`<br>`docs/dev/debt/libkernel.md` | | [PR 7653](https://www.github.com/boykopovar/AnyPS5/pull/7653) | `docs/dev/debt/libkernel.md` | | [PR 7937](https://www.github.com/boykopovar/AnyPS5/pull/7937) | `docs/dev/debt/libkernel.md` |
jotitadev commented 2026-10-18 10:09:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-18T10:09:46Z.

Review: COMMENTED


Linux run, since the description lists only Windows.

Machine: Linux x86_64, i7-8700, Ubuntu 26.04, GCC 15.2, Release, BUILD_TESTING=ON, full build.
Head d35db7be1 merged onto main 9caecfd2d (clean merge).

  • guest_kernel_fcntl and guest_socket_descriptor_flags pass, as do the other fcntl/socket/dup tests (ctest -R "fcntl|socket|dup|udp|tcp", 19 tests).
  • The two test files only, on main:
    • guest_socket_descriptor_flags fails at F_DUPFD must honor the minimum and clear FD_CLOEXEC (errno 22);
    • guest_kernel_fcntl aborts at sceKernelFcntl(socket, GetDescriptorFlags) == 1 right after sceKernelFcntl(socket, SetDescriptorFlags, 1) (I numbered the Require calls to find it): on main only F_SETFL forwards its argument for a socket, which is the Open.cpp change.
  • Non-GPU suite (ctest -E "^agc|gpu|vulkan|video_out"): 712/712, same as main.

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

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5562495681 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7437#pullrequestreview-5562495681). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-18T10:09:46Z. **Review:** COMMENTED --- Linux run, since the description lists only Windows. Machine: Linux x86_64, i7-8700, Ubuntu 26.04, GCC 15.2, Release, `BUILD_TESTING=ON`, full build. Head `d35db7be1` merged onto `main` `9caecfd2d` (clean merge). - `guest_kernel_fcntl` and `guest_socket_descriptor_flags` pass, as do the other fcntl/socket/dup tests (`ctest -R "fcntl|socket|dup|udp|tcp"`, 19 tests). - The two test files only, on `main`: - `guest_socket_descriptor_flags` fails at `F_DUPFD must honor the minimum and clear FD_CLOEXEC (errno 22)`; - `guest_kernel_fcntl` aborts at `sceKernelFcntl(socket, GetDescriptorFlags) == 1` right after `sceKernelFcntl(socket, SetDescriptorFlags, 1)` (I numbered the `Require` calls to find it): on `main` only `F_SETFL` forwards its argument for a socket, which is the `Open.cpp` change. - Non-GPU suite (`ctest -E "^agc|gpu|vulkan|video_out"`): 712/712, same as `main`. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Queuse commented 2026-10-18 14:21:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-18T14:21:03Z.


Rebased this PR on current main (a62c724c3; head 5c624a139). Coordination check:

  • @ycarogabriel-lgtm: #7332 changes Apple-only Udp.cpp branches/declaration context; this PR changes platform-independent guest-socket F_DUP* semantics. No functional dependency found.
  • @milescoviello: #7403 handles non-guest host sockets; this PR handles guest socket duplication. The only shared hunk is the libkernel debt entry.

Proposal: Depends on: none; either PR may merge first, then any later PR rebases its nearby Udp.cpp/debt context. Please flag a contrary dependency.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6251006829 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7437#issuecomment-6251006829). Originally posted by [Queuse](https://github.com/Queuse) on 2026-10-18T14:21:03Z. --- Rebased this PR on current `main` (`a62c724c3`; head `5c624a139`). Coordination check: - @ycarogabriel-lgtm: #7332 changes Apple-only `Udp.cpp` branches/declaration context; this PR changes platform-independent guest-socket `F_DUP*` semantics. No functional dependency found. - @milescoviello: #7403 handles non-guest host sockets; this PR handles guest socket duplication. The only shared hunk is the libkernel debt entry. Proposal: `Depends on: none`; either PR may merge first, then any later PR rebases its nearby `Udp.cpp`/debt context. Please flag a contrary dependency.
milescoviello commented 2026-10-18 18:54:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T18:54:56Z.


@lucaslima430 agreed, sorry for the slow reply. #7403 only changes the path for host sockets that aren't guest sockets, and this PR changes F_DUP* on guest sockets. There's no dependency either way. The shared debt entry is a text conflict for whichever lands second, and I'll take it if #7403 is second.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6253804014 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7437#issuecomment-6253804014). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-18T18:54:56Z. --- @lucaslima430 agreed, sorry for the slow reply. #7403 only changes the path for host sockets that aren't guest sockets, and this PR changes `F_DUP*` on guest sockets. There's no dependency either way. The shared debt entry is a text conflict for whichever lands second, and I'll take it if #7403 is second. AI-assisted: yes (Claude Code)
Queuse commented 2026-10-18 21:26:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-18T21:26:50Z.


Rebased onto current main (0d1c299a9; head 335ce43d8). During the variadic forwarding review, I found that sceKernelFcntl consumed pointer arguments but did not pass them to the guest-socket fcntl path, which then attempted to consume a missing argument. The new head forwards pointer arguments too and covers an unsupported lock command returning EINVAL through the expected translated path.

Windows targeted build and the six socket/fcntl/dup tests pass (6/6); python3 tools/check_conventions.py --base origin/main passes; the current overlap scan reports #7403 only at the shared debt line, with no functional dependency as already agreed above. Linux was not rerun on this head; the earlier independent Linux result remains attached to its reviewed commit.

AI-assisted: yes (Codex); implementation and test results were independently inspected in this session.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255348824 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7437#issuecomment-6255348824). Originally posted by [Queuse](https://github.com/Queuse) on 2026-10-18T21:26:50Z. --- Rebased onto current `main` (`0d1c299a9`; head `335ce43d8`). During the variadic forwarding review, I found that `sceKernelFcntl` consumed pointer arguments but did not pass them to the guest-socket `fcntl` path, which then attempted to consume a missing argument. The new head forwards pointer arguments too and covers an unsupported lock command returning `EINVAL` through the expected translated path. Windows targeted build and the six socket/fcntl/dup tests pass (6/6); `python3 tools/check_conventions.py --base origin/main` passes; the current overlap scan reports #7403 only at the shared debt line, with no functional dependency as already agreed above. Linux was not rerun on this head; the earlier independent Linux result remains attached to its reviewed commit. AI-assisted: yes (Codex); implementation and test results were independently inspected in this session.
Queuse commented 2026-10-18 21:55:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-18T21:55:36Z.


Follow-up validation after the final rebase (0bc3003f8 -> 45e35c552):

  • Windows Release build completed for libkernel and the six focused test targets; CTest passed 6/6.
  • WSL Ubuntu 26.04, Linux 6.18.54.1, GCC 15.2.0: the same focused build completed; CTest passed 6/6.
  • python3 tools/check_conventions.py --base origin/main passed.
  • git diff --check origin/main...HEAD passed.
  • The earlier note that Linux had not been rerun is superseded by this validation.
  • A later overlap refresh timed out without producing a result; the last completed scan and manual review remain documented in the PR body.

No machine-specific absolute paths were used in these reproduction instructions.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255626807 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7437#issuecomment-6255626807). Originally posted by [Queuse](https://github.com/Queuse) on 2026-10-18T21:55:36Z. --- Follow-up validation after the final rebase (`0bc3003f8` -> `45e35c552`): - Windows Release build completed for `libkernel` and the six focused test targets; CTest passed 6/6. - WSL Ubuntu 26.04, Linux 6.18.54.1, GCC 15.2.0: the same focused build completed; CTest passed 6/6. - `python3 tools/check_conventions.py --base origin/main` passed. - `git diff --check origin/main...HEAD` passed. - The earlier note that Linux had not been rerun is superseded by this validation. - A later overlap refresh timed out without producing a result; the last completed scan and manual review remain documented in the PR body. No machine-specific absolute paths were used in these reproduction instructions.
Queuse commented 2026-10-18 21:57:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-18T21:57:33Z.


Reviewed the newly reported overlap with #7509. It changes equeue pending-event bounds and a separate libkernel debt entry; it does not touch socket descriptor duplication behavior and creates no functional dependency. A context-only debt-file rebase may be needed for whichever PR lands second.

AI-assisted: yes (Codex); the patch was inspected directly.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255645036 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7437#issuecomment-6255645036). Originally posted by [Queuse](https://github.com/Queuse) on 2026-10-18T21:57:33Z. --- Reviewed the newly reported overlap with #7509. It changes equeue pending-event bounds and a separate libkernel debt entry; it does not touch socket descriptor duplication behavior and creates no functional dependency. A context-only debt-file rebase may be needed for whichever PR lands second. AI-assisted: yes (Codex); the patch was inspected directly.
Queuse commented 2026-10-18 22:04:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-18T22:04:01Z.


Final rebase update: current main is 07377573f and this PR head is 39101716f. The intervening main changes were AGC fixes plus libc copysign in an unrelated file. After rebasing, the Windows and WSL Ubuntu focused builds both completed and the six socket/fcntl/dup tests passed 6/6 on each platform. Conventions and git diff --check also passed.

AI-assisted: yes (Codex); all results above were rerun on the stated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255706603 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7437#issuecomment-6255706603). Originally posted by [Queuse](https://github.com/Queuse) on 2026-10-18T22:04:01Z. --- Final rebase update: current `main` is `07377573f` and this PR head is `39101716f`. The intervening main changes were AGC fixes plus libc `copysign` in an unrelated file. After rebasing, the Windows and WSL Ubuntu focused builds both completed and the six socket/fcntl/dup tests passed 6/6 on each platform. Conventions and `git diff --check` also passed. AI-assisted: yes (Codex); all results above were rerun on the stated head.
DavidAmsellem commented 2026-10-19 16:28:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DavidAmsellem on 2026-10-19T16:28:02Z.


First AMD-on-Linux (RADV) run of this PR. Merged onto main 0fbfd91e5 (clean merge), built in full and compared with the same main, on the same machine.

AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, Release.

Full suite (ANYPS5_REQUIRE_VULKAN=1 ctest -j8): 1637/1639 with this PR, against 1637/1639 on main. The failures are the same two on both, so this PR adds none: agc_driver_image_table_vouched_lookups (#7766, fixed by #7916) and agc_driver_guest_memory_lifetime (#7784). The PR adds no new ctest entry, and no test is skipped or removed compared with main.

GPUs tested: n/a (libkernel change; suite run on the machine above)

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6272005672 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7437#issuecomment-6272005672). Originally posted by [DavidAmsellem](https://github.com/DavidAmsellem) on 2026-10-19T16:28:02Z. --- First AMD-on-Linux (RADV) run of this PR. Merged onto `main` `0fbfd91e5` (clean merge), built in full and compared with the same `main`, on the same machine. AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, Release. Full suite (`ANYPS5_REQUIRE_VULKAN=1 ctest -j8`): **1637/1639 with this PR**, against 1637/1639 on `main`. The failures are the same two on both, so this PR adds none: `agc_driver_image_table_vouched_lookups` (#7766, fixed by #7916) and `agc_driver_guest_memory_lifetime` (#7784). The PR adds no new ctest entry, and no test is skipped or removed compared with `main`. GPUs tested: n/a (libkernel change; suite run on the machine above) AI-assisted: yes
adriadam10 commented 2026-10-20 15:44:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T15:44:37Z.


Rebased onto current main (conflicts in docs/dev/debt/libkernel.md and GuestKernelFcntl.cpp: kept main's ioctl entry and new assertions next to this PR's close loop and fcntl entries). The libkernel and libs tests pass on the rebased head; the errno mapping change in Open.cpp and the rest of the interdiff look right. Merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6294883109 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7437#issuecomment-6294883109). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T15:44:37Z. --- Rebased onto current `main` (conflicts in `docs/dev/debt/libkernel.md` and `GuestKernelFcntl.cpp`: kept `main`'s `ioctl` entry and new assertions next to this PR's close loop and fcntl entries). The `libkernel` and `libs` tests pass on the rebased head; the errno mapping change in `Open.cpp` and the rest of the interdiff look right. Merged.
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!7437
No description provided.