Skip to content

Commit b1fabef

Browse files
LeviYeoReumctmarinas
authored andcommitted
prctl: Introduce PR_MTE_STORE_ONLY
PR_MTE_STORE_ONLY is used to restrict the MTE tag check for store opeartion only. Signed-off-by: Yeoreum Yun <[email protected]> Reviewed-by: Mark Brown <[email protected]> Tested-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 33e943a commit b1fabef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/uapi/linux/prctl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ struct prctl_mm_map {
244244
# define PR_MTE_TAG_MASK (0xffffUL << PR_MTE_TAG_SHIFT)
245245
/* Unused; kept only for source compatibility */
246246
# define PR_MTE_TCF_SHIFT 1
247+
/* MTE tag check store only */
248+
# define PR_MTE_STORE_ONLY (1UL << 19)
247249
/* RISC-V pointer masking tag length */
248250
# define PR_PMLEN_SHIFT 24
249251
# define PR_PMLEN_MASK (0x7fUL << PR_PMLEN_SHIFT)

0 commit comments

Comments
 (0)