projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed1596f
)
kasan: fix memory hotplug during boot
author
David Hildenbrand
<
[email protected]
>
Fri, 25 May 2018 21:48:11 +0000
(14:48 -0700)
committer
Linus Torvalds
<
[email protected]
>
Sat, 26 May 2018 01:12:11 +0000
(18:12 -0700)
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.
Link:
http://lkml.kernel.org/r/
[email protected]
Fixes: 786a8959912e ("kasan: disable memory hotplug")
Signed-off-by: David Hildenbrand <
[email protected]
>
Acked-by: Andrey Ryabinin <
[email protected]
>
Cc: Alexander Potapenko <
[email protected]
>
Cc: Dmitry Vyukov <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/kasan/kasan.c
patch
|
blob
|
history
diff --git
a/mm/kasan/kasan.c
b/mm/kasan/kasan.c
index 721e00837f0075393f1852eb9d2fade7e9c9fa78..f185455b34065d27efa2b6a90c9dd2c1dfe92ae9 100644
(file)
--- a/
mm/kasan/kasan.c
+++ b/
mm/kasan/kasan.c
@@
-898,5
+898,5
@@
static int __init kasan_memhotplug_init(void)
return 0;
}
-
module_init
(kasan_memhotplug_init);
+
core_initcall
(kasan_memhotplug_init);
#endif