summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Hildenbrand2018-05-25 23:48:11 +0200
committerLinus Torvalds2018-05-26 03:12:11 +0200
commit3f1959721558a976aaf9c2024d5bc884e6411bf7 (patch)
tree9a1b3752806330c513951c0c5a633ec7f7fff690 /lib
parentkasan: free allocated shadow memory on MEM_CANCEL_ONLINE (diff)
downloadkernel-qcow2-linux-3f1959721558a976aaf9c2024d5bc884e6411bf7.tar.gz
kernel-qcow2-linux-3f1959721558a976aaf9c2024d5bc884e6411bf7.tar.xz
kernel-qcow2-linux-3f1959721558a976aaf9c2024d5bc884e6411bf7.zip
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. 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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions