mm/usercopy: get rid of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
There are three usercopy warnings which are currently being silenced for gcc 4.6 and newer: 1) "copy_from_user() buffer size is too small" compile warning/error This is a static warning which happens when object size and copy size are both const, and copy size > object size. I didn't see any false positives for this one. So the function warning attribute seems to be working fine here. Note this scenario is always a bug and so I think it should be changed to *always* be an error, regardless of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS. 2) "copy_from_user() buffer size is not provably correct" compile warning This is another static warning which happens when I enable __compiletime_object_size() for new compilers (and CONFIG_DEBUG_STRICT_USER_COPY_CHECKS). It happens when object size is const, but copy size is *not*. In this case there's no way to compare the two at build time, so it gives the warning. (Note...
Showing
- arch/parisc/Kconfig 0 additions, 1 deletionarch/parisc/Kconfig
- arch/parisc/configs/c8000_defconfig 0 additions, 1 deletionarch/parisc/configs/c8000_defconfig
- arch/parisc/configs/generic-64bit_defconfig 0 additions, 1 deletionarch/parisc/configs/generic-64bit_defconfig
- arch/parisc/include/asm/uaccess.h 12 additions, 10 deletionsarch/parisc/include/asm/uaccess.h
- arch/s390/Kconfig 0 additions, 1 deletionarch/s390/Kconfig
- arch/s390/configs/default_defconfig 0 additions, 1 deletionarch/s390/configs/default_defconfig
- arch/s390/configs/gcov_defconfig 0 additions, 1 deletionarch/s390/configs/gcov_defconfig
- arch/s390/configs/performance_defconfig 0 additions, 1 deletionarch/s390/configs/performance_defconfig
- arch/s390/defconfig 0 additions, 1 deletionarch/s390/defconfig
- arch/s390/include/asm/uaccess.h 12 additions, 7 deletionsarch/s390/include/asm/uaccess.h
- arch/tile/Kconfig 0 additions, 1 deletionarch/tile/Kconfig
- arch/tile/include/asm/uaccess.h 10 additions, 12 deletionsarch/tile/include/asm/uaccess.h
- arch/x86/Kconfig 0 additions, 1 deletionarch/x86/Kconfig
- arch/x86/include/asm/uaccess.h 9 additions, 60 deletionsarch/x86/include/asm/uaccess.h
- include/asm-generic/uaccess.h 1 addition, 0 deletionsinclude/asm-generic/uaccess.h
- include/linux/compiler-gcc.h 1 addition, 1 deletioninclude/linux/compiler-gcc.h
- lib/Kconfig.debug 0 additions, 18 deletionslib/Kconfig.debug
- lib/Makefile 0 additions, 1 deletionlib/Makefile
- lib/usercopy.c 0 additions, 9 deletionslib/usercopy.c
Please register or sign in to comment