fix(libkernel): return EFAULT from sceKernelWriteThrottlingStatus for a null status #7133
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7133"
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-17T13:03:22Z.
What
sceKernelWriteThrottlingStatuscurrently throws an unhandled exception (std::invalid_argument) when passed a null status buffer pointer. On FreeBSD / PS5libkernel, kernel system calls receiving an invalid or null user pointer returnSceErrorFromErrno(GUEST_EFAULT)(0x8002000e).This change:
SceErrorFromErrno(GUEST_EFAULT)whenstatus == nullptr.core/libs/tests/GuestFilesystem.cppverifyingsceKernelWriteThrottlingStatus(nullptr)returns0x8002000e.docs/dev/debt/libkernel.mddocumenting the null status pointerEFAULTreturn.Tested
python tools/check_conventions.py --base origin/main: 0 findings, 0 errors.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 github-actions[bot] on 2026-10-17T13:14:32Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libkernel.mdL123-124Some 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.cppdocs/dev/debt/libkernel.mdcore/libs/tests/GuestFilesystem.cppcore/libs/prx/libkernel/File/src/Stdio.cppdocs/dev/debt/libkernel.mdcore/libs/prx/libkernel/File/src/Stdio.cppdocs/dev/debt/libkernel.mddocs/dev/debt/libkernel.mddocs/dev/debt/libkernel.mdcore/libs/prx/libkernel/File/src/Stdio.cpp