mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-23 09:03:22 -05:00
sceKernelReleaseDirectMemory and sceKernelCheckedReleaseDirectMemory returned the range to the allocator before unmapping its views. The unmap waits for GPU leases on the views, and during that wait another allocation could take the freed pages and map them while the old view was still mapped and host-imported, so GPU writes through it landed in the new owner's memory. Both calls now unmap the views first; the checked call still reports ENOENT for an unallocated range before it touches any view. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>