Repository navigation
fix(libkernel): validate clock_settime before EPERM - #17551
AasishDairelSahayaGrinspan wants to merge 1 commit into
Conversation
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
|
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.
|
|
Manual overlap re-check after the
No build dependency on any of them: Depends on stays none. |
gabichuuuuu
left a comment
There was a problem hiding this comment.
Windows run of head 4b61ec368d, merged onto main 286b14d2f7 in one tree with 47 other small open PRs that touch different files. Setup: Windows 11, WinLibs GCC 15.2 r7 (x86_64-ucrt-posix-seh, the CI toolchain), Release, BUILD_TESTING=ON.
guest_freebsd_clockswith--repeat until-fail:5: 5 / 5 pass.- Negative control, with
main'sTime.cppand this PR's test: 5 / 5 runs fail.
4b61ec3 to
015d530
Compare
|
Rebased onto |
|
Tested
AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
|
@AasishDairelSahayaGrinspan, the order this PR adds does not match FreeBSD 11.4. In The PR body says main models the title as jailed. A jailed caller gets EPERM from |
|
@AasishDairelSahayaGrinspan I checked FreeBSD 11.4 and the order is the other way round. In |
015d530 to
cd20f64
Compare
cd20f64 to
2742166
Compare
|
Rebased onto |
|
Hi AasishDairelSahayaGrinspan, two things on the rebased head 2742166.
|
|
Both points taken.
With the code and test back on main's version the branch is empty against main, so I am closing this PR. Thanks for the review. |
What
Validate
clock_settimearguments like FreeBSD 11.4 before returningEPERMfor a validCLOCK_REALTIMErequest. This preserves the host clock and models the title's jailed environment rather than throwing for valid requests.Tested
macOS 26, AppleClang:
python3 tools/check_conventions.py --base origin/mainpassed. Build/test attempted viacmake -S . -B build-clock-settime -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ONandcmake --build build-clock-settime --target guest_freebsd_clocks_tests -j 4; build blocked by existing unrelated compile errors incore/libs/prx/libc/src/RunReport.cpp(std::threadunavailable in this compiler configuration). The new test adds valid realtime →EPERMand verifies invalid clock/field inputs →EINVAL; the existing validation cases remain. No PS5 hardware test.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)