From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id A21D33853572; Wed, 26 Oct 2022 14:49:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A21D33853572 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666795743; bh=g3aE5azaxjwM7E8ywCKXpB8DQxFYQQMCZrC38ovAvyg=; h=From:To:Subject:Date:From; b=VA5H4nA1wDs9sNFQahIDnBkr4upBVsex0OsPOdQLifPpc3CHwewhXuv9zvq1HBFjc WobdrjO+oVIx8vZzj95PflAo4e2cS0x6p1rSHElQ3ctpPsapjbEwycK5XNpaAYUXf7 vHlq9ZOEoOaWeVrx6/jqo89Vz7D6O0igjKfCAJNA= 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: dac0b184e7affbcdb11c3bfaef7d03bf3b0bfe28 X-Git-Newrev: 418ede06d733e2388decf9a2b9f60674463d14d1 Message-Id: <20221026144903.A21D33853572@sourceware.org> Date: Wed, 26 Oct 2022 14:49:03 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=418ede06d733e2388decf9a2b9f60674463d14d1 commit 418ede06d733e2388decf9a2b9f60674463d14d1 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