2020-12-11 16:01:19

by David Rientjes

[permalink] [raw]
Subject: Re: [PATCH] mm/slab: Perform init_on_free earlier

On Thu, 10 Dec 2020, Alexander Popov wrote:

> Currently in CONFIG_SLAB init_on_free happens too late, and heap
> objects go to the heap quarantine not being erased.
>
> Lets move init_on_free clearing before calling kasan_slab_free().
> In that case heap quarantine will store erased objects, similarly
> to CONFIG_SLUB=y behavior.
>
> Signed-off-by: Alexander Popov <[email protected]>
> Reviewed-by: Alexander Potapenko <[email protected]>

Acked-by: David Rientjes <[email protected]>