fix(libkernel): return EFAULT from sceKernelWriteThrottlingStatus for an unwritable store #13443
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13443"
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 DeveshB-1 on 2026-10-30T14:45:12Z.
What
Safely copy write throttling status in
sceKernelWriteThrottlingStatususingGuestCopyOut_nid_no_patchso that an unwritable status pointer returnsSCE_KERNEL_ERROR_EFAULT(0x8002000e) instead of crashing the host process withSIGSEGV.Tested
Linux x86_64 (AMD Ryzen 7 7730U):
guest_filesystempasses 3 of 3 (ctest --test-dir build -R '^guest_filesystem$' --repeat until-fail:3 -V).main, passing an unwritable pointer crashes deterministically withSIGSEGV(***Exception: SegFault 0.09 sec). With this fix applied, the function safely returns0x8002000e.python3 tools/check_conventions.py --base origin/mainreports zero findings.python3 tools/pr_overlap.py --branch fix/write-throttling-efaultreports no conflicting open pull requests implementing the same function.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)