AnyPS5/core/libs/prx/libkernel/DirectMemory
Lexroid 9f1d7b0516 fix(libkernel): reprotect bundled guest module images on Windows
On Windows, sceKernelMprotect accepted only the executable's image and threw
"Memory protection of a foreign image is not supported" for every other
image. Bundled title modules are relinked into DLLs named <module>.guest.prx,
so a title that reprotects its own module pages failed. Dying Light 2's
bundled libNRD does this at start-up (#1794).

DoMprotect now also accepts images whose file name ends in .guest.prx, and
registers their committed pages like the executable's. Other images are
still refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 10:23:42 +02:00
..
DirectMemory.cpp fix(libkernel): reprotect bundled guest module images on Windows 2026-10-10 10:23:42 +02:00
DirectMemory.hpp fix(libkernel): unmap direct memory views when the memory is released 2026-10-09 14:42:17 +02:00
Export.cpp fix(libkernel): reject malformed ranges in sceKernelReleaseDirectMemory 2026-10-10 08:22:59 +02:00
MemoryPool.cpp feat(kernel): apply the memory type in sceKernelMtypeprotect 2026-10-06 14:32:47 +02:00
MemoryPool.hpp fix(libkernel): correct the MemoryPool.hpp include guard 2026-10-06 14:57:51 +02:00
MemoryPoolExport.cpp fix(libkernel): honour MAP_FIXED in sceKernelReserveVirtualRange and sceKernelMemoryPoolReserve 2026-10-01 00:00:22 +02:00
PosixMemory.cpp feat(libkernel): implement madvise 2026-10-09 21:22:44 -04:00