Re: [GIT PULL] Networking for v6.13-rc7
From: Jakub Kicinski
Date: Mon Jan 20 2025 - 12:47:38 EST
On Mon, 20 Jan 2025 14:51:13 +0000 Catalin Marinas wrote:
> > +#include <linux/kmemleak.h>
> > #include <linux/memblock.h>
> > #include <linux/printk.h>
> > #include <linux/numa.h>
> > @@ -23,6 +24,9 @@ void __init alloc_node_data(int nid)
> > nd_size, nid);
> > nd = __va(nd_pa);
> >
> > + /* needed to track related allocation stored in node_data[] */
> > + kmemleak_alloc(nd, nd_size, 0, 0);
> > +
> > /* report and initialize */
> > pr_info("NODE_DATA(%d) allocated [mem %#010Lx-%#010Lx]\n", nid,
> > nd_pa, nd_pa + nd_size - 1);
>
> Hmm, I don't think this would make any difference as kmemleak does scan
> the memblock allocations as long as they have a correspondent VA in the
> linear map.
>
> BTW, is NUMA enabled or disabled in your .config?
It's pretty much kernel/configs/debug.config, with virtme-ng, booted
with 4 CPUs. LMK if you can't repro with that, I can provide exact
cmdline.