mm/kasan: add support for memory hotplug
authorAndrey Ryabinin <[email protected]>
Mon, 10 Jul 2017 22:50:34 +0000 (15:50 -0700)
committerLinus Torvalds <[email protected]>
Mon, 10 Jul 2017 23:32:33 +0000 (16:32 -0700)
commitfa69b5989bb0031efa96f2f4ff49caf6532a0970
treeb63559b6b8ca3e2f2645e06959f65970ad727461
parent3f9ec80f7b22ec46272a32408c5cd91ae2f8c4c0
mm/kasan: add support for memory hotplug

KASAN doesn't happen work with memory hotplug because hotplugged memory
doesn't have any shadow memory.  So any access to hotplugged memory
would cause a crash on shadow check.

Use memory hotplug notifier to allocate and map shadow memory when the
hotplugged memory is going online and free shadow after the memory
offlined.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Andrey Ryabinin <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/Kconfig
mm/kasan/kasan.c