>From 79409d2a038e0e738ca65ca2b6d9e352c69c6432 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 19 Dec 2021 20:55:06 +0000 Subject: [PATCH 11/20] sys/prctl.h: add PR_SPEC_L1D_FLUSH from linux v5.15 New argument for PR_{GET,SET}_SPECULATION_CTRL prctl command, see linux commit e893bb1bb4d2eb635eba61e5d9c5135d96855773 x86, prctl: Hook L1D flushing in via prctl --- include/sys/prctl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sys/prctl.h b/include/sys/prctl.h index a0c2436e..d323c0a9 100644 --- a/include/sys/prctl.h +++ b/include/sys/prctl.h @@ -140,6 +140,7 @@ struct prctl_mm_map { #define PR_SET_SPECULATION_CTRL 53 #define PR_SPEC_STORE_BYPASS 0 #define PR_SPEC_INDIRECT_BRANCH 1 +#define PR_SPEC_L1D_FLUSH 2 #define PR_SPEC_NOT_AFFECTED 0 #define PR_SPEC_PRCTL (1UL << 0) #define PR_SPEC_ENABLE (1UL << 1) -- 2.35.1