David Hildenbrand
1da530fe15
kasan: fix memory hotplug during boot
...
commit 3f1959721558a976aaf9c2024d5bc884e6411bf7 upstream.
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/20180522100756.18478-3-david@redhat.com
Fixes: 786a8959912e ("kasan: disable memory hotplug")
Signed-off-by: David Hildenbrand <david@redhat.com>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 07:51:50 +02:00
..
2018-05-30 07:51:50 +02:00
2018-05-16 10:10:25 +02:00
2017-09-08 18:26:46 -07:00
2017-11-02 11:10:55 +01:00
2017-06-05 16:59:12 +02:00
2017-11-02 11:10:55 +01:00
2017-10-13 16:18:32 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-27 18:43:47 -08:00
2018-02-25 11:08:03 +01:00
2018-04-26 11:02:15 +02:00
2017-11-02 11:10:55 +01:00
2018-04-24 09:36:39 +02:00
2018-03-03 10:24:21 +01:00
2018-05-19 10:20:27 +02:00
2017-11-02 11:10:55 +01:00
2018-04-24 09:36:22 +02:00
2018-03-28 18:24:39 +02:00
2018-03-28 18:24:38 +02:00
2017-05-03 15:52:12 -07:00
2017-11-02 11:10:55 +01:00
2017-09-06 17:27:30 -07:00
2017-09-08 18:26:49 -07:00
2018-05-22 18:53:58 +02:00
2018-02-22 15:42:24 +01:00
2018-04-26 11:02:14 +02:00
2018-02-22 15:42:23 +01:00
2018-04-24 09:36:22 +02:00
2017-10-03 17:54:25 -07:00
2017-12-05 11:26:29 +01:00
2018-02-22 15:42:24 +01:00
2018-03-28 18:24:39 +02:00
2018-05-16 10:10:24 +02:00
2017-10-03 17:54:26 -07:00
2018-02-22 15:42:31 +01:00
2018-02-22 15:42:27 +01:00
2018-04-26 11:02:14 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-16 10:10:27 +02:00
2017-03-02 08:42:38 +01:00
2017-08-31 16:13:00 -07:00
2017-11-02 11:10:55 +01:00
2018-01-10 09:31:17 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-14 18:13:32 -07:00
2018-05-16 10:10:27 +02:00
2018-03-28 18:24:39 +02:00
2017-11-02 11:10:55 +01:00
2017-11-24 08:37:05 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-23 19:58:21 +01:00
2018-04-24 09:36:39 +02:00
2017-11-24 08:37:04 +01:00
2017-11-02 11:10:55 +01:00
2018-04-08 14:26:29 +02:00
2017-09-27 14:45:57 -07:00
2018-04-08 14:26:29 +02:00
2018-05-09 09:51:48 +02:00
2017-11-02 11:10:55 +01:00
2017-03-02 08:42:28 +01:00
2017-11-02 11:10:55 +01:00
2016-12-12 18:55:08 -08:00
2017-09-08 18:26:49 -07:00
2017-10-03 17:54:24 -07:00
2018-03-28 18:24:39 +02:00
2018-02-22 15:42:23 +01:00
2018-04-24 09:36:23 +02:00
2018-02-22 15:42:23 +01:00
2017-11-02 11:10:55 +01:00
2018-02-22 15:42:24 +01:00
2017-11-02 11:10:55 +01:00
2018-05-16 10:10:27 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-03 17:54:24 -07:00
2017-11-03 07:39:19 -07:00
2017-07-10 16:32:32 -07:00
2017-04-05 12:30:18 -07:00
2017-09-06 17:27:28 -07:00
2017-09-06 17:27:29 -07:00
2017-11-02 11:10:55 +01:00
2018-02-25 11:08:04 +01:00
2017-07-10 16:32:31 -07:00
2018-04-26 11:02:15 +02:00
2017-09-08 18:26:47 -07:00
2017-11-02 11:10:55 +01:00
2018-05-16 10:10:27 +02:00
2017-12-14 09:53:10 +01:00
2018-02-28 10:19:41 +01:00