From: sateesh.kumar@redpinesignals.com (Sateesh Kumar)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Issue with copy_from_user() function in kernel 3.6.10
Date: Fri, 19 Jul 2013 19:48:50 +0530 [thread overview]
Message-ID: <51E94ACA.10709@redpinesignals.com> (raw)
Dear Experts,
I am using the kernel 3.6.10 for my driver development. When I compiled
the code I am getting the following warning. I am facing the same issue
with 3.5.4 kernel.
"call to ?copy_from_user_overflow? declared with attribute warning:
copy_from_user() buffer size is not provably correct"
When I try to install the module, I am facing the kernel crash. Here is
the crash log.
//Kernel crash log - Start
Call Trace:
[19592.491229] [<c044bbf2>] warn_slowpath_common+0x72/0xa0
[19592.491233] [<c06882b7>] ? copy_from_user_overflow+0x27/0x30
[19592.491236] [<c06882b7>] ? copy_from_user_overflow+0x27/0x30
[19592.491241] [<f86f54c0>] ? jtag_usb_card_read+0x70/0x70 [usb_jtag]
[19592.491244] [<c044bcc3>] warn_slowpath_fmt+0x33/0x40
[19592.491247] [<c06882b7>] copy_from_user_overflow+0x27/0x30
[19592.491251] [<f86f54ec>] jtag_usb_ioctl+0x2c/0x80 [usb_jtag]
[19592.491256] [<c0565dea>] do_vfs_ioctl+0x7a/0x590
[19592.491259] [<c055f41b>] ? putname+0x2b/0x40
[19592.491262] [<c055f41b>] ? putname+0x2b/0x40
[19592.491265] [<c0555238>] ? do_sys_open+0x158/0x1c0
[19592.491269] [<c0566368>] sys_ioctl+0x68/0x80
[19592.491274] [<c0980cdf>] sysenter_do_call+0x12/0x28
[19592.491276] ---[ end trace 98bdb358664246ac ]---
[19592.491277] copy_from_usr error
//Kernel crash log - End
Please let me know, what wrong with my driver?
Thanks in advance,
Regards,
Sateesh
next reply other threads:[~2013-07-19 14:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-19 14:18 Sateesh Kumar [this message]
2013-07-19 14:56 ` Issue with copy_from_user() function in kernel 3.6.10 Sudip Mukherjee
2013-07-19 15:50 ` Sateesh Kumar
2013-07-19 15:58 ` Kristof Provost
2013-07-20 7:51 ` Sudip Mukherjee
2013-07-26 13:18 ` Sateesh Kumar
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=51E94ACA.10709@redpinesignals.com \
--to=sateesh.kumar@redpinesignals.com \
--cc=kernelnewbies@lists.kernelnewbies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.