Kconfig.debug 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. menu "Kernel hacking"
  2. config TRACE_IRQFLAGS_SUPPORT
  3. def_bool y
  4. source "lib/Kconfig.debug"
  5. config STRICT_DEVMEM
  6. def_bool y
  7. prompt "Filter access to /dev/mem"
  8. ---help---
  9. This option restricts access to /dev/mem. If this option is
  10. disabled, you allow userspace access to all memory, including
  11. kernel and userspace memory. Accidental memory access is likely
  12. to be disastrous.
  13. Memory access is required for experts who want to debug the kernel.
  14. If you are unsure, say Y.
  15. config DEBUG_STRICT_USER_COPY_CHECKS
  16. def_bool n
  17. prompt "Strict user copy size checks"
  18. ---help---
  19. Enabling this option turns a certain set of sanity checks for user
  20. copy operations into compile time warnings.
  21. The copy_from_user() etc checks are there to help test if there
  22. are sufficient security checks on the length argument of
  23. the copy operation, by having gcc prove that the argument is
  24. within bounds.
  25. If unsure, or if you run an older (pre 4.4) gcc, say N.
  26. config DEBUG_SET_MODULE_RONX
  27. def_bool y
  28. depends on MODULES
  29. endmenu