]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lkdtm: use SLAB_NO_MERGE instead of an empty constructor
authorHarry Yoo <harry.yoo@oracle.com>
Tue, 18 Mar 2025 01:45:33 +0000 (10:45 +0900)
committerKees Cook <kees@kernel.org>
Mon, 28 Apr 2025 17:32:43 +0000 (10:32 -0700)
commit28cd28a752058bf98b38013039bbde81df48b932
treeee7f9f227344a22abdd965405a72f4a3379a43c1
parentb4432656b36e5cc1d50a1f2dc15357543add530e
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: Harry Yoo <harry.yoo@oracle.com>
Link: https://lore.kernel.org/r/20250318014533.1624852-1-harry.yoo@oracle.com
Signed-off-by: Kees Cook <kees@kernel.org>
drivers/misc/lkdtm/heap.c