Re: [PATCH v4] mm: fix accounting of memmap pages
From: Andrew Morton
Date: Thu Aug 21 2025 - 00:55:04 EST
On Fri, 8 Aug 2025 16:23:52 +0200 David Hildenbrand <david@xxxxxxxxxx> wrote:
> > @@ -567,6 +564,8 @@ static void __init sparse_init_nid(int nid, unsigned long pnum_begin,
> > sparse_buffer_fini();
> > goto failed;
> > }
> > + memmap_boot_pages_add(DIV_ROUND_UP(PAGES_PER_SECTION * sizeof(struct page),
> > + PAGE_SIZE));
>
> IIRC, we can have partially populated boot sections, where only some
> subsections actually have a memmap ... so this calculation is possibly
> wrong in some cases.
The patch (which has cc:stable!) has been in state "stuck" for 12 days
due to "possibly wrong". Could someone please find a way to get it
unstuck?