]> granicus.if.org Git - musl/commitdiff
sys/prctl.h: add PR_SPEC_DISABLE_NOEXEC from linux v5.1
authorSzabolcs Nagy <nsz@port70.net>
Thu, 9 May 2019 18:59:51 +0000 (18:59 +0000)
committerRich Felker <dalias@aerifal.cx>
Mon, 1 Jul 2019 18:12:06 +0000 (14:12 -0400)
allows specifying that the speculative store bypass disable bit should
be cleared on exec. see

  linux commit 71368af9027f18fe5d1c6f372cfdff7e4bde8b48
  x86/speculation: Add PR_SPEC_DISABLE_NOEXEC

include/sys/prctl.h

index 9cc3a80eb3ee3ef9bef69e0fcd121d958a864c73..07f0d73dc78a5c0e38d1afa94eaf6698178165a1 100644 (file)
@@ -145,6 +145,7 @@ struct prctl_mm_map {
 #define PR_SPEC_ENABLE (1UL << 1)
 #define PR_SPEC_DISABLE (1UL << 2)
 #define PR_SPEC_FORCE_DISABLE (1UL << 3)
+#define PR_SPEC_DISABLE_NOEXEC (1UL << 4)
 
 #define PR_PAC_RESET_KEYS       54
 #define PR_PAC_APIAKEY (1UL << 0)