[PATCH] D42897: MSan : Adding mmap W|X flag usage optional detection
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 4 14:20:55 PST 2018
krytarowski added a comment.
I recommend to clone the PaX MPROTECT extensions from NetBSD to your kernel. It's definitely easier for FreeBSD and possible (but I expect harder) for Linux.
It enforces W^X and has escape API for exceptions used for JIT - either swapping between RW - RX or RWX via double mapping (two pointers: data and code).
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D42897
More information about the llvm-commits
mailing list