Commit 28cd28a7 authored by Harry Yoo's avatar Harry Yoo Committed by Kees Cook
Browse files

lkdtm: use SLAB_NO_MERGE instead of an empty constructor



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.

No functional changes intended.

Signed-off-by: default avatarHarry Yoo <harry.yoo@oracle.com>
Link: https://lore.kernel.org/r/20250318014533.1624852-1-harry.yoo@oracle.com


Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent b4432656
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment