fix(libkernel): fail futimes on a kqueue with EINVAL, as FreeBSD 11.4 does #24483
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24483"
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 brajankw on 2026-11-20T17:23:48Z.
What
A kqueue descriptor is a host null device here, so
futimesandsceKernelFutimestried to set the null device's times and failed with the host's error. FreeBSD 11.4'skern_futimestakes the vnode throughgetvnode, which fails withEINVALfor a kqueue, aftergetutimeshas copied and checked the times.KqueueDescriptorOperationsinGuestKqueue.cpp, through both exports.Tested
Linux (Debian 13, GCC 14.2.0, Release). Head
a8b5662f63, the single commit onmainc8f72e905c.main84e16538d4,guest_kqueueaborts at the newfutimescheck.a8b5662f63,ctestoverguest_kqueue,guest_equeue_eventsandguest_filesystem: all pass.ctest(6393 tests,-j 12) on this branch and my other eleven branches of this round, merged ontomain84e16538d4: 6378 passed. The 15 failures also fail onmainin this environment:.gitdirectory, network access or a passwd entry for the user:conventions_git_errors,test_script_registration,web_library_assets,title_run,title_run_identity,guest_kernel_sys_login,guest_net_ctl,guest_getloginandguest_getlogin_no_session;agc_driverGPU cases fail the same way onmain:prepared_shaderswith itsindirect,uncachedanddebugforms, andstorage_file_write;agc_driver_image_table_packed_guardsis unstable onmainas well (2 of 10 runs passed on its own onmain3f4693be43).python3 tools/check_conventions.py --base origin/main: passed.python3 tools/pr_overlap.py --branch fix/libkernel-kqueue-futimes-einval: could not compare #6936, #7121, #7447, #9293, #9297, #9302, #12682, #12688, #12700, #12965 and #15037, which conflict withmaininStdio.cpp; none of their diffs touchessceKernelFutimes.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T05:39:53Z.
Review: APPROVED
Reviewed — looks good
Nothing in the inspected change blocks merging; the focused change and tests match the stated behavior.
What I ran
Reviewed head
a8b5662f6397406d552023ad31aae7ea6aedd998. No commands or tests were run; repository files were read withrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Did not run tests, inspect CI output, or verify behavior on Windows, macOS, or a console. The author-reported test results were not independently verified. Read
description.md,commits.md,manifest.json,diff.patch,Stdio.cpp,GuestKqueue.cpp,Kqueue.cpp, andGuestFileTimestamps.cpp.files.jsonwas not available as a review document; the file listing confirms both changed files were included, and both were read. No changed files were excluded.To get this to a good state
Nothing is required.