fix(kernel): preserve invalid-offset errors in AIO completions #2143
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2143"
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 erick-dsnk on 2026-10-09T09:57:25Z.
What
Preserve the guest
EINVALresult when a native AIO read or write completes with an invalid offset. The request stays aborted, valid requests in the same submission still complete, and aggregate queue state reflects the aborted request.Tested
libsbuild and incremental final-baselibsbuild succeeded.ctest --test-dir build -R '^guest_aio$' --output-on-failure --timeout 30passed on the final commit (0.01 s).EINVALassertion; restoring it and rebuilding returned the test to passing.libssucceeded;guest_aioand all 159guest_*tests passed. ResettingAio.cppto base3bd74c15while retaining the test reproduced the expectedEINVALfailure (report).Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by rmz-24 on 2026-10-09T11:50:36Z.
Windows results for 72b99cea, since the description notes the Windows runtime wasn't tested: Windows 11 Pro 25H2 (10.0.26200.9457), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, full build plus
libs.guest_aiopasses.guest_*tests pass.Aio.cppreset to the base (3bd74c15) and the new test kept,guest_aiofails atGuestAio.cpp:79(invalidReadResult.return_value == SCE_KERNEL_ERROR_EINVAL). The Windows host's negative-offset read reportsEINVALtoo, so the new mapping is reached on both hosts.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T03:19:17Z.
This conflicts with main after today's merges; could you rebase? It passed testing and is otherwise ready.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T06:50:28Z.
Checked build + ctest (399 tests in the touched directories) green;
guest_aiofails without theAio.cppchange. Windows run by @rmz-24 above covers the Windows host. Conflict with main was only inGuestAio.cpp(the newLseekbefore the batch writes); rebased keeping both blocks. Merging once CI is green.