fix(libkernel): reject empty ioctl requests and answer INET socket requests as measured on a PS5 #11219

Merged
orezraey merged 8 commits from upstream-pr/11219 into main 2026-11-06 20:24:05 +00:00
orezraey commented 2026-10-25 22:03:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by orezraey on 2026-10-25T22:03:24Z.


What

ioctl now rejects an input or output request with length 0 as malformed (ENOTTY) on every descriptor. It also answers an unknown request on an AF_INET or AF_INET6 socket with EADDRNOTAVAIL when the request group is not i, r or f. A retail PS5 (firmware 13.60) does both. Measured with a homebrew probe from a payload process; the source and console log are in this gist (pioctl0).

On the console:

  • Empty input request. _IOC(IOC_IN, 'f', 127, 0) (0x8000667f) fails with ENOTTY (25) on a file, a datagram socket, both pipe ends and a directory, with a null argument and with a pointer. FreeBSD's sys_ioctl rejects such a request only when the kernel is built without the 4.3BSD/FreeBSD 4–5 compatibility options. The debt entry said which of these the PS5 kernel has was unknown.

    • 0x8000667f is the only empty input request the probe sent, and the test uses it. The check covers every other one by inference: sys_ioctl tests only the direction bits and the length, not the request code. On the datagram socket this request gave ENOTTY, where the measured TIOCGWINSZ gave EADDRNOTAVAIL; on the other descriptors ENOTTY alone would not tell the check apart from an unknown request.
    • AnyPS5 treated only an empty output request as malformed. A file, pipe or directory then threw, and a socket with a null argument returned EFAULT.
  • TIOCGWINSZ on an AF_INET datagram socket gives EADDRNOTAVAIL (49), where files, pipes and directories give ENOTTY. That is FreeBSD's soo_ioctl passing a request outside the i and r groups to in_control, which fails without an interface. AnyPS5 returned ENOTTY.

    • Requests in groups i, r and f other than FIONBIO and FIONREAD, and non-INET sockets, keep returning ENOTTY, since they were not measured. FreeBSD's soo_ioctl sends groups i and r to ifioctl and rtioctl instead of in_control; f has no such branch there, so keeping ENOTTY for it is a choice for lack of a measurement.
  • Already matching:

    • FIONREAD (file 5 bytes past the offset, socket 0, pipe read end 3, write end 0);
    • FIONBIO, which toggles O_NONBLOCK in F_GETFL;
    • TIOCGWINSZ on non-sockets.
  • Still different. FIONREAD on a directory returns 65536 on the console and still throws here, because that number comes from the console's file system. The debt entry now starts with that gap.

  • tcsetsid on an AF_INET socket. #9713 issues TIOCSCTTY (0x20007461, group t) through this ioctl and tested ENOTTY on a UDP socket, which came from the old catch-all rather than a measurement. FreeBSD's sys_ioctl and soo_ioctl do not look at the direction, so that request takes the path measured for TIOCGWINSZ (also group t): guest_kernel_sys now expects EADDRNOTAVAIL there, and the libkernel_sys debt entry says so. TIOCSCTTY itself was not measured. A null argument on a void request still does not give EFAULT, as #9713 intended.

Before and after

ioctl PS5 AnyPS5 before AnyPS5 now
empty input request on a file, pipe or directory ENOTTY throws ENOTTY
empty input request on a socket, null argument ENOTTY EFAULT ENOTTY
TIOCGWINSZ on an AF_INET socket EADDRNOTAVAIL (49) ENOTTY EADDRNOTAVAIL
FIONREAD, FIONBIO, TIOCGWINSZ on non-sockets as listed above the same the same
FIONREAD on a directory 65536 throws throws (debt)

