- memory_hotplug-always-initialize-pageblock-bitmap.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     memory_hotplug: always initialize pageblock bitmap.
has been removed from the -mm tree.  Its filename was
     memory_hotplug-always-initialize-pageblock-bitmap.patch

This patch was dropped because an updated version will be merged

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: memory_hotplug: always initialize pageblock bitmap.
From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>

Trying to online a new memory section that was added via memory hotplug
sometimes results in crashes when the new pages are added via __free_page. 
Reason for that is that the pageblock bitmap isn't initialized and hence
contains random stuff.  That means that get_pageblock_migratetype() returns
also random stuff and therefore

	list_add(&page->lru,
		 &zone->free_area[order].free_list[migratetype]);

in __free_one_page() tries to do a list_add to something that isn't even
necessarily a list.

This is only an issue for memory sections that get added after boot time since
all previously present memory sections allocate their pageblock bitmaps via
the bootmem allocator which in turn initializes just everything it returns.

Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
Cc: Andy Whitcroft <apw@xxxxxxxxxxxx>
Cc: Dave Hansen <haveblue@xxxxxxxxxx>
Cc: Gerald Schaefer <gerald.schaefer@xxxxxxxxxx>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>
Cc: Yasunori Goto <y-goto@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/sparse.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/sparse.c~memory_hotplug-always-initialize-pageblock-bitmap mm/sparse.c
--- a/mm/sparse.c~memory_hotplug-always-initialize-pageblock-bitmap
+++ a/mm/sparse.c
@@ -244,7 +244,7 @@ unsigned long usemap_size(void)
 #ifdef CONFIG_MEMORY_HOTPLUG
 static unsigned long *__kmalloc_section_usemap(void)
 {
-	return kmalloc(usemap_size(), GFP_KERNEL);
+	return kzalloc(usemap_size(), GFP_KERNEL);
 }
 #endif /* CONFIG_MEMORY_HOTPLUG */
 
_

Patches currently in -mm which might be from heiko.carstens@xxxxxxxxxx are

origin.patch
linux-next.patch
fix-gregkh-driver-core-read-dev_name-instead-of-bus_id.patch
s390-uninline-spinlock-functions-which-use-smp_processor_id.patch
memory-hotplug-memmap_init_zone-called-twice.patch
memory_hotplug-always-initialize-pageblock-bitmap.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux