|author||Stephen Boyd <email@example.com>||2013-04-30 15:28:42 -0700|
|committer||Linus Torvalds <firstname.lastname@example.org>||2013-04-30 17:04:09 -0700|
Kconfig: consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
The help text for this config is duplicated across the x86, parisc, and s390 Kconfig.debug files. Arnd Bergman noted that the help text was slightly misleading and should be fixed to state that enabling this option isn't a problem when using pre 4.4 gcc. To simplify the rewording, consolidate the text into lib/Kconfig.debug and modify it there to be more explicit about when you should say N to this config. Also, make the text a bit more generic by stating that this option enables compile time checks so we can cover architectures which emit warnings vs. ones which emit errors. The details of how an architecture decided to implement the checks isn't as important as the concept of compile time checking of copy_from_user() calls. While we're doing this, remove all the copy_from_user_overflow() code that's duplicated many times and place it into lib/ so that any architecture supporting this option can get the function for free. Signed-off-by: Stephen Boyd <email@example.com> Acked-by: Arnd Bergmann <firstname.lastname@example.org> Acked-by: Ingo Molnar <email@example.com> Acked-by: H. Peter Anvin <firstname.lastname@example.org> Cc: Arjan van de Ven <email@example.com> Acked-by: Helge Deller <firstname.lastname@example.org> Cc: Heiko Carstens <email@example.com> Cc: Stephen Rothwell <firstname.lastname@example.org> Cc: Chris Metcalf <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
Diffstat (limited to 'arch/parisc/Kconfig.debug')
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/parisc/Kconfig.debug b/arch/parisc/Kconfig.debug
index 7305ac8f7f5b..bc989e522a04 100644
@@ -12,18 +12,4 @@ config DEBUG_RODATA
portion of the kernel code won't be covered by a TLB anymore.
If in doubt, say "N".
- bool "Strict copy size checks"
- depends on DEBUG_KERNEL && !TRACE_BRANCH_PROFILING
- Enabling this option turns a certain set of sanity checks for user
- copy operations into compile time failures.
- The copy_from_user() etc checks are there to help test if there
- are sufficient security checks on the length argument of
- the copy operation, by having gcc prove that the argument is
- within bounds.
- If unsure, or if you run an older (pre 4.4) gcc, say N.