diff mbox series

[Bug,1914849] Re: mprotect fails after MacOS 11.2 on arm mac

Message ID 161280769492.2878.8851519112088854609.malone@chaenomeles.canonical.com
State New
Headers show
Series [Bug,1914849] Re: mprotect fails after MacOS 11.2 on arm mac | expand

Commit Message

Roman Bolshakov Feb. 8, 2021, 6:08 p.m. UTC
The patch can be used as a workaround for now:

Comments

no-reply@patchew.org Feb. 8, 2021, 10:36 p.m. UTC | #1
Patchew URL: https://patchew.org/QEMU/161280769492.2878.8851519112088854609.malone@chaenomeles.canonical.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 161280769492.2878.8851519112088854609.malone@chaenomeles.canonical.com
Subject: [Bug 1914849] Re: mprotect fails after MacOS 11.2 on arm mac

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
 * [new tag]         patchew/161280769492.2878.8851519112088854609.malone@chaenomeles.canonical.com -> patchew/161280769492.2878.8851519112088854609.malone@chaenomeles.canonical.com
 - [tag update]      patchew/20210129005845.416272-1-wuhaotsh@google.com -> patchew/20210129005845.416272-1-wuhaotsh@google.com
 - [tag update]      patchew/20210208024625.271018-1-richard.henderson@linaro.org -> patchew/20210208024625.271018-1-richard.henderson@linaro.org
 - [tag update]      patchew/20210208163339.1159514-1-berrange@redhat.com -> patchew/20210208163339.1159514-1-berrange@redhat.com
Switched to a new branch 'test'
f2c73d0 mprotect fails after MacOS 11.2 on arm mac

=== OUTPUT BEGIN ===
ERROR: Missing Signed-off-by: line(s)

total: 1 errors, 0 warnings, 9 lines checked

Commit f2c73d03916c (mprotect fails after MacOS 11.2 on arm mac) has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/161280769492.2878.8851519112088854609.malone@chaenomeles.canonical.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
diff mbox series

Patch

diff --git a/util/osdep.c b/util/osdep.c
index 66d01b9160..76be8c295b 100644
--- a/util/osdep.c
+++ b/util/osdep.c
@@ -110,6 +110,9 @@  int qemu_mprotect_none(void *addr, size_t size)
 {
 #ifdef _WIN32
     return qemu_mprotect__osdep(addr, size, PAGE_NOACCESS);
+#elif defined(__APPLE__) && defined(__arm64__)
+    /* Workaround mprotect (RWX->NONE) issue on Big Sur 11.2 */
+    return 0;
 #else
     return qemu_mprotect__osdep(addr, size, PROT_NONE);
 #endif