commit | fa69b5989bb0031efa96f2f4ff49caf6532a0970 | [log] [tgz] |
---|---|---|
author | Andrey Ryabinin <[email protected]> | Mon Jul 10 15:50:34 2017 -0700 |
committer | Linus Torvalds <[email protected]> | Mon Jul 10 16:32:33 2017 -0700 |
tree | b63559b6b8ca3e2f2645e06959f65970ad727461 | |
parent | 3f9ec80f7b22ec46272a32408c5cd91ae2f8c4c0 [diff] |
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]>