mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-04 16:40:32 +00:00
pthread_attr_setstackaddr dereferenced *attr directly on the host, so an unmapped or unreadable guest attribute pointer crashed the host instead of returning EINVAL (22). Load the attribute handle through LoadAttr (GuestCopyIn_nid_no_patch with caller errno preserved) before checking stack_addr and updating stackAddress, matching pthread_attr_getsolosched_np and the pthread_attr affinity helpers.
768 B
768 B
libkernel_sys
change [pthread_attr_setstackaddr and pthread_attr_getsolosched_np]
- pthread_attr_setstackaddr and pthread_attr_getsolosched_np (libkernel_sys) - firmware 13.60
libkernel_sys.sprx(SHA-25660921322b155ba649cfa29ea5e6d358ca0229424b4f73fd5c30ae7f7ce7c304c) placespthread_attr_setstackaddr(NIDsuCrEbr0xIQ) at function address0x4ed0andpthread_attr_getsolosched_np(NIDApMLfJ527Ag) at0x51b0.pthread_attr_setstackaddrreadsattrthroughGuestCopyIn_nid_no_patchwith callererrnopreserved and returnsEINVAL(22) whenattris unreadable, matching its null-pointer return as a host-safety fallback. Console runtime behaviour was not independently tested