Repository navigation
fix(libkernel): return EBADF from sceKernelAddAmprEvent for an equeue that is not live - #15884
Conversation
… that is not live obSCEne's PS5 run (system software 12.40) returned 0x80020009 for a null equeue and for one that is not live; the host returned 0 for both, dropping the EBADF its own add already reported.
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run this test on pull requests.
AI-assisted: yes. |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (7, not counted against this PR)Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)Validation IDs already present on main (4 IDs in 624 tests)Skipped (59)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
Windows and WSL2 run at
AI-assisted: yes (Claude Code) |
…kernel-ampr-event-bad-queue # Conflicts: # docs/dev/debt/libkernel.md
…kernel-ampr-event-bad-queue # Conflicts: # docs/dev/debt/libkernel.md
…kernel-ampr-event-bad-queue # Conflicts: # docs/dev/debt/libkernel.md
|
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.
|
…kernel-ampr-event-bad-queue # Conflicts: # docs/dev/debt/libkernel.md
What
sceKernelAddAmprEventnow returnsEBADF(0x80020009) for an equeue that is not live, a null one included, as obSCEne's census measured. It ran in its own title (PPSA90000) on a PS5 with system software 12.40. The census logs the call by NID (bBfz7kMF2Ho, logged as0x7ad80543eef3176c).main0x800200090x80020009The same results came back in that log's sibling runs,
report-20261013-184500.logandreport-20261014-004800.log.mainreturned 0 early for a null equeue. For any other equeue it dropped theEBADFthat its ownEqueueAddEvent_nid_postfixreturns when the queue can't be pinned. Now the function returns that result, assceKernelAddTimerEventalready does (guest_equeue_eventscheckssceKernelAddTimerEvent(0, …) == EBADF).sceKernelAddAmprSystemEventforwards to it, so it returns the same. That one wasn't probed, and the new debt entry says so.Test.
guest_equeue_events's Ampr case now also adds an event to the equeue it just deleted, and to a null equeue, expectingEBADFfor both. The existing rows on live equeues keep returning 0, in this file and inGuestAmpr.cpp. Onmainthe test fails at the deleted-equeue row.Overlap:
git merge-treemerges this cleanly withmainand with the other open pull requests that touch these three files and merge withmain. kallmek3nny's #14894, which rewrote the "kevent measurements" debt line right next to this PR's entry, merged on 11-07;ba04cfa234mergesmainwith it. The debt entry sits apart from the read-event entries that #10645 edits.Tested
de5d55a92f(comment):main1e24993fa3.guest_equeue_eventsand the fourguest_ampr_*tests pass.--repeat until-fail:3passes every round on both.Equeue.cppfrommain,guest_equeue_eventsaborts on both:sceKernelAddAmprEventon the deleted equeue returns 0.Checked so far, on macOS (arm64, where no full build is possible):
clang++ -fsyntax-only.tools/check_conventions.py --base mainpasses.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)