test(libkernel): audit socket FIONREAD data tracking, IPv6 FIONBIO, and closed descriptor precedence #21929
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21929"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by slopgobblercobbler on 2026-11-16T22:05:48Z.
What
Fold unique ioctl audits directly into GuestKernelIoctlFionread.cpp:
Tested
ctest --test-dir build -R guest_kernel_ioctl_fionread
Checklist
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T22:54:14Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
28d45453f2:tools/check_conventions.pyfailed.guest_kernel_ioctl_fionread_testsbuilt cleanly.guest_kernel_ioctl_fionread):Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T23:18:18Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this test-only change; the added coverage is consistent with the stated audit goals.
What I ran
Reviewed head
28d45453f2ad4cde3586ba38c72b01b695a96dd8. Read the prepared description, commit summary, manifest, diff, and the full changed test file throughrepo_read.py; also checked its CMake test registration and the project C++ standard. No test commands were run.Results
Findings
Blocking
None.
Non-blocking
core/libs/tests/GuestKernelIoctlFionread.cpp:419,core/libs/tests/GuestKernelIoctlFionread.cpp:430). Consider making the skip explicit in test output or splitting them into capability-aware tests.Not verified
The author reports running
ctest --test-dir build -R guest_kernel_ioctl_fionread; this was not run during review. Runtime behavior across host operating systems and actual console behavior were not verified. No files were excluded from the prepared diff; the single changed file in the manifest was read in full.To get this to a good state
Nothing is required. The IPv6 skip behavior is optional feedback.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T01:42:19Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
e22cc30d0e:tools/check_conventions.pypassed.guest_kernel_ioctl_fionread_testsbuilt cleanly.guest_kernel_ioctl_fionread):Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T01:54:00Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
87dbe5e2f0:tools/check_conventions.pypassed.guest_kernel_ioctl_fionread_testsbuilt cleanly.guest_kernel_ioctl_fionread):Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T10:33:46Z.
Review: COMMENTED
Reviewed — comments
The added tests improve FIONREAD and FIONBIO coverage, but the IPv6 socket checks are silently skipped when socket creation fails, so the advertised IPv6 coverage is not guaranteed.
What I ran
87dbe5e2f01e8ed145d9c9e04b50d332c5a27825; no build or test commands were run.description.md,commits.md,manifest.json,diff.patch, and the complete changed filecore/libs/tests/GuestKernelIoctlFionread.cppthroughrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
core/libs/tests/GuestKernelIoctlFionread.cpp:420andcore/libs/tests/GuestKernelIoctlFionread.cpp:431: Both IPv6 test blocks run only if socket creation succeeds; on failure, the test passes without exercising either IPv6 path. Consider failing explicitly or reporting the unsupported environment, so coverage cannot be mistaken for a pass.Not verified
files.jsonwas not available through the review reader.To get this to a good state
Nothing is required. Optionally make IPv6 socket creation failures visible in test output or make them fail the test.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T20:42:18Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
c3c258e42e:tools/check_conventions.pypassed.guest_kernel_ioctl_fionread_testsbuilt cleanly.guest_kernel_ioctl_fionread):Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T20:53:53Z.
Review: COMMENTED
Reviewed — no blocking findings
The added ioctl tests are consistent with the inspected descriptor and socket paths; the targeted test was not run in this review.
What I ran
Reviewed head
c3c258e42e85e44ac2c290dc99ad71c3cbd25ecb. Read the prepared description, commits, manifest, diff, and the complete changed test source, plus targeted ioctl and socket implementation ranges. No commands or tests were run.Results
files.jsonwas unavailable through the readerFindings
Blocking
None.
Non-blocking
None.
Not verified
The author's reported
ctest --test-dir build -R guest_kernel_ioctl_fionreadwas not run here.files.jsonand any excluded-file inventory were not accessible, so completeness against that inventory is not verified. No other changed files were listed in the available manifest.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T21:57:53Z.
Review: APPROVED
Reviewed — looks good
The added ioctl regression cases appear internally consistent at the reviewed head; the reported test command was not run during this review.
What I ran
Reviewed head
d4dd60bdfcb2cf9c875b5df71bb0ea3cc536100d. Readdescription.md,commits.md,manifest.json,diff.patch, and the full changed filecore/libs/tests/GuestKernelIoctlFionread.cppthroughrepo_read.py. No build or test command was run; the test command in the PR description is author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The test suite was not executed, so runtime behavior is not confirmed. The review folder's excluded-file listing was unavailable; the manifest lists one included changed file.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T22:20:58Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
d4dd60bdfc:tools/check_conventions.pypassed.guest_kernel_ioctl_fionread_testsbuilt cleanly.guest_kernel_ioctl_fionread):Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-23T21:03:11Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
e92a75642b:tools/check_conventions.pypassed.guest_kernel_ioctl_fionread_testsbuilt cleanly.guest_kernel_ioctl_fionread):Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T00:50:13Z.
Review: COMMENTED
Reviewed — comments
The test changes add useful socket and descriptor coverage, but the IPv6 checks can silently skip the behavior they are intended to verify.
What I ran
Reviewed head
e92a75642b09b174ca66ee472fa2de17aa7e9b66. Readdescription.md,commits.md,manifest.json,diff.patch, and the full changed filecore/libs/tests/GuestKernelIoctlFionread.cppusingrepo_read.py. No test commands were run; the test invocation in the PR description is author-reported.Results
Findings
Blocking
None.
Non-blocking
core/libs/tests/GuestKernelIoctlFionread.cpp:444andcore/libs/tests/GuestKernelIoctlFionread.cpp:455: Both IPv6 cases execute only when socket creation succeeds; a failure silently skips the IPv6 FIONBIO assertions. Since the stated goal is to audit FIONBIO on IPv6 stream and datagram sockets, useRequire(v6Stream >= 0, ...)andRequire(v6Dgram >= 0, ...)(or explicitly report an unsupported environment) so the test cannot pass without exercising those checks.Not verified
No tests or build checks were run. No files were excluded by the manifest; it lists the single changed file as included. Runtime behavior on the target console was not confirmed.
To get this to a good state
Nothing is required. Optional: make IPv6 socket creation failures explicit so the intended assertions cannot be skipped silently.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T23:49:53Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing in the inspected test changes shows a defect that blocks merging.
What I ran
Read the prepared diff and the complete changed test file at head
a395e08c7295b68bd47c192a42977e47d6ae1971. I did not run commands or tests;repo_read.pywas unavailable as a shell command.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The prepared artifacts list one changed file and include its full text, which I read.
files.jsonwas not available through the reader, so thereviewedlist could not be independently checked. The describedctestrun was author-reported; I did not run it. Runtime behavior on the console and whether IPv6 socket creation succeeds on supported systems were not verified.To get this to a good state
Nothing is required.