diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 566cf2bc08ea..cc443bc6edfc 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -1475,6 +1475,27 @@ config ASYNC_RAID6_TEST | |||
1475 | 1475 | ||
1476 | If unsure, say N. | 1476 | If unsure, say N. |
1477 | 1477 | ||
1478 | config HAVE_DEBUG_STACKOVERFLOW | ||
1479 | bool | ||
1480 | |||
1481 | config DEBUG_STACKOVERFLOW | ||
1482 | bool "Check for stack overflows" | ||
1483 | depends on DEBUG_KERNEL && HAVE_DEBUG_STACKOVERFLOW | ||
1484 | ---help--- | ||
1485 | Say Y here if you want to check for overflows of kernel, IRQ | ||
1486 | and exception stacks (if your archicture uses them). This | ||
1487 | option will show detailed messages if free stack space drops | ||
1488 | below a certain limit. | ||
1489 | |||
1490 | These kinds of bugs usually occur when call-chains in the | ||
1491 | kernel get too deep, especially when interrupts are | ||
1492 | involved. | ||
1493 | |||
1494 | Use this in cases where you see apparently random memory | ||
1495 | corruption, especially if it appears in 'struct thread_info' | ||
1496 | |||
1497 | If in doubt, say "N". | ||
1498 | |||
1478 | source "samples/Kconfig" | 1499 | source "samples/Kconfig" |
1479 | 1500 | ||
1480 | source "lib/Kconfig.kgdb" | 1501 | source "lib/Kconfig.kgdb" |