[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v3 27/28] tcg: When allocating for !splitwx, begin with PROT_
From: |
Luis Fernando Fujita Pires |
Subject: |
RE: [PATCH v3 27/28] tcg: When allocating for !splitwx, begin with PROT_NONE |
Date: |
Wed, 9 Jun 2021 14:59:41 +0000 |
From: Richard Henderson <richard.henderson@linaro.org>
> There's a change in mprotect() behaviour [1] in the latest macOS on M1 and
> it's
> not yet clear if it's going to be fixed by Apple.
>
> In this case, instead of changing permissions of N guard pages, we change
> permissions of N rwx regions. The same number of syscalls are required either
> way.
>
> [1] https://gist.github.com/hikalium/75ae822466ee4da13cbbe486498a191f
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> tcg/region.c | 19 +++++++++----------
> 1 file changed, 9 insertions(+), 10 deletions(-)
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
--
Luis Pires
Instituto de Pesquisas ELDORADO
Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>