fix(libSceFiber): safely probe resume and return output pointers #19856
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19856"
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-11-14T03:50:12Z.
What
Probes and copies out
arg_on_returninRunFiberandsceFiberReturnToThread, andarg_on_run_outinSwitchFiber, returningSCE_FIBER_ERROR_INVALIDwhen guest memory cannot be written. Also reusesCopyGuestOutinsceFiberGetSelfto deduplicate pointer validation.Tested
Windows 11, unit test
RunUnwritablePointerCheckincore/libs/tests/Fiber.cppverifying rejection of unwritable output pointers witherrno == 71preservation, andcheck_conventions.pypassing with 0 findings.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 PrivacyOnion on 2026-11-14T05:28:30Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
59720f36ef:tools/check_conventions.pypassed;git diff --checkclean.fiber_testsbuilt cleanly.fiber,fiber_contextless):core/libs/prx/libSceFiber/Export.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me