Re: [PATCH 5/5] [DEBUG] slab: Report number of NULLings

2025-04-04 Thread Christoph Lameter (Ampere)
On Fri, 21 Mar 2025, Kees Cook wrote: > diff --git a/include/linux/slab.h b/include/linux/slab.h > index 2717ad238fa2..a4740c8b6ccb 100644 > --- a/include/linux/slab.h > +++ b/include/linux/slab.h > @@ -469,6 +469,8 @@ void __kfree(const void *objp); > void __kfree_sensitive(const void *objp); >

Re: [PATCH] mm/slab: Achieve better kmalloc caches randomization in kvmalloc

2025-01-22 Thread Christoph Lameter (Ampere)
On Wed, 22 Jan 2025, GONG Ruiqi wrote: > > +void *__kmalloc_node_inline(size_t size, kmem_buckets *b, gfp_t flags, > + int node, unsigned long caller); > + Huh? Is this inline? Where is the body of the function? > diff --git a/mm/slub.c b/mm/slub.c > index c2151c9fee

Re: [PATCH v3] slab: Introduce kmalloc_obj() and family

2024-08-28 Thread Christoph Lameter (Ampere)
On Tue, 27 Aug 2024, Kees Cook wrote: > > Since that could be feasible to apply only if Linus ran that directly > > himself, including him now. Because doing it any other way would leave us > > semi-converted forever and not bring the full benefits? > > Right -- I'd want to do a mass conversion an

Re: [RFC][PATCH 0/4] slab: Allow for type introspection during allocation

2024-07-09 Thread Christoph Lameter (Ampere)
On Mon, 8 Jul 2024, Kees Cook wrote: obj = kmalloc(obj, gfp); Could we avoid repeating "obj" in this pattern? F.e. KMALLOC(obj, gfp); instead?

Re: [PATCH v2 09/21] mm/slab: remove mm/slab.c and slab_def.h

2023-11-22 Thread Christoph Lameter
On Mon, 20 Nov 2023, Vlastimil Babka wrote: Remove the SLAB implementation. Update CREDITS. Also update and properly sort the SLOB entry there. RIP SLAB allocator (1996 - 2024) Reviewed-by: Kees Cook Signed-off-by: Vlastimil Babka Acked-by: Christoph Lameter