[Top][All Lists]

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

Re: [PATCH v3] tcg: Fix execution on Apple Silicon

From: Joelle van Dyne
Subject: Re: [PATCH v3] tcg: Fix execution on Apple Silicon
Date: Wed, 13 Jan 2021 17:55:24 -0800

No because of macOS weirdness you still have to map with RWX and MAP_JIT before you can use this. Split w^x is only useful in iOS where they don’t provide this functionality.


On Wednesday, January 13, 2021, Richard Henderson <richard.henderson@linaro.org> wrote:
On 1/12/21 5:28 PM, Roman Bolshakov wrote:
> Pages can't be both write and executable at the same time on Apple
> Silicon. macOS provides public API to switch write protection [1] for
> JIT applications, like TCG.

So... considering that split w^x is now upstream, can we just call this once
per thread to enable write and leave it write?
Since we have the separate rw mapping.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]