arm64-kasan-align-allocations-for-hw_tags.patch removed from -mm tree
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.
Link https://lkml.kernel.org/r/fe64131606b1c2aabfd34ae99554c0d9df18eb19.1606161801.git.andreyknvl@google.com open here
Signed-off-by Andrey Konovalov <[email protected]>
Signed-off-by Vincenzo Frascino <[email protected]>
Reviewed-by Catalin Marinas <[email protected]>
Reviewed-by Alexander Potapenko <[email protected]>
Tested-by Vincenzo Frascino <[email protected]>
Cc Andrey Ryabinin <[email protected]>
Cc Branislav Rankov <[email protected]>
Cc Dmitry Vyukov <[email protected]>
Cc Evgenii Stepanov <[email protected]>
Cc Kevin Brodsky <[email protected]>
Cc Marco Elver <[email protected]>
Cc Vasily Gorbik <[email protected]>
Cc Will Deacon <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
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