2020-12-12 00:01:30

by Joonsoo Kim

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

2020년 12월 11일 (금) 오전 3:37, Alexander Popov <[email protected]>님이 작성:
>
> 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: Joonsoo Kim <[email protected]>