public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Lutomirski <luto@MIT.EDU>
To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	greg@kroah.com, joe@perches.com, randy.dunlap@oracle.com,
	trivial@kernel.org
Subject: Re: [Oops 1/2]Something wrong with copy_from_user() function
Date: Sat, 30 Apr 2011 08:41:51 -0400	[thread overview]
Message-ID: <4DBC038F.3080004@mit.edu> (raw)
In-Reply-To: <20110430061336.GA4274@gmail.com>

On 04/30/2011 02:13 AM, Harry Wei wrote:
> Hi us,
> 	When i was compiling 2.6.38.2 kernel. Something wrong happend to me.
> It shows like following.
>
> [...]
> Warning: call to 'copy_from_user_overflow' declared with attribute warning:
> copy_from_user buffer size is not provably correct.
> [...]
>
> See http://s1202.photobucket.com/albums/bb364/harrywei/Kernel/?action=view&current=report_bug.png for details.
> 	I tried to fix this warning, but i don't know how to deal with
> it. Can anyone help me.

That's a bug (maybe) in drivers/staging/vt6656/wpactl.c, which is a 
staging driver and therefore liable to be imperfect.  You could ignore 
it or fix it and submit a patch.

(The bug isn't in copy_from_user -- it's an intentional warning in there 
to indicate that something might be wrong with the caller.)

--Andy

>
> Thanks.
> Harry Wei.


  reply	other threads:[~2011-04-30 12:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-30  6:13 [Oops 1/2]Something wrong with copy_from_user() function Harry Wei
2011-04-30 12:41 ` Andy Lutomirski [this message]
2011-04-30 21:13 ` Jiri Kosina
2011-05-01  1:21   ` Harry Wei
2011-05-01  2:39     ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DBC038F.3080004@mit.edu \
    --to=luto@mit.edu \
    --cc=akpm@linux-foundation.org \
    --cc=greg@kroah.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=randy.dunlap@oracle.com \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox