qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] util/osdep: Avoid mprotect() RWX->NONE on Big Sur 11.2


From: Richard Henderson
Subject: Re: [PATCH] util/osdep: Avoid mprotect() RWX->NONE on Big Sur 11.2
Date: Tue, 9 Mar 2021 06:03:28 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 2/10/21 2:55 AM, Roman Bolshakov wrote:
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. For now we
can avoid unsupported mprotect() calls. QEMU and qtests work fine
without it.

1.https://gist.github.com/hikalium/75ae822466ee4da13cbbe486498a191f

This is an unfortunate OS bug.

But I can use this as an opportunity to tidy up some memory management, and in the process go from NONE -> {RX,RW} instead.


r~



reply via email to

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