Repository navigation
test(libkernel): audit pathconf and fpathconf parameter boundaries and error handling - #17521
slopgobblercobbler wants to merge 1 commit into
Conversation
|
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.
|
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, Vulkan hidden for this CPU-only run. The The PR does not build on Windows (MinGW GCC 15.2): I've only quoted the output here and haven't traced the cause. AI-assisted: yes. |
|
I reproduced the Windows build failure on the exact, clean PR head
The unchanged PR head does not build on Windows; the 3/3 pass applies only to this diagnostic variant. I did not test a title or PS5 hardware. AI-assisted: yes (Codex). |
|
Windows check of head Setup: Windows 11 x64, WinLibs GCC 15.2.0 (r7), Ninja, Release,
AI-assisted: yes. |
|
@slopgobblercobbler |
c228897 to
f98cc80
Compare
|
Rebased cleanly onto
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The test registration and assertions are consistent with the implementation at head f98cc80ef1fde9d1457e852e7121969e1bcc9393; no blocking defect was verified.
What I ran
Read the prepared diff and both changed files at the pinned head. Also read the pathconf implementation and existing pathconf test coverage. No build or test command was run.
Results
| Check | Result | Note |
|---|---|---|
| Changed file review | passed | Both changed files read |
| Targeted implementation review | passed | Pathconf behavior checked |
| Build and tests | not run | No execution performed |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Build and runtime behavior were not verified. Both files listed as reviewed in the manifest were read: core/libs/prx/libkernel/CMakeLists.txt and core/libs/tests/GuestKernelPathconfBounds.cpp. No excluded changed files were listed.
To get this to a good state
Nothing is required.
f98cc80 to
1439bc3
Compare
|
Rebased cleanly onto latest
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this test-only change; the review supports merging, but the new test was not run here.
What I ran
Reviewed head 1439bc31bd7a570f71d798aef812ae4b6b28dc03 against the prepared diff. Used repo_read.py to read both changed files in full and targeted existing implementation and test context. No build or test command was run; no merged-preview check was performed. The PR description reports a conventions check, which I did not run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed files | passed | Both changed files read in full |
| Targeted source context | passed | Existing implementation and related tests read |
| Build and new test | not run | No execution environment used |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The new test was not built or executed, so its runtime behavior and platform-specific results are unverified. No files were excluded from the prepared review bundle; both changed files listed as reviewed in the manifest were read in full. Related source files were read only in targeted ranges.
To get this to a good state
Nothing is required.
1439bc3 to
0faa9bd
Compare
0faa9bd to
5e4d0d2
Compare
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — comments
The change was reviewed at the supplied head, but the review folder and pinned repository reader are unavailable in this environment, so the code and changed-file list could not be verified.
What I ran
No reader commands were run; this environment exposes no shell or reader tool.
Results
| Check | Result | Note |
|---|---|---|
| Review inputs | not run | Inputs unavailable |
| Changed code audit | not run | No files read |
Findings
Blocking
None verified.
Non-blocking
Unable to assess the change without the prepared review files and reader access.
Not verified
The PR description, commits, diff, manifest, changed files, repository context, and any tests were not read or run.
To get this to a good state
Provide the review inputs and reader access so the change can be reviewed against its pinned head.
|
Tested
AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
|
Closing because main already covers these checks in core/libs/tests/GuestKernelSys.cpp: CheckPathconf has the values, invalid names, and the null, empty and missing path errors, and the fpathconf helpers cover both entry points on files, directories and pipes, plus bad and closed descriptors. The additions here (name 999, more bad descriptor numbers, closed pipe ends, a create and unlink sequence) go through the same code paths. Thank you for the work on it, and please reopen if there is a case that reaches behaviour main does not test. |
What
Authors standalone guest unit test
guest_kernel_pathconf_bounds_testsauditingpathconf,fpathconf, and_fpathconfconfiguration parameter validation, invalid name parameter returningPosixEinval(22), invalid/closed file descriptor returningPosixEbadf(9), null path returningPosixEfault(14), non-existent/empty path returningPosixEnoent(2), pipe buffer and asynchronous IO readbacks, and valid limit readbacks (_PC_NAME_MAX255,_PC_PATH_MAX1024,_PC_PIPE_BUF512,_PC_LINK_MAX32767,_PC_FILESIZEBITS64).Tested
Conventions check (
python tools/check_conventions.py --base upstream/mainpassed with 0 errors).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)