diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug index 957d3da53ddd..9ee40661e3cb 100644 --- a/mm/Kconfig.debug +++ b/mm/Kconfig.debug @@ -28,3 +28,13 @@ config DEBUG_PAGEALLOC config PAGE_POISONING bool + +config SLUB_DEBUG_PANIC_ON + bool "Enable to Panic on SLUB corruption detection" + depends on SLUB_DEBUG + help + SLUB has a resiliency feature enabled which restores bytes in + order for production environments to continue to operate. IN + debug options this may not be desirable as it prevents from + investigating the root cause which may be rooted within cache + or memory.