Re: [PATCH v2 12/37] kasan, arm64: only init shadow for software modes

From: Catalin Marinas
Date: Thu Sep 17 2020 - 13:05:47 EST

On Tue, Sep 15, 2020 at 11:15:54PM +0200, Andrey Konovalov wrote:
> This is a preparatory commit for the upcoming addition of a new hardware
> tag-based (MTE-based) KASAN mode.
> Hardware tag-based KASAN won't be using shadow memory. Only initialize
> it when one of the software KASAN modes are enabled.
> No functional changes for software modes.
> Signed-off-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx>
> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@xxxxxxx>

Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>