Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437902 (PR52798) - [4.6/4.7] sys-kernel/*-sources : DEBUG_STRICT_USER_COPY_CHECKS: arch/x86/include/asm/uaccess_32.h: error: call to copy_from_user_overflow declared with attribute error: copy_from_user() buffer size is not provably correct.
Summary: [4.6/4.7] sys-kernel/*-sources : DEBUG_STRICT_USER_COPY_CHECKS: arch/x86/incl...
Status: RESOLVED WONTFIX
Alias: PR52798
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR52798
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-10 22:52 UTC by Jan Vesely
Modified: 2015-10-22 14:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel config (config,77.54 KB, text/plain)
2012-10-11 13:57 UTC, Jan Vesely
Details
emerge --info (emerge-info,5.07 KB, text/plain)
2012-10-11 14:01 UTC, Jan Vesely
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Vesely 2012-10-10 22:52:24 UTC
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
Comment 1 Mike Pagano gentoo-dev 2012-10-11 12:47:39 UTC
.config, please and emerge --info
Comment 2 Jan Vesely 2012-10-11 13:57:51 UTC
Created attachment 326276 [details]
kernel config
Comment 3 Jan Vesely 2012-10-11 14:01:30 UTC
Created attachment 326278 [details]
emerge --info
Comment 4 Mike Pagano gentoo-dev 2012-10-11 23:53:37 UTC
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
Comment 5 Jan Vesely 2012-10-12 11:09:36 UTC
Disabling DEBUG_STRICT_USER_COPY_CHECKS helps, and so does disabling CONFIG_BINFMT_MISC.
Comment 6 Agostino Sarubbo gentoo-dev 2012-11-15 16:15:30 UTC
this is not only related to vanilla-3.6 I see it with hardened-3.2
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2013-05-14 01:52:38 UTC
Still present in 4.6.4 and 4.7.3.
Comment 8 Jan Vesely 2014-05-19 02:50:11 UTC
(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)
Comment 9 SpanKY gentoo-dev 2015-10-22 14:06:48 UTC
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.