From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 6E7BB384A078; Wed, 26 Oct 2022 15:14:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E7BB384A078 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666797296; bh=Bz2g9+qqo0vWpJSoqw5k00rVxnviOHNO34jJnSdJjg0=; h=From:To:Subject:Date:From; b=M2BdB6tE5Q16XJNmRMBItXljE2OlESZNP7gb03XR24O81lFAa3AJsJINhrYFmyEIA YirILutuQeA5QqvA/cCLkN3UmcUME0gOlKo+W6LQ7ow9Gvq8KLjqwi+3YNX+uATfYF +YYGnqphbSvHYOTQUFq8OVMDsJezc6qHDp/bIkyQ= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] aarch64: morello: define PROT_MAX X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: 909759bc11edf5ce396a384bcc3f9d7c465f14a4 X-Git-Newrev: c47a360d0167266a2de87eac956f04c1d5ddac5f Message-Id: <20221026151456.6E7BB384A078@sourceware.org> Date: Wed, 26 Oct 2022 15:14:56 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c47a360d0167266a2de87eac956f04c1d5ddac5f commit c47a360d0167266a2de87eac956f04c1d5ddac5f Author: Szabolcs Nagy Date: Fri Oct 21 12:10:11 2022 +0100 aarch64: morello: define PROT_MAX Specifies the prot flags a mapping may gain via mprotect or MAP_FIXED. On CHERI targets this is used to get capability with more permissions than the original mmap protection would imply. Diff: --- sysdeps/unix/sysv/linux/aarch64/bits/mman.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/mman.h b/sysdeps/unix/sysv/linux/aarch64/bits/mman.h index d7ac2fa993..8dbd8d6819 100644 --- a/sysdeps/unix/sysv/linux/aarch64/bits/mman.h +++ b/sysdeps/unix/sysv/linux/aarch64/bits/mman.h @@ -25,6 +25,9 @@ #define PROT_BTI 0x10 #define PROT_MTE 0x20 +#ifdef __CHERI_PURE_CAPABILITY__ +# define PROT_MAX(prot) ((prot) << 16) +#endif #include