fix(libkernel): return EFAULT from sceKernelMkdir and sceKernelRmdir for a null path #7113
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7113"
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 pushkarreddyy on 2026-10-17T12:08:25Z.
What
Return
SceErrorFromErrno(GUEST_EFAULT)(0x8002000e) fromsceKernelMkdirandsceKernelRmdirwhenpathis null, matching FreeBSD 11vfs_syscalls.c(sys_mkdirandsys_rmdir) where a null user pointer faults during path lookup instead of throwing a C++ exception.Tested
Added unit tests in
core/libs/tests/GuestPosixScalarIo.cppverifying both functions return0x8002000ewhen invoked with a null pointer.Checklist
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T12:10:44Z.
Looks good, thanks. Same conflict as #7110 with #7108 (same two spots in GuestPosixScalarIo.cpp); the plan is in #7110: fold this one and #7110 into one PR after #7108 merges.
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-17T12:21:45Z.
Understood, thanks @oneandonlydean! I will close this once #7108 lands and the folded PR (#7110) is updated with sceKernelMkdir, sceKernelRmdir, sceKernelTruncate, sceKernelUtimes, and sceKernelRename.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T12:42:45Z.
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.
core/libs/prx/libkernel/File/src/Stdio.cppcore/libs/tests/GuestPosixScalarIo.cppcore/libs/prx/libkernel/File/src/Stdio.cppcore/libs/prx/libkernel/File/src/Stdio.cppImported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-17T14:06:13Z.
Closing in favor of consolidated PR #7114 following @oneandonlydean's directive (folding #7110, #7113, and #7114 together on top of #7108).
Pull request closed