public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/arm/morello/main] aarch64: morello: define PROT_MAX
@ 2022-11-23 14:43 Szabolcs Nagy
  0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-11-23 14:43 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2b0a2bff6091ad255a94d9905cdaccdaaddbd927

commit 2b0a2bff6091ad255a94d9905cdaccdaaddbd927
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
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 <bits/mman-map-flags-generic.h>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [glibc/arm/morello/main] aarch64: morello: define PROT_MAX
@ 2022-10-27 13:53 Szabolcs Nagy
  0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-10-27 13:53 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f3dfce19234c08bc08f324097ae22e5095ebabdd

commit f3dfce19234c08bc08f324097ae22e5095ebabdd
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
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 <bits/mman-map-flags-generic.h>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [glibc/arm/morello/main] aarch64: morello: define PROT_MAX
@ 2022-10-26 15:14 Szabolcs Nagy
  0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-10-26 15:14 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c47a360d0167266a2de87eac956f04c1d5ddac5f

commit c47a360d0167266a2de87eac956f04c1d5ddac5f
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
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 <bits/mman-map-flags-generic.h>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [glibc/arm/morello/main] aarch64: morello: define PROT_MAX
@ 2022-10-26 14:49 Szabolcs Nagy
  0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-10-26 14:49 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=418ede06d733e2388decf9a2b9f60674463d14d1

commit 418ede06d733e2388decf9a2b9f60674463d14d1
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
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 <bits/mman-map-flags-generic.h>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-23 14:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-23 14:43 [glibc/arm/morello/main] aarch64: morello: define PROT_MAX Szabolcs Nagy
  -- strict thread matches above, loose matches on Subject: below --
2022-10-27 13:53 Szabolcs Nagy
2022-10-26 15:14 Szabolcs Nagy
2022-10-26 14:49 Szabolcs Nagy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).