X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Fuapi%2Flinux%2Fprctl.h;h=c0202187cbef531e55ee2978e9e876c44a634ed5;hb=e29928d4e84f9333c11f324516d991c399277e8f;hp=51858b439c23c45a8e9d13ae1ede48c307d58b97;hpb=99c55932c5a03b992320668ca3e48182f2922a43;p=mirror_ubuntu-artful-kernel.git diff --git a/include/uapi/linux/prctl.h b/include/uapi/linux/prctl.h index 51858b439c23..c0202187cbef 100644 --- a/include/uapi/linux/prctl.h +++ b/include/uapi/linux/prctl.h @@ -197,6 +197,18 @@ struct prctl_mm_map { # define PR_CAP_AMBIENT_LOWER 3 # define PR_CAP_AMBIENT_CLEAR_ALL 4 +/* Per task speculation control */ +#define PR_GET_SPECULATION_CTRL 52 +#define PR_SET_SPECULATION_CTRL 53 +/* Speculation control variants */ +# define PR_SPEC_STORE_BYPASS 0 +/* Return and control values for PR_SET/GET_SPECULATION_CTRL */ +# 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) + /* * Control the LSM specific peer information *