[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YRPLXFZxLVUjE5pr@kernel.org>
Date: Wed, 11 Aug 2021 16:06:36 +0300
From: Mike Rapoport <rppt@...nel.org>
To: Geert Uytterhoeven <geert+renesas@...der.be>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
David Hildenbrand <david@...hat.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] memblock: Check memory add/cap ordering
On Wed, Aug 11, 2021 at 10:55:18AM +0200, Geert Uytterhoeven wrote:
> For memblock_cap_memory_range() to work properly, it should be called
> after memory is detected and added to memblock with memblock_add() or
> memblock_add_node(). If memblock_cap_memory_range() would be called
> before memory is registered, we may silently corrupt memory later
> because the crash kernel will see all memory as available.
>
> Print a warning and bail out if ordering is not satisfied.
>
> Suggested-by: Mike Rapoport <rppt@...nel.org>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
Applied for 5.15,
Thanks!
--
Sincerely yours,
Mike.
Powered by blists - more mailing lists