From: Andrew Morton <akpm@linux-foundation.org>
To: Mike Rapoport <rppt@kernel.org>
Cc: alfalco@gmail.com, Borislav Petkov <bp@alien8.de>,
Mike Rapoport <rppt@linux.ibm.com>,
robert.shteynfeld@gmail.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm/page_alloc: fix memory map initialization for descending nodes
Date: Thu, 24 Jun 2021 13:57:23 -0700 [thread overview]
Message-ID: <20210624135723.3b2b25de43e22ab4275ea273@linux-foundation.org> (raw)
In-Reply-To: <20210624062305.10940-1-rppt@kernel.org>
On Thu, 24 Jun 2021 09:23:05 +0300 Mike Rapoport <rppt@kernel.org> wrote:
> From: Mike Rapoport <rppt@linux.ibm.com>
>
> On systems with memory nodes sorted in descending order, for instance
> Dell Precision WorkStation T5500, the struct pages for higher PFNs and
> respectively lower nodes, could be overwritten by the initialization of
> struct pages corresponding to the holes in the memory sections.
>
> For example for the below memory layout
>
> [ 0.245624] Early memory node ranges
> [ 0.248496] node 1: [mem 0x0000000000001000-0x0000000000090fff]
> [ 0.251376] node 1: [mem 0x0000000000100000-0x00000000dbdf8fff]
> [ 0.254256] node 1: [mem 0x0000000100000000-0x0000001423ffffff]
> [ 0.257144] node 0: [mem 0x0000001424000000-0x0000002023ffffff]
>
> the range 0x1424000000 - 0x1428000000 in the beginning of node 0 starts in
> the middle of a section and will be considered as a hole during the
> initialization of the last section in node 1.
>
> Reorder order of the memory map initialization so that the outer loop will
> always iterate over populated memory regions in the ascending order and the
> inner loop will select the zone corresponding to the PFN range.
>
> This way initialization of the struct pages for the memory holes will
> be always done for the ranges that are actually not populated.
Changelog doesn't tell us what are the user-visible effects of the bug.
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=213073
But that does. Panic during boot.
> Fixes: 0740a50b9baa ("mm/page_alloc.c: refactor initialization of struct page for holes in memory layout")
> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
So I think we want a cc:stable here?
next prev parent reply other threads:[~2021-06-24 20:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-24 6:23 Mike Rapoport
2021-06-24 20:57 ` Andrew Morton [this message]
2021-06-25 14:16 ` Mike Rapoport
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210624135723.3b2b25de43e22ab4275ea273@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=alfalco@gmail.com \
--cc=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=robert.shteynfeld@gmail.com \
--cc=rppt@kernel.org \
--cc=rppt@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox