From: Randy Dunlap <randy.dunlap@oracle.com>
To: Roland Dreier <rdreier@cisco.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: mmotm 2009-08-04-14-22 uploaded (ummunotify)
Date: Wed, 5 Aug 2009 08:19:31 -0700 [thread overview]
Message-ID: <20090805081931.cf930271.randy.dunlap@oracle.com> (raw)
In-Reply-To: <adabpmulvdp.fsf@cisco.com>
On Tue, 04 Aug 2009 21:47:30 -0700 Roland Dreier wrote:
> 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>
Ack & thanks.
> ---
> 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);
> --
---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
next prev parent reply other threads:[~2009-08-05 15:19 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
2009-08-05 15:19 ` Randy Dunlap [this message]
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=20090805081931.cf930271.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdreier@cisco.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox