Re: [PATCH] mm/slab: Perform init_on_free earlier
From: Joonsoo Kim
Date: Thu Dec 10 2020 - 20:19:54 EST
2020년 12월 11일 (금) 오전 3:37, Alexander Popov <alex.popov@xxxxxxxxx>님이 작성:
>
> 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: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx>