summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2019-05-09 18:59:51 +0000
committerRich Felker <dalias@aerifal.cx>2019-07-01 14:12:06 -0400
commitc7081edcf838d7bb830819a7de35737b1dd9755d (patch)
treef42c83a4c1521eaacca247037d99d548d8cab33d /include
parent9e8dd1c7f15147074949bda0c4478da6f4038824 (diff)
downloadmusl-c7081edcf838d7bb830819a7de35737b1dd9755d.tar.gz
musl-c7081edcf838d7bb830819a7de35737b1dd9755d.tar.bz2
musl-c7081edcf838d7bb830819a7de35737b1dd9755d.tar.xz
musl-c7081edcf838d7bb830819a7de35737b1dd9755d.zip
sys/prctl.h: add PR_SPEC_DISABLE_NOEXEC from linux v5.1
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
Diffstat (limited to 'include')
-rw-r--r--include/sys/prctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/prctl.h b/include/sys/prctl.h
index 9cc3a80e..07f0d73d 100644
--- a/include/sys/prctl.h
+++ b/include/sys/prctl.h
@@ -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)