![]() |
|
Message-ID: <CAA4tuqezaDy9aWRpA0PL6SreKw7V5eW1qTeQFy7aUUZLAm7Pdg@mail.gmail.com> Date: Wed, 12 Feb 2025 11:03:15 -0800 From: appujee <appujee@...gle.com> To: musl@...ts.openwall.com Subject: Update sys/prctl.h to v6.10 kernel headers Updating sys/prctl based on https://android.googlesource.com/platform/bionic/+/refs/heads/main/libc/kernel/uapi/linux/prctl.h Best, -Aditya >From d9f8eee52f28a2c78bfe59efb32ea6440f246a2c Mon Sep 17 00:00:00 2001 From: Aditya Kumar <appujee@...gle.com> Date: Wed, 12 Feb 2025 10:42:30 -0800 Subject: [PATCH] Update sys/prctl.h to v6.10 kernel headers --- include/sys/prctl.h | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/include/sys/prctl.h b/include/sys/prctl.h index 087a75c9..8a8bb31a 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) @@ -177,6 +178,56 @@ struct prctl_mm_map { #define PR_PAC_SET_ENABLED_KEYS 60 #define PR_PAC_GET_ENABLED_KEYS 61 +#define PR_SCHED_CORE 62 +#define PR_SCHED_CORE_GET 0 +#define PR_SCHED_CORE_CREATE 1 +#define PR_SCHED_CORE_SHARE_TO 2 +#define PR_SCHED_CORE_SHARE_FROM 3 +#define PR_SCHED_CORE_MAX 4 +#define PR_SCHED_CORE_SCOPE_THREAD 0 +#define PR_SCHED_CORE_SCOPE_THREAD_GROUP 1 +#define PR_SCHED_CORE_SCOPE_PROCESS_GROUP 2 +#define PR_SME_SET_VL 63 +#define PR_SME_SET_VL_ONEXEC (1 << 18) +#define PR_SME_GET_VL 64 +#define PR_SME_VL_LEN_MASK 0xffff +#define PR_SME_VL_INHERIT (1 << 17) +#define PR_SET_MDWE 65 +#define PR_MDWE_REFUSE_EXEC_GAIN (1UL << 0) +#define PR_MDWE_NO_INHERIT (1UL << 1) +#define PR_GET_MDWE 66 +#define PR_SET_VMA 0x53564d41 +#define PR_SET_VMA_ANON_NAME 0 +#define PR_GET_AUXV 0x41555856 +#define PR_SET_MEMORY_MERGE 67 +#define PR_GET_MEMORY_MERGE 68 +#define PR_RISCV_V_SET_CONTROL 69 +#define PR_RISCV_V_GET_CONTROL 70 +#define PR_RISCV_V_VSTATE_CTRL_DEFAULT 0 +#define PR_RISCV_V_VSTATE_CTRL_OFF 1 +#define PR_RISCV_V_VSTATE_CTRL_ON 2 +#define PR_RISCV_V_VSTATE_CTRL_INHERIT (1 << 4) +#define PR_RISCV_V_VSTATE_CTRL_CUR_MASK 0x3 +#define PR_RISCV_V_VSTATE_CTRL_NEXT_MASK 0xc +#define PR_RISCV_V_VSTATE_CTRL_MASK 0x1f +#define PR_RISCV_SET_ICACHE_FLUSH_CTX 71 +#define PR_RISCV_CTX_SW_FENCEI_ON 0 +#define PR_RISCV_CTX_SW_FENCEI_OFF 1 +#define PR_RISCV_SCOPE_PER_PROCESS 0 +#define PR_RISCV_SCOPE_PER_THREAD 1 +#define PR_PPC_GET_DEXCR 72 +#define PR_PPC_SET_DEXCR 73 +#define PR_PPC_DEXCR_SBHE 0 +#define PR_PPC_DEXCR_IBRTPD 1 +#define PR_PPC_DEXCR_SRAPD 2 +#define PR_PPC_DEXCR_NPHIE 3 +#define PR_PPC_DEXCR_CTRL_EDITABLE 0x1 +#define PR_PPC_DEXCR_CTRL_SET 0x2 +#define PR_PPC_DEXCR_CTRL_CLEAR 0x4 +#define PR_PPC_DEXCR_CTRL_SET_ONEXEC 0x8 +#define PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC 0x10 +#define PR_PPC_DEXCR_CTRL_MASK 0x1f + int prctl (int, ...); #ifdef __cplusplus -- 2.48.1.502.g6dc24dfdaf-goog
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.