Kconfig.debug 1.0 KB

123456789101112131415161718192021222324252627282930
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config DEBUG_RODATA
  4. bool "Write protect kernel read-only data structures"
  5. depends on DEBUG_KERNEL
  6. help
  7. Mark the kernel read-only data as write-protected in the pagetables,
  8. in order to catch accidental (and incorrect) writes to such const
  9. data. This option may have a slight performance impact because a
  10. portion of the kernel code won't be covered by a TLB anymore.
  11. If in doubt, say "N".
  12. config DEBUG_STRICT_USER_COPY_CHECKS
  13. bool "Strict copy size checks"
  14. depends on DEBUG_KERNEL && !TRACE_BRANCH_PROFILING
  15. ---help---
  16. Enabling this option turns a certain set of sanity checks for user
  17. copy operations into compile time failures.
  18. The copy_from_user() etc checks are there to help test if there
  19. are sufficient security checks on the length argument of
  20. the copy operation, by having gcc prove that the argument is
  21. within bounds.
  22. If unsure, or if you run an older (pre 4.4) gcc, say N.
  23. endmenu