Tested

  • Head 2e5675adfa: main e772fb25cc was merged in, with #12646. In guest_kernel_fcntl the socket case keeps this PR's empty input request (ENOTTY) and TIOCGWINSZ (EADDRNOTAVAIL) checks, followed by #12646's eight EFAULT checks for FIONBIO and FIONREAD through ioctl and _ioctl. guest_kernel_fcntl, guest_tcp, guest_udp and guest_kernel_sys pass three runs in a row on Windows (MinGW, GCC 15.2) and on Linux (WSL, GCC); check_conventions passes.
  • Head 125a0d5c55: main 3d5a2a5cdd was merged in, with #9713. Udp.cpp keeps #9713's null-argument check and this PR's request check. guest_kernel_fcntl, guest_tcp, guest_udp and guest_kernel_sys pass three runs in a row on Windows (MinGW, GCC 15.2) and on Linux (WSL, GCC); check_conventions passes.
  • Head cf7da83495: main was merged in, with #13695. Only the ioctl debt entry met: it keeps this PR's wording and now lists FIOCLEX and FIONCLEX as handled on a socket. guest_kernel_fcntl, guest_tcp and guest_udp pass three runs in a row on Windows (MinGW, GCC 15.2) and on Linux (WSL, GCC); check_conventions passes.
    Windows 11, WinLibs GCC 15.2, full build. The 109 tests matching fcntl|ioctl|socket|directory|pipe pass 3 times out of 3. guest_kernel_fcntl now checks:
  • the empty input request gives ENOTTY on a socket (null argument), a file (null and pointer) and a pipe;
  • TIOCGWINSZ gives EADDRNOTAVAIL on an AF_INET socket.

After merging main 3498905cc0 with #10767 (head 397c39fce0): guest_kernel_fcntl and guest_kqueue pass 3 times out of 3 on Windows 11 (WinLibs GCC 15.2) and 3 times out of 3 on Linux (WSL Ubuntu, GCC). tools/check_conventions.py passes.

