Re: [PATCH v2 13/37] kasan, arm64: only use kasan_depth for software modes

From: Catalin Marinas
Date: Thu Sep 17 2020 - 14:37:55 EST


On Tue, Sep 15, 2020 at 11:15:55PM +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 use kasan_depth. Only define and use 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>