CC [M] fs/binfmt_misc.o In file included from /usr/src/linux-3.6.1-gentoo/arch/x86/include/asm/uaccess.h:584:0, from include/linux/uaccess.h:5, from include/linux/highmem.h:8, from include/linux/pagemap.h:10, from fs/binfmt_misc.c:27: /usr/src/linux-3.6.1-gentoo/arch/x86/include/asm/uaccess_32.h: In function ‘parse_command.part.5’: /usr/src/linux-3.6.1-gentoo/arch/x86/include/asm/uaccess_32.h:211:26: error: call to ‘copy_from_user_overflow’ declared with attribute error: copy_from_user() buffer size is not provably correct. Switching between biult-in and module does not help. I'm using gcc 4.6.3. Reproducible: Always
.config, please and emerge --info
Created attachment 326276 [details] kernel config
Created attachment 326278 [details] emerge --info
So, it looks[1] like this might be a bug in gcc[2]. You can try disabling DEBUG_STRICT_USER_COPY_CHECKS as a temporary workaround and see if that helps. Toolchain guys? [1] https://lkml.org/lkml/2012/1/21/153 [2] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52798
Disabling DEBUG_STRICT_USER_COPY_CHECKS helps, and so does disabling CONFIG_BINFMT_MISC.
this is not only related to vanilla-3.6 I see it with hardened-3.2
Still present in 4.6.4 and 4.7.3.
(In reply to Ryan Hill from comment #7) > Still present in 4.6.4 and 4.7.3. I'm running gcc 4.7.3-r1 and this has been working for some time (gentoo-sources)
gcc-4.9 is stable now, so throwing away older bugs we don't plan on doing backports for as this should be fixed w/4.9+. please re-open if it's still an issue with 4.9.3+ though.