tech-security archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: W^X toggle button in RWX allocation



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


Home | Main Index | Thread Index | Old Index