diff options
author | Szabolcs Nagy <nsz@port70.net> | 2018-06-09 21:23:54 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-06-19 13:27:08 -0400 |
commit | da9f2b2ac8d91e556125d5b0f94830f88f1bc487 (patch) | |
tree | 15c859759044c668b2dc7461ff5656d976e8a8d7 /include/sys | |
parent | 5b85ed5cec915a2f1c23170e59b0658986c0ade4 (diff) | |
download | musl-da9f2b2ac8d91e556125d5b0f94830f88f1bc487.tar.gz musl-da9f2b2ac8d91e556125d5b0f94830f88f1bc487.tar.bz2 musl-da9f2b2ac8d91e556125d5b0f94830f88f1bc487.tar.xz musl-da9f2b2ac8d91e556125d5b0f94830f88f1bc487.zip |
add speculation control prctls from linux v4.17
PR_{SET,GET}_SPECULATION_CTRL controls speculation related vulnerability
mitigations, new in commits
b617cfc858161140d69cc0b5cc211996b557a1c7
356e4bfff2c5489e016fdb925adbf12a1e3950ee
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/prctl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sys/prctl.h b/include/sys/prctl.h index aa0c7a88..af76408c 100644 --- a/include/sys/prctl.h +++ b/include/sys/prctl.h @@ -136,6 +136,15 @@ struct prctl_mm_map { #define PR_SVE_VL_LEN_MASK 0xffff #define PR_SVE_VL_INHERIT (1 << 17) +#define PR_GET_SPECULATION_CTRL 52 +#define PR_SET_SPECULATION_CTRL 53 +#define PR_SPEC_STORE_BYPASS 0 +#define PR_SPEC_NOT_AFFECTED 0 +#define PR_SPEC_PRCTL (1UL << 0) +#define PR_SPEC_ENABLE (1UL << 1) +#define PR_SPEC_DISABLE (1UL << 2) +#define PR_SPEC_FORCE_DISABLE (1UL << 3) + int prctl (int, ...); #ifdef __cplusplus |