Re: [PATCH RFC v2 2/6] mm/slab: Perform init_on_free earlier

From: Alexander Popov
Date: Fri Dec 04 2020 - 06:55:31 EST


On 03.12.2020 23:49, Andrew Morton wrote:
> On Thu, 3 Dec 2020 22:50:27 +0300 Alexander Popov <alex.popov@xxxxxxxxx> wrote:
>
>> On 30.09.2020 15:50, Alexander Potapenko wrote:
>>> On Tue, Sep 29, 2020 at 8:35 PM Alexander Popov <alex.popov@xxxxxxxxx> wrote:
>>>>
>>>> Currently in CONFIG_SLAB init_on_free happens too late, and heap
>>>> objects go to the heap quarantine being dirty. Lets move memory
>>>> clearing before calling kasan_slab_free() to fix that.
>>>>
>>>> Signed-off-by: Alexander Popov <alex.popov@xxxxxxxxx>
>>> Reviewed-by: Alexander Potapenko <glider@xxxxxxxxxx>
>>
>> Hello!
>>
>> Can this particular patch be considered for the mainline kernel?
>
> All patches are considered ;) And merged if they're reviewed, tested,
> judged useful, etc.
>
> If you think this particular patch should be fast-tracked then please
> send it as a non-RFC, standalone patch. Please also enhance the
> changelog so that it actually explains what goes wrong. Presumably
> "objects go to the heap quarantine being dirty" causes some
> user-visible problem? What is that problem?

Ok, thanks!
I'll improve the commit message and send the patch separately.

Best regards,
Alexander