Skip to contentSkip to conversation

arm64-kasan-align-allocations-for-hw_tags.patch removed from -mm tree

merged [email protected] 1 participant 1 message Dec 23, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: arm64: kasan: align allocations for HW_TAGS
has been removed from the -mm tree. Its filename was
arm64-kasan-align-allocations-for-hw_tags.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Andrey Konovalov <[email protected]>
Subject: arm64: kasan: align allocations for HW_TAGS

Hardware tag-based KASAN uses the memory tagging approach, which requires all allocations to be aligned to the memory granule size. Align the allocations to MTE_GRANULE_SIZE via ARCH_SLAB_MINALIGN when CONFIG_KASAN_HW_TAGS is enabled.

---

 arch/arm64/include/asm/cache.h |    3 +++
 1 file changed, 3 insertions(+)
arch/arm64/include/asm/cache.h renamed from arch/arm64/include/asm/cache.h~arm64-kasan-align-allocations-for-hw_tags +3 -0
@@ -6,6 +6,7 @@
 #define __ASM_CACHE_H
 
 #include <asm/cputype.h>
+#include <asm/mte-kasan.h>
 
 #define CTR_L1IP_SHIFT		14
 #define CTR_L1IP_MASK		3
@@ -51,6 +52,8 @@
 
 #ifdef CONFIG_KASAN_SW_TAGS
 #define ARCH_SLAB_MINALIGN	(1ULL << KASAN_SHADOW_SCALE_SHIFT)
+#elif defined(CONFIG_KASAN_HW_TAGS)
+#define ARCH_SLAB_MINALIGN	MTE_GRANULE_SIZE
 #endif
 
 #ifndef __ASSEMBLY__

_

Patches currently in -mm which might be from [email protected] are