[Oops 1/2]Something wrong with copy_from_user() function - possible false positive due bug in gcc 4.6

Witold Baryluk baryluk at smp.if.uj.edu.pl
Mon May 30 17:38:26 PDT 2011


Hi.

You my wantto look here

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48880
and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46639

It is regression in gcc 4.6

Particulry this error happens in binfmt_misc.c file.
gcc 4.6 errornously print error in this file.

However I could not find such behavior
nowhere in rest of kernel. But it can still
be a case If you use gcc 4.6.

If you are using gcc 4.5 or older, it is probably
genuine error, or someone is using a destination
buffer which is unknown size and gcc cannot
prove it is big enaugh to hold data.




-- 
Witold Baryluk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://driverdev.linuxdriverproject.org/pipermail/devel/attachments/20110531/563b06c6/attachment.asc>


More information about the devel mailing list