fix(libkernel): gettimeofday, getitimer, setitimer and the sceKernel time getters crash on a pointer into unmapped memory instead of failing with EFAULT #10969
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 xXPBSXx on 2026-10-25T11:35:27Z.
From a bad-pointer sweep of the libkernel exports (pointer parameter replaced by
1and0xfffffffffffff000):gettimeofday(both pointers),getitimer,setitimer(value and previous),sceKernelGettimeofdayandsceKernelGettimezonecrash the host (SIGSEGV on Linux, access violation on Windows). A null pointer is already handled. FreeBSD 11.4 fails with EFAULT:copyoutinsys_gettimeofday(sys/kern/kern_time.c:646 and 651) andsys_getitimer(:745), andcopyin(:803) andcopyout(:808) insys_setitimer.Related: #8986 (getrlimit) and #8988 (getrusage) cover the same family for those two calls and are merged.
AI-assisted (Claude Code).