slab: support for compiler-assisted type-based slab cache partitioning @melver p...
Linux Kernel Security @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.
https://lore.kernel.org/all/20260331111240.153913-1-elver@google.com/