+ hacking-group-kernel-data-structures-debugging-together.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: kernel-hacking: group kernel data structures debugging together
has been added to the -mm tree.  Its filename is
     hacking-group-kernel-data-structures-debugging-together.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/hacking-group-kernel-data-structures-debugging-together.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/hacking-group-kernel-data-structures-debugging-together.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Changbin Du <changbin.du@xxxxxxxxx>
Subject: kernel-hacking: group kernel data structures debugging together

Group these similar runtime data structures verification options together.

Link: http://lkml.kernel.org/r/20190909144453.3520-4-changbin.du@xxxxxxxxx
Signed-off-by: Changbin Du <changbin.du@xxxxxxxxx>
Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Tested-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 lib/Kconfig.debug |   24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

--- a/lib/Kconfig.debug~hacking-group-kernel-data-structures-debugging-together
+++ a/lib/Kconfig.debug
@@ -1365,6 +1365,8 @@ config DEBUG_BUGVERBOSE
 	  of the BUG call as well as the EIP and oops trace.  This aids
 	  debugging but costs about 70-100K of memory.
 
+menu "Debug kernel data structures"
+
 config DEBUG_LIST
 	bool "Debug linked list manipulation"
 	depends on DEBUG_KERNEL || BUG_ON_DATA_CORRUPTION
@@ -1404,6 +1406,18 @@ config DEBUG_NOTIFIERS
 	  This is a relatively cheap check but if you care about maximum
 	  performance, say N.
 
+config BUG_ON_DATA_CORRUPTION
+	bool "Trigger a BUG when data corruption is detected"
+	select 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.
+
+endmenu
+
 config DEBUG_CREDENTIALS
 	bool "Debug credential management"
 	depends on DEBUG_KERNEL
@@ -2099,16 +2113,6 @@ config MEMTEST
 	        memtest=17, mean do 17 test patterns.
 	  If you are unsure how to answer this question, answer N.
 
-config BUG_ON_DATA_CORRUPTION
-	bool "Trigger a BUG when data corruption is detected"
-	select 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"
 
 config ARCH_HAS_DEVMEM_IS_ALLOWED
_

Patches currently in -mm which might be from changbin.du@xxxxxxxxx are

hacking-group-sysrq-kgdb-ubsan-into-generic-kernel-debugging-instruments.patch
hacking-create-submenu-for-arch-special-debugging-options.patch
hacking-group-kernel-data-structures-debugging-together.patch
hacking-move-kernel-testing-and-coverage-options-to-same-submenu.patch
hacking-move-oops-into-lockups-and-hangs.patch
hacking-move-sched_stack_end_check-after-debug_stack_usage.patch
hacking-create-a-submenu-for-scheduler-debugging-options.patch
hacking-move-debug_bugverbose-to-printk-and-dmesg-options.patch
hacking-move-debug_fs-to-generic-kernel-debugging-instruments.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux