slab: support for compiler-assisted type-based slab cache partitioning @melver p...

@linkersec@infosec.exchange

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.

lore.kernel.org/all/2026033111