From: Roland Dreier <rdreier@cisco.com>
To: Randy Dunlap <randy.dunlap@oracle.com>, akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: mmotm 2009-08-04-14-22 uploaded (ummunotify)
Date: Tue, 04 Aug 2009 21:47:30 -0700 [thread overview]
Message-ID: <adabpmulvdp.fsf@cisco.com> (raw)
In-Reply-To: <20090804155014.35d4597c.randy.dunlap@oracle.com> (Randy Dunlap's message of "Tue, 4 Aug 2009 15:50:14 -0700")
Andrew, can you add this into the ummunotify patch, or add it on top or whatever?
Fix
ummunotify.c:(.text+0x8f217): undefined reference to `__get_user_X'
when building for i386 -- get_user() can't handle u64 on all
architectures, so just use copy_from_user().
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
---
drivers/char/ummunotify.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/char/ummunotify.c b/drivers/char/ummunotify.c
index 725fbb0..29de6ab 100644
--- a/drivers/char/ummunotify.c
+++ b/drivers/char/ummunotify.c
@@ -453,7 +453,7 @@ static long ummunotify_unregister_region(struct ummunotify_file *priv,
struct ummunotify_reg *reg;
int ret = -EINVAL;
- if (get_user(user_cookie, arg))
+ if (copy_from_user(&user_cookie, arg, sizeof user_cookie))
return -EFAULT;
spin_lock_irq(&priv->lock);
next prev parent reply other threads:[~2009-08-05 4:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-04 21:25 mmotm 2009-08-04-14-22 uploaded akpm
2009-08-04 22:50 ` mmotm 2009-08-04-14-22 uploaded (ummunotify) Randy Dunlap
2009-08-04 23:16 ` Andrew Morton
2009-08-05 0:38 ` Roland Dreier
2009-08-05 4:47 ` Roland Dreier [this message]
2009-08-05 15:19 ` Randy Dunlap
2009-08-05 1:48 ` [PATCH -mmotm] staging/udlfb: fix printk format warning Randy Dunlap
2009-08-05 1:54 ` [PATCH -mmotm] xfrm4: fix build when SYSCTLs are disabled Randy Dunlap
2009-08-05 3:20 ` David Miller
2009-08-05 6:39 ` mmotm 2009-08-04-14-22 uploaded Dave Young
2009-08-05 7:06 ` Andrew Morton
2009-08-05 7:14 ` Eric Dumazet
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=adabpmulvdp.fsf@cisco.com \
--to=rdreier@cisco.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
/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.