File tree Expand file tree Collapse file tree 24 files changed +633
-665
lines changed Expand file tree Collapse file tree 24 files changed +633
-665
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ config ARC
34
34
select OF
35
35
select OF_EARLY_FLATTREE
36
36
select PERF_USE_VMALLOC
37
+ select HAVE_DEBUG_STACKOVERFLOW
37
38
38
39
config SCHED_OMIT_FRAME_POINTER
39
40
def_bool y
Original file line number Diff line number Diff line change @@ -15,13 +15,6 @@ config EARLY_PRINTK
15
15
with klogd/syslogd or the X server. You should normally N here,
16
16
unless you want to debug such a crash.
17
17
18
- config DEBUG_STACKOVERFLOW
19
- bool "Check for stack overflows"
20
- depends on DEBUG_KERNEL
21
- help
22
- This option will cause messages to be printed if free stack space
23
- drops below a certain limit.
24
-
25
18
config 16KSTACKS
26
19
bool "Use 16Kb for kernel stacks instead of 8Kb"
27
20
help
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ config BLACKFIN
41
41
select ARCH_USES_GETTIMEOFFSET if !GENERIC_CLOCKEVENTS
42
42
select HAVE_MOD_ARCH_SPECIFIC
43
43
select MODULES_USE_ELF_RELA
44
+ select HAVE_DEBUG_STACKOVERFLOW
44
45
45
46
config GENERIC_CSUM
46
47
def_bool y
Original file line number Diff line number Diff line change @@ -2,13 +2,6 @@ menu "Kernel hacking"
2
2
3
3
source "lib/Kconfig.debug"
4
4
5
- config DEBUG_STACKOVERFLOW
6
- bool "Check for stack overflows"
7
- depends on DEBUG_KERNEL
8
- help
9
- This option will cause messages to be printed if free stack space
10
- drops below a certain limit.
11
-
12
5
config DEBUG_VERBOSE
13
6
bool "Verbose fault messages"
14
7
default y
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ config FRV
14
14
select ARCH_WANT_IPC_PARSE_VERSION
15
15
select OLD_SIGSUSPEND3
16
16
select OLD_SIGACTION
17
+ select HAVE_DEBUG_STACKOVERFLOW
17
18
18
19
config ZONE_DMA
19
20
bool
Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ menu "Kernel hacking"
2
2
3
3
source "lib/Kconfig.debug"
4
4
5
- config DEBUG_STACKOVERFLOW
6
- bool "Check for stack overflows"
7
- depends on DEBUG_KERNEL
8
-
9
5
config GDBSTUB
10
6
bool "Remote GDB kernel debugging"
11
7
depends on DEBUG_KERNEL
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ config M32R
16
16
select GENERIC_ATOMIC64
17
17
select ARCH_USES_GETTIMEOFFSET
18
18
select MODULES_USE_ELF_RELA
19
+ select HAVE_DEBUG_STACKOVERFLOW
19
20
20
21
config SBUS
21
22
bool
Original file line number Diff line number Diff line change @@ -2,13 +2,6 @@ menu "Kernel hacking"
2
2
3
3
source "lib/Kconfig.debug"
4
4
5
- config DEBUG_STACKOVERFLOW
6
- bool "Check for stack overflows"
7
- depends on DEBUG_KERNEL
8
- help
9
- This option will cause messages to be printed if free stack space
10
- drops below a certain limit.
11
-
12
5
config DEBUG_PAGEALLOC
13
6
bool "Debug page memory allocations"
14
7
depends on DEBUG_KERNEL && BROKEN
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ config METAG
30
30
select OF
31
31
select OF_EARLY_FLATTREE
32
32
select SPARSE_IRQ
33
+ select HAVE_DEBUG_STACKOVERFLOW
33
34
34
35
config STACKTRACE_SUPPORT
35
36
def_bool y
Original file line number Diff line number Diff line change @@ -6,13 +6,6 @@ config TRACE_IRQFLAGS_SUPPORT
6
6
7
7
source "lib/Kconfig.debug"
8
8
9
- config DEBUG_STACKOVERFLOW
10
- bool "Check for stack overflows"
11
- depends on DEBUG_KERNEL
12
- help
13
- This option will cause messages to be printed if free stack space
14
- drops below a certain limit.
15
-
16
9
config 4KSTACKS
17
10
bool "Use 4Kb for kernel stacks instead of 8Kb"
18
11
depends on DEBUG_KERNEL
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ config MIPS
42
42
select MODULES_USE_ELF_REL if MODULES
43
43
select MODULES_USE_ELF_RELA if MODULES && 64BIT
44
44
select CLONE_BACKWARDS
45
+ select HAVE_DEBUG_STACKOVERFLOW
45
46
46
47
menu "Machine selection"
47
48
Original file line number Diff line number Diff line change @@ -67,15 +67,6 @@ config CMDLINE_OVERRIDE
67
67
68
68
Normally, you will choose 'N' here.
69
69
70
- config DEBUG_STACKOVERFLOW
71
- bool "Check for stack overflows"
72
- depends on DEBUG_KERNEL
73
- help
74
- This option will cause messages to be printed if free stack space
75
- drops below a certain limit(2GB on MIPS). The debugging option
76
- provides another way to check stack overflow happened on kernel mode
77
- stack usually caused by nested interruption.
78
-
79
70
config SMTC_IDLE_HOOK_DEBUG
80
71
bool "Enable additional debug checks before going into CPU idle loop"
81
72
depends on DEBUG_KERNEL && MIPS_MT_SMTC
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ config MN10300
13
13
select MODULES_USE_ELF_RELA
14
14
select OLD_SIGSUSPEND3
15
15
select OLD_SIGACTION
16
+ select HAVE_DEBUG_STACKOVERFLOW
16
17
17
18
config AM33_2
18
19
def_bool n
Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ menu "Kernel hacking"
2
2
3
3
source "lib/Kconfig.debug"
4
4
5
- config DEBUG_STACKOVERFLOW
6
- bool "Check for stack overflows"
7
- depends on DEBUG_KERNEL
8
-
9
5
config DEBUG_DECOMPRESS_KERNEL
10
6
bool "Using serial port during decompressing kernel"
11
7
depends on DEBUG_KERNEL
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ config OPENRISC
22
22
select GENERIC_STRNCPY_FROM_USER
23
23
select GENERIC_STRNLEN_USER
24
24
select MODULES_USE_ELF_RELA
25
+ select HAVE_DEBUG_STACKOVERFLOW
25
26
26
27
config MMU
27
28
def_bool y
@@ -128,16 +129,6 @@ config CMDLINE
128
129
129
130
menu "Debugging options"
130
131
131
- config DEBUG_STACKOVERFLOW
132
- bool "Check for kernel stack overflow"
133
- default y
134
- help
135
- Make extra checks for space available on stack in some
136
- critical functions. This will cause kernel to run a bit slower,
137
- but will catch most of kernel stack overruns and exit gracefully.
138
-
139
- Say Y if you are unsure.
140
-
141
132
config JUMP_UPON_UNHANDLED_EXCEPTION
142
133
bool "Try to die gracefully"
143
134
default y
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ config PARISC
27
27
select MODULES_USE_ELF_RELA
28
28
select CLONE_BACKWARDS
29
29
select TTY # Needed for pdc_cons.c
30
+ select HAVE_DEBUG_STACKOVERFLOW
30
31
31
32
help
32
33
The PA-RISC microprocessor is designed by Hewlett-Packard and used
Original file line number Diff line number Diff line change @@ -13,14 +13,3 @@ config DEBUG_RODATA
13
13
If in doubt, say "N".
14
14
15
15
endmenu
16
-
17
- config DEBUG_STACKOVERFLOW
18
- bool "Check for stack overflows"
19
- default y
20
- depends on DEBUG_KERNEL
21
- ---help---
22
- Say Y here if you want to check the overflows of kernel, IRQ
23
- and exception stacks. This option will cause messages of the
24
- stacks in detail when free stack space drops below a certain
25
- limit.
26
- If in doubt, say "N".
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ config PPC
138
138
select ARCH_USE_BUILTIN_BSWAP
139
139
select OLD_SIGSUSPEND
140
140
select OLD_SIGACTION if PPC32
141
+ select HAVE_DEBUG_STACKOVERFLOW
141
142
142
143
config EARLY_PRINTK
143
144
bool
Original file line number Diff line number Diff line change @@ -28,13 +28,6 @@ config PRINT_STACK_DEPTH
28
28
too small and stack traces cause important information to
29
29
scroll off the screen.
30
30
31
- config DEBUG_STACKOVERFLOW
32
- bool "Check for stack overflows"
33
- depends on DEBUG_KERNEL
34
- help
35
- This option will cause messages to be printed if free stack space
36
- drops below a certain limit.
37
-
38
31
config HCALL_STATS
39
32
bool "Hypervisor call instrumentation"
40
33
depends on PPC_PSERIES && DEBUG_FS && TRACEPOINTS
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ config TILE
25
25
select HAVE_ARCH_TRACEHOOK
26
26
select HAVE_SYSCALL_TRACEPOINTS
27
27
select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
28
+ select HAVE_DEBUG_STACKOVERFLOW
28
29
29
30
# FIXME: investigate whether we need/want these options.
30
31
# select HAVE_IOREMAP_PROT
Original file line number Diff line number Diff line change @@ -14,13 +14,6 @@ config EARLY_PRINTK
14
14
with klogd/syslogd. You should normally N here,
15
15
unless you want to debug such a crash.
16
16
17
- config DEBUG_STACKOVERFLOW
18
- bool "Check for stack overflows"
19
- depends on DEBUG_KERNEL
20
- help
21
- This option will cause messages to be printed if free stack space
22
- drops below a certain limit.
23
-
24
17
config DEBUG_EXTRA_FLAGS
25
18
string "Additional compiler arguments when building with '-g'"
26
19
depends on DEBUG_INFO
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ config X86
122
122
select OLD_SIGACTION if X86_32
123
123
select COMPAT_OLD_SIGACTION if IA32_EMULATION
124
124
select RTC_LIB
125
+ select HAVE_DEBUG_STACKOVERFLOW
125
126
126
127
config INSTRUCTION_DECODER
127
128
def_bool y
Original file line number Diff line number Diff line change @@ -59,16 +59,6 @@ config EARLY_PRINTK_DBGP
59
59
with klogd/syslogd or the X server. You should normally N here,
60
60
unless you want to debug such a crash. You need usb debug device.
61
61
62
- config DEBUG_STACKOVERFLOW
63
- bool "Check for stack overflows"
64
- depends on DEBUG_KERNEL
65
- ---help---
66
- Say Y here if you want to check the overflows of kernel, IRQ
67
- and exception stacks. This option will cause messages of the
68
- stacks in detail when free stack space drops below a certain
69
- limit.
70
- If in doubt, say "N".
71
-
72
62
config X86_PTDUMP
73
63
bool "Export kernel pagetable layout to userspace via debugfs"
74
64
depends on DEBUG_KERNEL
You can’t perform that action at this time.
0 commit comments