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 04.06.2017 15:21, Joerg Sonnenberger wrote:
> 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.
> Look at the libffi and t_mprotect changes. That basically cover the
> normal ways to do this.
> Joerg

Does it mean that we need to perform duplication of a mapping for each
switch RW - RX, and munmap(2) the old one?

Attachment: signature.asc
Description: OpenPGP digital signature

Home | Main Index | Thread Index | Old Index