Skip to contentSkip to conversation

kasan-fix-memory-hotplug-during-boot.patch removed from -mm tree

merged [email protected] 1 participant 1 message May 29, 2018 Stable branch

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kasan: fix memory hotplug during boot
has been removed from the -mm tree. Its filename was
kasan-fix-memory-hotplug-during-boot.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: David Hildenbrand <[email protected]>
Subject: kasan: fix memory hotplug during boot

Using module_init() is wrong. E.g. ACPI adds and onlines memory before our memory notifier gets registered.

This makes sure that ACPI memory detected during boot up will not result in a kernel crash.

Easily reproducible with QEMU, just specify a DIMM when starting up.

Fixes 786a8959912e ("kasan: disable memory hotplug")
Cc Alexander Potapenko <[email protected]>
Cc Dmitry Vyukov <[email protected]>

---

 mm/kasan/kasan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/kasan/kasan.c renamed from mm/kasan/kasan.c~kasan-fix-memory-hotplug-during-boot +1 -1
diff -puN mm/kasan/kasan.c~kasan-fix-memory-hotplug-during-boot mm/kasan/kasan.c
@@ -898,5 +898,5 @@ static int __init kasan_memhotplug_init(
 	return 0;
 }
 
-module_init(kasan_memhotplug_init);
+core_initcall(kasan_memhotplug_init);
 #endif

_

Patches currently in -mm which might be from [email protected] are