Skip to content

Commit dc9b963

Browse files
changbindutorvalds
authored andcommitted
kernel-hacking: move SCHED_STACK_END_CHECK after DEBUG_STACK_USAGE
They are both memory debug options to debug kernel stack issues. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Changbin Du <[email protected]> Acked-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent f43a289 commit dc9b963

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/Kconfig.debug

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,18 @@ config DEBUG_STACK_USAGE
632632

633633
This option will slow down process creation somewhat.
634634

635+
config SCHED_STACK_END_CHECK
636+
bool "Detect stack corruption on calls to schedule()"
637+
depends on DEBUG_KERNEL
638+
default n
639+
help
640+
This option checks for a stack overrun on calls to schedule().
641+
If the stack end location is found to be over written always panic as
642+
the content of the corrupted region can no longer be trusted.
643+
This is to ensure no erroneous behaviour occurs which could result in
644+
data corruption or a sporadic crash at a later stage once the region
645+
is examined. The runtime overhead introduced is minimal.
646+
635647
config DEBUG_VM
636648
bool "Debug VM"
637649
depends on DEBUG_KERNEL
@@ -985,18 +997,6 @@ config SCHEDSTATS
985997
application, you can say N to avoid the very slight overhead
986998
this adds.
987999

988-
config SCHED_STACK_END_CHECK
989-
bool "Detect stack corruption on calls to schedule()"
990-
depends on DEBUG_KERNEL
991-
default n
992-
help
993-
This option checks for a stack overrun on calls to schedule().
994-
If the stack end location is found to be over written always panic as
995-
the content of the corrupted region can no longer be trusted.
996-
This is to ensure no erroneous behaviour occurs which could result in
997-
data corruption or a sporadic crash at a later stage once the region
998-
is examined. The runtime overhead introduced is minimal.
999-
10001000
config DEBUG_TIMEKEEPING
10011001
bool "Enable extra timekeeping sanity checking"
10021002
help

0 commit comments

Comments
 (0)