Skip to content

Commit

Permalink
mm: disable CONFIG_MEMORY_HOTPLUG when KASAN is enabled
Browse files Browse the repository at this point in the history
At present it is obvious that memory online and offline will fail when
KASAN is enabled.  So add the condition to limit the memory_hotplug when
KASAN is enabled.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: zhong jiang <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
xiongzhongjiang authored and torvalds committed Aug 5, 2016
1 parent c1ece76 commit 1e18573
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ config MEMORY_HOTPLUG
bool "Allow for memory hot-add"
depends on SPARSEMEM || X86_64_ACPI_NUMA
depends on ARCH_ENABLE_MEMORY_HOTPLUG
depends on !KASAN

config MEMORY_HOTPLUG_SPARSE
def_bool y
Expand Down

0 comments on commit 1e18573

Please sign in to comment.