At head 896bb41323: guest_kernel_fcntl and guest_kqueue pass 3 times out of 3 on Windows 11 (WinLibs GCC 15.2) and 3 times out of 3 on Linux (WSL Ubuntu, GCC). With the malformed check put back to output requests only, guest_kernel_fcntl fails on Windows. tools/check_conventions.py passes.

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: #9566 (it rewrites the same ioctl, _ioctl debt entry); #15556 (BunnyFl) adds a sysmodule flags debt entry next to the tcsetsid one; merge order only. #11223, #12646 and #15890 have merged
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5009160565 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11219). Originally posted by [orezraey](https://github.com/orezraey) on 2026-10-25T22:03:24Z. --- ### What `ioctl` now rejects an input or output request with length 0 as malformed (`ENOTTY`) on every descriptor. It also answers an unknown request on an `AF_INET` or `AF_INET6` socket with `EADDRNOTAVAIL` when the request group is not `i`, `r` or `f`. A retail PS5 (firmware 13.60) does both. Measured with a homebrew probe from a payload process; the source and console log are in [this gist](https://gist.github.com/orezraey/d9bbc6d27c7181f39b05aa11c67e859a) (`pioctl0`). On the console: - **Empty input request.** `_IOC(IOC_IN, 'f', 127, 0)` (`0x8000667f`) fails with `ENOTTY` (25) on a file, a datagram socket, both pipe ends and a directory, with a null argument and with a pointer. FreeBSD's `sys_ioctl` rejects such a request only when the kernel is built without the 4.3BSD/FreeBSD 4–5 compatibility options. The debt entry said which of these the PS5 kernel has was unknown. - `0x8000667f` is the only empty input request the probe sent, and the test uses it. The check covers every other one by inference: `sys_ioctl` tests only the direction bits and the length, not the request code. On the datagram socket this request gave `ENOTTY`, where the measured `TIOCGWINSZ` gave `EADDRNOTAVAIL`; on the other descriptors `ENOTTY` alone would not tell the check apart from an unknown request. - AnyPS5 treated only an empty *output* request as malformed. A file, pipe or directory then threw, and a socket with a null argument returned `EFAULT`. - **`TIOCGWINSZ` on an `AF_INET` datagram socket** gives `EADDRNOTAVAIL` (49), where files, pipes and directories give `ENOTTY`. That is FreeBSD's `soo_ioctl` passing a request outside the `i` and `r` groups to `in_control`, which fails without an interface. AnyPS5 returned `ENOTTY`. - Requests in groups `i`, `r` and `f` other than `FIONBIO` and `FIONREAD`, and non-INET sockets, keep returning `ENOTTY`, since they were not measured. FreeBSD's `soo_ioctl` sends groups `i` and `r` to `ifioctl` and `rtioctl` instead of `in_control`; `f` has no such branch there, so keeping `ENOTTY` for it is a choice for lack of a measurement. - **Already matching:** - `FIONREAD` (file 5 bytes past the offset, socket 0, pipe read end 3, write end 0); - `FIONBIO`, which toggles `O_NONBLOCK` in `F_GETFL`; - `TIOCGWINSZ` on non-sockets. - **Still different.** `FIONREAD` on a directory returns 65536 on the console and still throws here, because that number comes from the console's file system. The debt entry now starts with that gap. - **`tcsetsid` on an `AF_INET` socket.** #9713 issues `TIOCSCTTY` (`0x20007461`, group `t`) through this `ioctl` and tested `ENOTTY` on a UDP socket, which came from the old catch-all rather than a measurement. FreeBSD's `sys_ioctl` and `soo_ioctl` do not look at the direction, so that request takes the path measured for `TIOCGWINSZ` (also group `t`): `guest_kernel_sys` now expects `EADDRNOTAVAIL` there, and the `libkernel_sys` debt entry says so. `TIOCSCTTY` itself was not measured. A null argument on a void request still does not give `EFAULT`, as #9713 intended. **Before and after** | `ioctl` | PS5 | AnyPS5 before | AnyPS5 now | |---|---|---|---| | empty input request on a file, pipe or directory | `ENOTTY` | throws | `ENOTTY` | | empty input request on a socket, null argument | `ENOTTY` | `EFAULT` | `ENOTTY` | | `TIOCGWINSZ` on an `AF_INET` socket | `EADDRNOTAVAIL` (49) | `ENOTTY` | `EADDRNOTAVAIL` | | `FIONREAD`, `FIONBIO`, `TIOCGWINSZ` on non-sockets | as listed above | the same | the same | | `FIONREAD` on a directory | 65536 | throws | throws (debt) | ### 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. --> - Head `2e5675adfa`: `main` `e772fb25cc` was merged in, with #12646. In `guest_kernel_fcntl` the socket case keeps this PR's empty input request (`ENOTTY`) and `TIOCGWINSZ` (`EADDRNOTAVAIL`) checks, followed by #12646's eight `EFAULT` checks for `FIONBIO` and `FIONREAD` through `ioctl` and `_ioctl`. `guest_kernel_fcntl`, `guest_tcp`, `guest_udp` and `guest_kernel_sys` pass three runs in a row on Windows (MinGW, GCC 15.2) and on Linux (WSL, GCC); `check_conventions` passes. - Head `125a0d5c55`: `main` `3d5a2a5cdd` was merged in, with #9713. `Udp.cpp` keeps #9713's null-argument check and this PR's request check. `guest_kernel_fcntl`, `guest_tcp`, `guest_udp` and `guest_kernel_sys` pass three runs in a row on Windows (MinGW, GCC 15.2) and on Linux (WSL, GCC); `check_conventions` passes. - Head `cf7da83495`: `main` was merged in, with #13695. Only the `ioctl` debt entry met: it keeps this PR's wording and now lists `FIOCLEX` and `FIONCLEX` as handled on a socket. `guest_kernel_fcntl`, `guest_tcp` and `guest_udp` pass three runs in a row on Windows (MinGW, GCC 15.2) and on Linux (WSL, GCC); `check_conventions` passes. Windows 11, WinLibs GCC 15.2, full build. The 109 tests matching `fcntl|ioctl|socket|directory|pipe` pass 3 times out of 3. `guest_kernel_fcntl` now checks: - the empty input request gives `ENOTTY` on a socket (null argument), a file (null and pointer) and a pipe; - `TIOCGWINSZ` gives `EADDRNOTAVAIL` on an `AF_INET` socket. After merging `main` `3498905cc0` with #10767 (head `397c39fce0`): `guest_kernel_fcntl` and `guest_kqueue` pass 3 times out of 3 on Windows 11 (WinLibs GCC 15.2) and 3 times out of 3 on Linux (WSL Ubuntu, GCC). `tools/check_conventions.py` passes. At head `896bb41323`: `guest_kernel_fcntl` and `guest_kqueue` pass 3 times out of 3 on Windows 11 (WinLibs GCC 15.2) and 3 times out of 3 on Linux (WSL Ubuntu, GCC). With the malformed check put back to output requests only, `guest_kernel_fcntl` fails on Windows. `tools/check_conventions.py` passes. ### 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: #9566 (it rewrites the same `ioctl, _ioctl` debt entry); #15556 (BunnyFl) adds a sysmodule `flags` debt entry next to the `tcsetsid` one; merge order only. #11223, #12646 and #15890 have merged - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-25 22:07:29 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed exact head 250ab52ce8eff60d4ed11c797345e5aa85240522 and the linked firmware 13.60 probe source/log. The 0x8000667f zero-length input request returns ENOTTY for the measured file, datagram socket, both pipe ends and directory, with null and non-null arguments. TIOCGWINSZ (0x40087468) on the measured AF_INET datagram socket returns EADDRNOTAVAIL; the other captured descriptor kinds return ENOTTY. The implementation applies the empty-length rule before descriptor argument handling and uses the measured ioctl group plus socket family to select the network error. The focused test updates cover the socket, file and pipe cases described in the PR.

Local git diff --check passed. Current-main conventions report no errors (one debt-length warning on the updated entry). I inspected the changed dispatch and tests, but did not run the kernel tests locally: the available build-review configuration is relinker-only and has no GuestKernelFcntl target. The PR reports 109 matching Windows tests passing three times; hosted product build jobs are skipped by path policy. Pairwise merge previews show the expected GuestKernelFcntl.cpp/debt overlap with #11135 and Udp.cpp overlap with #9713; please keep the stated dependency order when landing.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5645579385 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11219#pullrequestreview-5645579385). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T22:07:29Z. **Review:** APPROVED --- Reviewed exact head `250ab52ce8eff60d4ed11c797345e5aa85240522` and the linked firmware 13.60 probe source/log. The `0x8000667f` zero-length input request returns `ENOTTY` for the measured file, datagram socket, both pipe ends and directory, with null and non-null arguments. `TIOCGWINSZ` (`0x40087468`) on the measured AF_INET datagram socket returns `EADDRNOTAVAIL`; the other captured descriptor kinds return `ENOTTY`. The implementation applies the empty-length rule before descriptor argument handling and uses the measured ioctl group plus socket family to select the network error. The focused test updates cover the socket, file and pipe cases described in the PR. Local `git diff --check` passed. Current-main conventions report no errors (one debt-length warning on the updated entry). I inspected the changed dispatch and tests, but did not run the kernel tests locally: the available `build-review` configuration is relinker-only and has no `GuestKernelFcntl` target. The PR reports 109 matching Windows tests passing three times; hosted product build jobs are skipped by path policy. Pairwise merge previews show the expected `GuestKernelFcntl.cpp`/debt overlap with #11135 and `Udp.cpp` overlap with #9713; please keep the stated dependency order when landing.
MarcZX10 commented 2026-11-01 14:31:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T14:31:53Z.

Review: COMMENTED


Reviewed — no blocking findings

The head 397c39fce0 changes two ioctl paths and their tests; the source reads consistently with its tests, but the firmware-probe evidence cited by the earlier approval uses a request code that differs from the one in this head's test, and the console claims are not verifiable here, so I withhold approval.

What I ran

  • Exact head: 397c39fce0f97a36d834dd2be79b725d43b661e2. Base: 3498905cc00bd27d8e49ab908ab02c589846c9bb. Earlier approved head: 250ab52ce8eff60d4ed11c797345e5aa85240522 (its approval text was read; its diff was not compared line by line).
  • No build, no C++ compile, no test binaries. Source reads and helper runs only.
  • Commands:
python3 -I tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11219 --output-dir <scratch>/precheck/11219
python3 -I /marc/AnyPS5/tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 3498905cc00bd27d8e49ab908ab02c589846c9bb --head 397c39fce0f97a36d834dd2be79b725d43b661e2 --json
python3 -I /marc/AnyPS5/tools/pr_test_quality.py --root <git-archive extract of head core/ and tools/> --json core/libs/tests/GuestKernelFcntl.cpp
git grep -n -i "0x8000667f|0x80006601" 397c39fce0f97a36d834dd2be79b725d43b661e2 -- core tools docs
  • Hosted check runs at this head: 8 completed with success, 6 skipped (none failing or pending at the time of review).

Results

Check Result Notes
git diff --check (base..head) passed precheck
conventions and PR template passed precheck
live dependency and mergeability passed precheck
ABI audit (lexical, by helper) 36 symbols, 0 findings run by hand; the precheck entry failed only because the helper is not in the PR tree
test-quality heuristic (by helper) 1 flag, false positive possible-unregistered-cpp-test for GuestKernelFcntl.cpp; the file is registered at core/libs/prx/libkernel/CMakeLists.txt:2027
C++ build and tests not run no build in this review
request-code lookup 0x80006601 only the tree has no 0x8000667f (see Findings)
Unedited precheck output (conventions)
All conventions checks passed.

Negative control

Not run: the changed tests are C++ and need a build, which this review does not do. The new assertions are checked against the source only.

Findings

Blocking: none.

Non-blocking:

  1. The approval at 250ab52ce8 says the firmware probe measured the zero-length input request 0x8000667f returning ENOTTY. At this head the test uses EmptyInputRequest = 0x80006601 (core/libs/tests/GuestKernelFcntl.cpp:69), and 0x8000667f does not appear anywhere in core, tools or docs. Either the probe or the test is using a different code. Please state which request the probe measured and make the test use it, or explain the difference.
  2. The IoctlRequestMalformed change (core/libs/prx/libkernel/File/src/DescriptorControl.cpp:553) now treats a zero-length RequestIn request as malformed, not only RequestOut. That matches the new expectations in the test, but it is a behaviour change for every IN ioctl, so the firmware evidence needs to cover IN requests other than the one probed.
  3. The EADDRNOTAVAIL (49) branch for other groups on AF_INET and AF_INET6 sockets (core/libs/prx/libkernel/Socket/src/Udp.cpp:1487-1491) is supported only by the console log cited in the earlier approval; the reason for the group list i, r, f is not explained in this diff.

Sources

Not verified

  • Every PS5 firmware 13.60 claim, the probe source and log, and the measured errno values: not reproduced here.
  • The C++ changes and the GuestKernelFcntl test run: not built, not run.
  • Hosted check runs: completed at the time of review; their content was not read beyond the status counts.

To get this to a good state

  • Confirm the request code the probe measured (0x8000667f or 0x80006601) and align the test and the evidence with it.
  • Say in the commit body or the debt note which IN requests the firmware probe covers, since the malformed check now applies to all of them.
  • No code change is requested beyond that; the approval can follow once the evidence and the test agree.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5728622570 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11219#pullrequestreview-5728622570). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T14:31:53Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The head 397c39fce0 changes two ioctl paths and their tests; the source reads consistently with its tests, but the firmware-probe evidence cited by the earlier approval uses a request code that differs from the one in this head's test, and the console claims are not verifiable here, so I withhold approval. ## What I ran - Exact head: `397c39fce0f97a36d834dd2be79b725d43b661e2`. Base: `3498905cc00bd27d8e49ab908ab02c589846c9bb`. Earlier approved head: `250ab52ce8eff60d4ed11c797345e5aa85240522` (its approval text was read; its diff was not compared line by line). - No build, no C++ compile, no test binaries. Source reads and helper runs only. - Commands: ```text python3 -I tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11219 --output-dir <scratch>/precheck/11219 python3 -I /marc/AnyPS5/tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 3498905cc00bd27d8e49ab908ab02c589846c9bb --head 397c39fce0f97a36d834dd2be79b725d43b661e2 --json python3 -I /marc/AnyPS5/tools/pr_test_quality.py --root <git-archive extract of head core/ and tools/> --json core/libs/tests/GuestKernelFcntl.cpp git grep -n -i "0x8000667f|0x80006601" 397c39fce0f97a36d834dd2be79b725d43b661e2 -- core tools docs ``` - Hosted check runs at this head: 8 completed with success, 6 skipped (none failing or pending at the time of review). ## Results | Check | Result | Notes | | --- | --- | --- | | `git diff --check` (base..head) | passed | precheck | | conventions and PR template | passed | precheck | | live dependency and mergeability | passed | precheck | | ABI audit (lexical, by helper) | 36 symbols, 0 findings | run by hand; the precheck entry failed only because the helper is not in the PR tree | | test-quality heuristic (by helper) | 1 flag, false positive | `possible-unregistered-cpp-test` for `GuestKernelFcntl.cpp`; the file is registered at `core/libs/prx/libkernel/CMakeLists.txt:2027` | | C++ build and tests | not run | no build in this review | | request-code lookup | 0x80006601 only | the tree has no `0x8000667f` (see Findings) | <details><summary>Unedited precheck output (conventions)</summary> ```text All conventions checks passed. ``` </details> ## Negative control Not run: the changed tests are C++ and need a build, which this review does not do. The new assertions are checked against the source only. ## Findings **Blocking:** none. **Non-blocking:** 1. The approval at `250ab52ce8` says the firmware probe measured the zero-length input request `0x8000667f` returning `ENOTTY`. At this head the test uses `EmptyInputRequest = 0x80006601` (`core/libs/tests/GuestKernelFcntl.cpp:69`), and `0x8000667f` does not appear anywhere in `core`, `tools` or `docs`. Either the probe or the test is using a different code. Please state which request the probe measured and make the test use it, or explain the difference. 2. The `IoctlRequestMalformed` change (`core/libs/prx/libkernel/File/src/DescriptorControl.cpp:553`) now treats a zero-length `RequestIn` request as malformed, not only `RequestOut`. That matches the new expectations in the test, but it is a behaviour change for every IN ioctl, so the firmware evidence needs to cover IN requests other than the one probed. 3. The `EADDRNOTAVAIL` (49) branch for other groups on AF_INET and AF_INET6 sockets (`core/libs/prx/libkernel/Socket/src/Udp.cpp:1487-1491`) is supported only by the console log cited in the earlier approval; the reason for the group list `i`, `r`, `f` is not explained in this diff. ## Sources - Changed ioctl malformed check: https://github.com/boykopovar/AnyPS5/blob/397c39fce0f97a36d834dd2be79b725d43b661e2/core/libs/prx/libkernel/File/src/DescriptorControl.cpp#L550-L556 - Socket branch: https://github.com/boykopovar/AnyPS5/blob/397c39fce0f97a36d834dd2be79b725d43b661e2/core/libs/prx/libkernel/Socket/src/Udp.cpp#L1484-L1492 - Test constant and the zero-length assertion: https://github.com/boykopovar/AnyPS5/blob/397c39fce0f97a36d834dd2be79b725d43b661e2/core/libs/tests/GuestKernelFcntl.cpp#L69 and https://github.com/boykopovar/AnyPS5/blob/397c39fce0f97a36d834dd2be79b725d43b661e2/core/libs/tests/GuestKernelFcntl.cpp#L202-L204 - Test registration: https://github.com/boykopovar/AnyPS5/blob/397c39fce0f97a36d834dd2be79b725d43b661e2/core/libs/prx/libkernel/CMakeLists.txt#L2027 ## Not verified - Every PS5 firmware 13.60 claim, the probe source and log, and the measured errno values: not reproduced here. - The C++ changes and the GuestKernelFcntl test run: not built, not run. - Hosted check runs: completed at the time of review; their content was not read beyond the status counts. ## To get this to a good state - Confirm the request code the probe measured (`0x8000667f` or `0x80006601`) and align the test and the evidence with it. - Say in the commit body or the debt note which IN requests the firmware probe covers, since the malformed check now applies to all of them. - No code change is requested beyond that; the approval can follow once the evidence and the test agree.
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!11219
No description provided.