[LLVMdev] rwx pages dangerous?
Josh Haberman
jhaberman at gmail.com
Tue Jul 17 20:07:51 PDT 2012
I noticed that JITMemoryManager allocates its slabs as rwx. Isn't it a
security problem to have memory mapped as both writable and executable? I
think JITs often avoid this by mapping their memory as rw, then switching
it to rx once the data has been written. I was facing a similar problem in
a JIT of my own and was curious to see how LLVM addresses this issue.
Thanks,
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120717/55965434/attachment.html>
More information about the llvm-dev
mailing list