Re: W^X toggle button in RWX allocation
Joerg Sonnenberger <[email protected]> Sun, 4 Jun 2017 15:21:08 +0200
| Newsgroups | gmane.os.netbsd.devel.security |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Jun 04, 2017 at 02:41:16PM +0200, Kamil Rytarowski wrote: > There is a new code for RWX memory mapping with MAP_REMAPDUP. > > Is there a functionality to switch which mapping is in force? To > manually switch between RW or RX? This would be useful for the W^X > mechanism in firefox. > > https://jandemooij.nl/blog/2015/12/29/wx-jit-code-enabled-in-firefox/ Look at the libffi and t_mprotect changes. That basically cover the normal ways to do this. Joerg