[PATCH] D42897: MSan : Adding mmap W|X flag usage optional detection

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 4 14:24:06 PST 2018


devnexen added a comment.

In https://reviews.llvm.org/D42897#997430, @krytarowski wrote:

> 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).


I think HardenedBSD already does that but do not know if it will go "upstream" to FreeBSD (in fact I m more a OpenBSD person).


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D42897





More information about the llvm-commits mailing list