From 2e081913d755091529309fabc4303c756736c392 Mon Sep 17 00:00:00 2001 From: Channagoud Kadabi Date: Wed, 15 Mar 2017 14:26:08 -0700 Subject: [PATCH] mm: Kconfig: Add DEBUG_SLUB_PANIC_ON option Add the DEBUG_SLUB_PANIC_ON option to KCONFIG preventing the existing defconfig option from being overwritten by make config. This will induce a panic if slab debug catches corruptions within the padding of a given object. The intention here is to induce collection of data immediately after the corruption is detected with the goal to catch the possible source of the corruption. Change-Id: Idffa42de790b9e096e28f7e1f484d86c013d7d83 Signed-off-by: Channagoud Kadabi Signed-off-by: Prasad Sodagudi Signed-off-by: Isaac J. Manjarres --- mm/Kconfig.debug | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug index 82b6a20898bd..54ee14dd2625 100644 --- a/mm/Kconfig.debug +++ b/mm/Kconfig.debug @@ -36,6 +36,16 @@ config DEBUG_PAGEALLOC enabled by DEBUG_PAGEALLOC_ENABLE_DEFAULT or the debug_pagealloc command line parameter. +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. + config DEBUG_PAGEALLOC_ENABLE_DEFAULT bool "Enable debug page memory allocations by default?" depends on DEBUG_PAGEALLOC