Re: [PATCH] mm/slab: Perform init_on_free earlier

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

Re: [PATCH] mm/slab: Perform init_on_free earlier

2020-12-10 Thread David Rientjes
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,