Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | menu "Kernel hacking" |
| 2 | |
Heiko Carstens | 1f194a4 | 2006-07-03 00:24:46 -0700 | [diff] [blame] | 3 | config TRACE_IRQFLAGS_SUPPORT |
Martin Schwidefsky | 6f9a3c3 | 2011-01-05 12:47:15 +0100 | [diff] [blame] | 4 | def_bool y |
Heiko Carstens | 1f194a4 | 2006-07-03 00:24:46 -0700 | [diff] [blame] | 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | source "lib/Kconfig.debug" |
| 7 | |
Hendrik Brueckner | ec6743b | 2010-11-10 10:05:55 +0100 | [diff] [blame] | 8 | config STRICT_DEVMEM |
| 9 | def_bool y |
| 10 | prompt "Filter access to /dev/mem" |
| 11 | ---help--- |
| 12 | This option restricts access to /dev/mem. If this option is |
| 13 | disabled, you allow userspace access to all memory, including |
| 14 | kernel and userspace memory. Accidental memory access is likely |
| 15 | to be disastrous. |
| 16 | Memory access is required for experts who want to debug the kernel. |
| 17 | |
| 18 | If you are unsure, say Y. |
| 19 | |
Heiko Carstens | 1dcec25 | 2010-02-26 22:37:22 +0100 | [diff] [blame] | 20 | config DEBUG_STRICT_USER_COPY_CHECKS |
Martin Schwidefsky | 6f9a3c3 | 2011-01-05 12:47:15 +0100 | [diff] [blame] | 21 | def_bool n |
| 22 | prompt "Strict user copy size checks" |
Heiko Carstens | 1dcec25 | 2010-02-26 22:37:22 +0100 | [diff] [blame] | 23 | ---help--- |
| 24 | Enabling this option turns a certain set of sanity checks for user |
| 25 | copy operations into compile time warnings. |
| 26 | |
| 27 | The copy_from_user() etc checks are there to help test if there |
| 28 | are sufficient security checks on the length argument of |
| 29 | the copy operation, by having gcc prove that the argument is |
| 30 | within bounds. |
| 31 | |
| 32 | If unsure, or if you run an older (pre 4.4) gcc, say N. |
| 33 | |
Jan Glauber | 305b152 | 2011-03-15 17:08:22 +0100 | [diff] [blame] | 34 | config DEBUG_SET_MODULE_RONX |
| 35 | def_bool y |
| 36 | depends on MODULES |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | endmenu |