[PATCH] D35558: Use sys::Memory::AllocateRWX for JIT code
Lang Hames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 15:23:35 PDT 2017
lhames added a comment.
Is AllocateRWX returning RWX blocks? If so, is anyone clearing the W bit later?
For architectures that support it, I think I would like to keep the existing scheme: JIT'd memory is initialized while in RW- mode, then switched to RX- mode prior to execution. That means JIT'd code has no easy way to modify itself during execution.
I'm also open to changing the model (I'm not a security expert) but that would require more consideration.
Repository:
rL LLVM
https://reviews.llvm.org/D35558
More information about the llvm-commits
mailing list