Re: [PATCH v2 29/37] arm64: kasan: Align allocations for HW_TAGS
From: Catalin Marinas
Date: Thu Sep 17 2020 - 13:08:14 EST
On Tue, Sep 15, 2020 at 11:16:11PM +0200, Andrey Konovalov wrote:
> 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.
>
> Signed-off-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx>
> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@xxxxxxx>
Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>