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 <alex.popov@xxxxxxxxx> > Reviewed-by: Alexander Potapenko <glider@xxxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx>