Re: [syzbot] [mm?] [f2fs?] [exfat?] memory leak in __kfree_rcu_sheaf

Harry Yoo
2026-03-11T03:21:30Z

On Wed, Mar 11, 2026 at 12:04:36PM +0900, Harry Yoo wrote:
> > > > -----------8<-----------------------------------
> > > > diff --git a/mm/slub.c b/mm/slub.c
> > > > index 0c906fefc31b..401557ff5487 100644
> > > > --- a/mm/slub.c
> > > > +++ b/mm/slub.c
> > > > @@ -7513,6 +7513,7 @@ static void early_kmem_cache_node_alloc(int node)
> > > > slab->freelist = get_freepointer(kmem_cache_node, n);
> > > > slab->inuse = 1;
> > > > kmem_cache_node->node[node] = n;
> > > > + kmemleak_alloc(n, sizeof(*n), 1, GFP_NOWAIT);
>
> By the way, this should have been kmem_cache_node->object_size.
> Because... the length of kmem_cache_node.node array is not always
> MAX_NUMNODES (yeah, that's confusing).

Oops, please feel free to ignore this paragraph!
I was totally confused, it's not size of struct kmem_cache.

--
Cheers,
Harry / Hyeonggon