test(libkernel): cover invalid flags parameter in ktimer settime #14496
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14496"
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-01T15:15:58Z.
What
Add test coverage in
GuestKernelSysKtimer.cppverifyingktimer_settimecopyin error precedence with null value pointer returningEFAULTacross relative and absolute flags in accordance with docs/dev/debt/libkernel.md.Tested
Ran
python tools/check_conventions.py --base upstream/main --head HEADsuccessfully with 0 findings.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-02T04:44:54Z.
Review: COMMENTED
Reviewed — no blocking findings
The test expects EINVAL for invalid flags, and the production change adds that check to
ktimer_settime(libkernel/Time/Ktimer.cpp), where the base accepted any flags. The added line is the same check as in #14695, which I reviewed earlier, so the two PRs change the same line.What I ran
8aa9884d2d20927be624c9d8a83c4c5c84fca91e; basef2d874c1fdccf781c0fa5d86619bb5dd8894b958. 2 files, +6/-0:Ktimer.cpp(one check) andGuestKernelSysKtimer.cpp.ktimer_settimefunction (Ktimer.cpplines 119-124 at base, where the check is after the null-value check).Results
Read-only check output
Precheck was not run: this session does not run code from PR heads. The read-only checks (diff check, conventions, ABI audit, stack check) were run from the trusted main checkout; the Windows CTest result is from the hosted run.
Hosted Windows CTest for this head: conventions_ci_gate Passed
Hosted:
gh api repos/boykopovar/AnyPS5/commits/8aa9884d2d20927be624c9d8a83c4c5c84fca91e/check-runs.Negative control
Not run here. A negative control needs a build, and code from this head is not run here.
Findings
Blocking
None.
Non-blocking
Sources
github.com/boykopovar/AnyPS5@8aa9884d2d/core/libs/tests/GuestKernelSysKtimer.cppNot verified
To get this to a good state