public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Add MFD_NOEXEC_SEAL, MFD_EXEC from Linux 6.3 to bits/mman-shared.h
@ 2023-05-17 23:03 Joseph Myers
  2023-05-25 21:35 ` Ping " Joseph Myers
  2023-05-26  6:49 ` Florian Weimer
  0 siblings, 2 replies; 3+ messages in thread
From: Joseph Myers @ 2023-05-17 23:03 UTC (permalink / raw)
  To: libc-alpha

Linux 6.3 adds new constants MFD_NOEXEC_SEAL and MFD_EXEC.  Add these
to bits/mman-shared.h (conditional on MFD_NOEXEC_SEAL not already
being defined, similar to the existing conditional on the older MFD_*
macros).

Tested for x86_64.

diff --git a/sysdeps/unix/sysv/linux/bits/mman-shared.h b/sysdeps/unix/sysv/linux/bits/mman-shared.h
index 91f2cad00f..6684a84a26 100644
--- a/sysdeps/unix/sysv/linux/bits/mman-shared.h
+++ b/sysdeps/unix/sysv/linux/bits/mman-shared.h
@@ -32,6 +32,10 @@
 #  define MFD_ALLOW_SEALING 2U
 #  define MFD_HUGETLB 4U
 # endif
+# ifndef MFD_NOEXEC_SEAL
+#  define MFD_NOEXEC_SEAL 8U
+#  define MFD_EXEC 0x10U
+# endif
 
 /* Flags for mlock2.  */
 # ifndef MLOCK_ONFAULT

-- 
Joseph S. Myers
joseph@codesourcery.com

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

* Ping Re: Add MFD_NOEXEC_SEAL, MFD_EXEC from Linux 6.3 to bits/mman-shared.h
  2023-05-17 23:03 Add MFD_NOEXEC_SEAL, MFD_EXEC from Linux 6.3 to bits/mman-shared.h Joseph Myers
@ 2023-05-25 21:35 ` Joseph Myers
  2023-05-26  6:49 ` Florian Weimer
  1 sibling, 0 replies; 3+ messages in thread
From: Joseph Myers @ 2023-05-25 21:35 UTC (permalink / raw)
  To: libc-alpha

Ping.  This patch 
<https://sourceware.org/pipermail/libc-alpha/2023-May/148238.html> is 
pending review.

-- 
Joseph S. Myers
joseph@codesourcery.com

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

* Re: Add MFD_NOEXEC_SEAL, MFD_EXEC from Linux 6.3 to bits/mman-shared.h
  2023-05-17 23:03 Add MFD_NOEXEC_SEAL, MFD_EXEC from Linux 6.3 to bits/mman-shared.h Joseph Myers
  2023-05-25 21:35 ` Ping " Joseph Myers
@ 2023-05-26  6:49 ` Florian Weimer
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Weimer @ 2023-05-26  6:49 UTC (permalink / raw)
  To: Joseph Myers; +Cc: libc-alpha

* Joseph Myers:

> diff --git a/sysdeps/unix/sysv/linux/bits/mman-shared.h b/sysdeps/unix/sysv/linux/bits/mman-shared.h
> index 91f2cad00f..6684a84a26 100644
> --- a/sysdeps/unix/sysv/linux/bits/mman-shared.h
> +++ b/sysdeps/unix/sysv/linux/bits/mman-shared.h
> @@ -32,6 +32,10 @@
>  #  define MFD_ALLOW_SEALING 2U
>  #  define MFD_HUGETLB 4U
>  # endif
> +# ifndef MFD_NOEXEC_SEAL
> +#  define MFD_NOEXEC_SEAL 8U
> +#  define MFD_EXEC 0x10U
> +# endif
>  
>  /* Flags for mlock2.  */
>  # ifndef MLOCK_ONFAULT

Okay.

Thanks,
Florian


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

end of thread, other threads:[~2023-05-26  6:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-17 23:03 Add MFD_NOEXEC_SEAL, MFD_EXEC from Linux 6.3 to bits/mman-shared.h Joseph Myers
2023-05-25 21:35 ` Ping " Joseph Myers
2023-05-26  6:49 ` Florian Weimer

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).