]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
linux: Trigger a BUG() when corruption of kernel data structures is detected
authorPeter Müller <peter.mueller@ipfire.org>
Sun, 9 Jul 2023 14:56:00 +0000 (14:56 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 13 Jul 2023 14:20:48 +0000 (14:20 +0000)
Given that this will merely log such an incident, this can be safely
enabled.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/kernel/kernel.config.aarch64-ipfire
config/kernel/kernel.config.riscv64-ipfire
config/kernel/kernel.config.x86_64-ipfire

index 0b300fa4c30a8eb3b93bb363af82579dc4f6d5e9..bc07256b68b114552767d88331305c6eb736e117 100644 (file)
@@ -8586,11 +8586,11 @@ CONFIG_STACKTRACE=y
 #
 # Debug kernel data structures
 #
-# CONFIG_DEBUG_LIST is not set
+CONFIG_DEBUG_LIST=y
 # CONFIG_DEBUG_PLIST is not set
 # CONFIG_DEBUG_SG is not set
 # CONFIG_DEBUG_NOTIFIERS is not set
-# CONFIG_BUG_ON_DATA_CORRUPTION is not set
+CONFIG_BUG_ON_DATA_CORRUPTION=y
 # CONFIG_DEBUG_MAPLE_TREE is not set
 # end of Debug kernel data structures
 
index 8197244c15b5229eaeec4b52136182857109d5f1..7b129a34921486d29838b01c22ebfbff54db42d6 100644 (file)
@@ -7073,11 +7073,11 @@ CONFIG_STACKTRACE=y
 #
 # Debug kernel data structures
 #
-# CONFIG_DEBUG_LIST is not set
+CONFIG_DEBUG_LIST=y
 # CONFIG_DEBUG_PLIST is not set
 # CONFIG_DEBUG_SG is not set
 # CONFIG_DEBUG_NOTIFIERS is not set
-# CONFIG_BUG_ON_DATA_CORRUPTION is not set
+CONFIG_BUG_ON_DATA_CORRUPTION=y
 # CONFIG_DEBUG_MAPLE_TREE is not set
 # end of Debug kernel data structures
 
index f4e4584c39ad246a21f843f84305c8362bbc1d05..eeda765dd1995b3b7a4c965ed134cd4291924e05 100644 (file)
@@ -7761,11 +7761,11 @@ CONFIG_STACKTRACE=y
 #
 # Debug kernel data structures
 #
-# CONFIG_DEBUG_LIST is not set
+CONFIG_DEBUG_LIST=y
 # CONFIG_DEBUG_PLIST is not set
 # CONFIG_DEBUG_SG is not set
 # CONFIG_DEBUG_NOTIFIERS is not set
-# CONFIG_BUG_ON_DATA_CORRUPTION is not set
+CONFIG_BUG_ON_DATA_CORRUPTION=y
 # CONFIG_DEBUG_MAPLE_TREE is not set
 # end of Debug kernel data structures