fix(libkernel): return EOVERFLOW for lseek offset overflow #5274
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5274"
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 MarcZX10 on 2026-10-13T16:14:00Z.
What
Carries Hussein Kadhim's
lseekoverflow fix and its follow-up commits with their original authorship preserved. PositiveSEEK_CURorSEEK_ENDoffsets whose sum overflows a signed 64-bit position now return guestEOVERFLOW(84), while non-overflow failures keep their existing errors. Adds regression coverage for bothlseekandsceKernelLseek, including failed-seek position preservation.Tested
guest_lseek_overflow_tests,guest_file_vector_tests, andguest_kernel_fcntl_tests.guest_lseek_overflow,guest_file_vector, andguest_kernel_fcntl: 3/3 passed.main'sOpen.cpp,guest_lseek_overflowaborts at the first overflowing relative seek with errno 22; this branch passes.python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/mainpassed.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:30:16Z.
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.
Pull request closed