Skip to content

Commit facaa13

Browse files
jgoulywilldeacon
authored andcommitted
arm64: re-order MTE VM_ flags
VM_PKEY_BIT[012] will use VM_HIGH_ARCH_[012], move the MTE VM flags to accommodate this. Signed-off-by: Joey Gouly <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Acked-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent bf83dae commit facaa13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/mm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ extern unsigned int kobjsize(const void *objp);
378378
#endif
379379

380380
#if defined(CONFIG_ARM64_MTE)
381-
# define VM_MTE VM_HIGH_ARCH_0 /* Use Tagged memory for access control */
382-
# define VM_MTE_ALLOWED VM_HIGH_ARCH_1 /* Tagged memory permitted */
381+
# define VM_MTE VM_HIGH_ARCH_4 /* Use Tagged memory for access control */
382+
# define VM_MTE_ALLOWED VM_HIGH_ARCH_5 /* Tagged memory permitted */
383383
#else
384384
# define VM_MTE VM_NONE
385385
# define VM_MTE_ALLOWED VM_NONE

0 commit comments

Comments
 (0)