]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - lib/Kconfig.debug
bug: Provide toggle for BUG on data corruption
[mirror_ubuntu-zesty-kernel.git] / lib / Kconfig.debug
index 33bc56cf60d71fc81f5f5981100406e1c7a91b10..07a6fac930c55b7e620f19f751ba5c0a501832a2 100644 (file)
@@ -1960,6 +1960,16 @@ config TEST_STATIC_KEYS
 
          If unsure, say N.
 
+config BUG_ON_DATA_CORRUPTION
+       bool "Trigger a BUG when data corruption is detected"
+       select CONFIG_DEBUG_LIST
+       help
+         Select this option if the kernel should BUG when it encounters
+         data corruption in kernel memory structures when they get checked
+         for validity.
+
+         If unsure, say N.
+
 source "samples/Kconfig"
 
 source "lib/Kconfig.kgdb"