Re: [PATCH 5/5] kasan, mm: integrate slab init_on_free with HW_TAGS

From: Andrey Konovalov
Date: Mon Mar 08 2021 - 09:17:47 EST


On Mon, Mar 8, 2021 at 12:45 PM Marco Elver <elver@xxxxxxxxxx> wrote:
>
> >
> > - if (unlikely(slab_want_init_on_free(cachep)))
> > + /*
> > + * As memory initialization is integrated with hardware tag-based
>
> This may no longer be true if the HW-tags architecture doesn't support
> init (although currently it is certainly true).
>
> Perhaps: "As memory initialization may be accelerated by some KASAN
> implementations (such as some HW_TAGS architectures) ..."
>
> or whatever else is appropriate.

Will change the comment here and in other patches, thanks!