Patch "mm/memblock.c: reversed logic in memblock_discard()" has been added to the 4.12-stable tree
This is a note to let you know that I've just added the patch titled
mm/memblock.c: reversed logic in memblock_discard()
to the 4.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mm-memblock.c-reversed-logic-in-memblock_discard.patch
and it can be found in the queue-4.12 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
91b540f98872a206ea1c49e4aa6ea8eed0886644Mon Sep 17 00:00:00 2001
From: Pavel Tatashin <[email protected]>
Date: Fri, 25 Aug 2017 15:55:46 -0700
Subject: mm/memblock.c: reversed logic in memblock_discard()
From: Pavel Tatashin <[email protected]>
commit 91b540f98872a206ea1c49e4aa6ea8eed0886644 upstream.
In recently introduced memblock_discard() there is a reversed logic bug. Memory is freed of static array instead of dynamically allocated one.
--- mm/memblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memblock.c +1 -1
@@ -302,7 +302,7 @@ void __init memblock_discard(void)__memblock_free_late (addr, size); } -if (memblock.memory.regions == memblock_memory_init_regions) { +if (memblock.memory.regions != memblock_memory_init_regions) { addr =__pa (memblock.memory.regions); size =PAGE_ALIGN (sizeof (struct memblock_region ) * memblock.memory.max);
Patches currently in stable-queue which might be from [email protected] are
queue-4.12/mm-memblock.c-reversed-logic-in-memblock_discard.patch