Re: [PATCH mm-unstable] mm/kasan: use SLAB_NO_MERGE flag instead of an empty constructor
From: Andrey Ryabinin
Date: Thu Mar 20 2025 - 12:44:43 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.
>
> The SLAB_NO_MERGE flag should be used with caution, but in this case,
> it is acceptable as the cache is intended solely for debugging purposes.
>
> No functional changes intended.
>
> Signed-off-by: Harry Yoo <harry.yoo@xxxxxxxxxx>
Acked-by: Andrey Ryabinin <ryabinin.a.a@xxxxxxxxx>