Conversation

slab: support for compiler-assisted type-based slab cache partitioning

@melver posted a kernel patch that provides an alternative mode to RANDOM_KMALLOC_CACHES called TYPED_KMALLOC_CACHES.

The new mode leverages a Clang 22 feature called "allocation tokens". Unlike RANDOM_KMALLOC_CACHES, this mode deterministically assigns caches to allocations based on their types, and not allocation sites.

https://lore.kernel.org/all/20260331111240.153913-1-elver@google.com/

1
5
1
@linkersec @melver /me piggybacks on Marco's nice security enhancement work with little effort blobcatpaw
0
0
2
@ConstellationUnion @melver @linkersec I don't get your question :)
0
0
0