Re: [PATCH] lkdtm: use SLAB_NO_MERGE instead of an empty constructor
From: Kees Cook
Date: Wed Apr 09 2025 - 12:20:23 EST
On Tue, 18 Mar 2025 10:45:33 +0900, Harry Yoo 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 soley for debugging purposes.
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] lkdtm: use SLAB_NO_MERGE instead of an empty constructor
https://git.kernel.org/kees/c/9891398efae8
Take care,
--
Kees Cook