Re: [PATCH v4 2/6] mm/slab: Plumb kmem_buckets into __do_kmalloc_node()

2024-06-04 Thread Vlastimil Babka
On 6/4/24 12:44 AM, Kees Cook wrote: > On Mon, Jun 03, 2024 at 07:06:15PM +0200, Vlastimil Babka wrote: >> On 5/31/24 9:14 PM, Kees Cook wrote: >> > Introduce CONFIG_SLAB_BUCKETS which provides the infrastructure to >> > support separated kmalloc buckets (in the follow kmem_buckets_create() >> > pa

Re: [PATCH v4 2/6] mm/slab: Plumb kmem_buckets into __do_kmalloc_node()

2024-06-03 Thread Kees Cook
On Mon, Jun 03, 2024 at 07:06:15PM +0200, Vlastimil Babka wrote: > On 5/31/24 9:14 PM, Kees Cook wrote: > > Introduce CONFIG_SLAB_BUCKETS which provides the infrastructure to > > support separated kmalloc buckets (in the follow kmem_buckets_create() > > patches and future codetag-based separation).

Re: [PATCH v4 2/6] mm/slab: Plumb kmem_buckets into __do_kmalloc_node()

2024-06-03 Thread Vlastimil Babka
On 5/31/24 9:14 PM, Kees Cook wrote: > Introduce CONFIG_SLAB_BUCKETS which provides the infrastructure to > support separated kmalloc buckets (in the follow kmem_buckets_create() > patches and future codetag-based separation). Since this will provide > a mitigation for a very common case of exploit

[PATCH v4 2/6] mm/slab: Plumb kmem_buckets into __do_kmalloc_node()

2024-05-31 Thread Kees Cook
Introduce CONFIG_SLAB_BUCKETS which provides the infrastructure to support separated kmalloc buckets (in the follow kmem_buckets_create() patches and future codetag-based separation). Since this will provide a mitigation for a very common case of exploits, enable it by default. To be able to choos