linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Ravi <kravi26@yahoo.com>
To: Amol Kumar Lad <amolk@ishoni.com>, linux-mm@kvack.org
Subject: Re: copy_from_user
Date: Sun, 22 Dec 2002 17:21:06 -0800 (PST)	[thread overview]
Message-ID: <20021223012106.10392.qmail@web12301.mail.yahoo.com> (raw)
In-Reply-To: <1040513191.2250.79.camel@amol.in.ishoni.com>

--- Amol Kumar Lad <amolk@ishoni.com> wrote:

>   Suppose kernel tries to do copy_from_user from a pointer
> that does not have any mapping. i.e. not in any VMA (and not
in
>  stack area too..). 
> Now (for 1386)
> access_ok --> __range_ok
> Suppose the 'from' ptr is within range then how kernel is
> making sure that 'from' is invalid ??
> The page fault handler will see that 'from' has no mapping and
> it will die.. 
 
I believe this is handled using the 'fixup' code in
__copy_user_zeroing().
I don't understand the code well though, but I do know that it
works :)

-Ravi.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

  reply	other threads:[~2002-12-23  1:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-21 23:26 copy_from_user Amol Kumar Lad
2002-12-23  1:21 ` Ravi [this message]
2002-12-23 15:02   ` copy_from_user Amol Kumar Lad

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=20021223012106.10392.qmail@web12301.mail.yahoo.com \
    --to=kravi26@yahoo.com \
    --cc=amolk@ishoni.com \
    --cc=linux-mm@kvack.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