Re: [PATCH mm-unstable] mm/kasan: use SLAB_NO_MERGE flag instead of an empty constructor

From: Alexander Potapenko
Date: Tue Mar 18 2025 - 05:59:02 EST


On Tue, Mar 18, 2025 at 2:59 AM Harry Yoo <harry.yoo@xxxxxxxxxx> wrote:
>
> Use SLAB_NO_MERGE flag to prevent merging instead of providing an
> empty constructor. Using an empty constructor in this manner is an abuse
> of slab interface.

This code predated the existence of SLAB_NO_MERGE. Thanks for fixing this!

>
> Signed-off-by: Harry Yoo <harry.yoo@xxxxxxxxxx>

Reviewed-by: Alexander Potapenko <glider@xxxxxxxxxx>