Re: [PATCH v2 05/37] kasan: rename KASAN_SHADOW_* to KASAN_GRANULE_*

From: Andrey Konovalov
Date: Fri Sep 18 2020 - 06:43:08 EST


On Fri, Sep 18, 2020 at 10:04 AM 'Alexander Potapenko' via kasan-dev
<kasan-dev@xxxxxxxxxxxxxxxx> wrote:
>
> On Tue, Sep 15, 2020 at 11:16 PM Andrey Konovalov <andreyknvl@xxxxxxxxxx> wrote:
> >
> > This is a preparatory commit for the upcoming addition of a new hardware
> > tag-based (MTE-based) KASAN mode.
> >
> > The new mode won't be using shadow memory, but will still use the concept
> > of memory granules.
>
> KASAN documentation doesn't seem to explain this concept anywhere (I
> also checked the "kasan: add documentation for hardware tag-based
> mode" patch), looks like it's only mentioned in MTE documentation.
> Could you please elaborate on what we consider a granule in each of KASAN modes?

Sure, will do in v3, thanks!