From: Richard Henderson <richard.hender...@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.hender...@linaro.org> > --- > tcg/region.c | 19 +++++++++---------- > 1 file changed, 9 insertions(+), 10 deletions(-)
Reviewed-by: Luis Pires <luis.pi...@eldorado.org.br> -- Luis Pires Instituto de Pesquisas ELDORADO Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>