teapotd commented on Issue #1112:
Hello, I'd like to work on this issue.
teapotd commented on Issue #1112:
make_exec
consumesMmapMut
and returns immutableMmap
. Current implementation in simplejit always storesOption<MmapMut>
inPtrLen
and changes underlying memory to read-execute usingregion::protect
:In order to make change to
make_exec
meaningful we need to storeMmap
orMmapMut
accordingly. Perhaps we should splitPtrLen
intoPtrLen
andPtrLenMut
? Also mmap is used only ifselinux-fix
feature is enabled, so the remainingregion::protect
's have to stay. I'm not sure if we should make that change, I don't see much benefits.
Last updated: Nov 22 2024 at 17:03 UTC