LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Nikolaus Rath <Nikolaus@rath.org>
Cc: Brice Goglin <Brice.Goglin@ens-lyon.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: virt_to_page for userspace pointers
Date: Sun, 13 Feb 2011 22:06:08 +0000 [thread overview]
Message-ID: <20110213220608.0c4b0cc2@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <4D58537C.3020409@rath.org>
> > If you don't lock the page, you have no guarantee that it won't get
> > swapped out or migrated while you look at the physical page.
>
> That's fine, I know that if the page is there at all then it has been
> locked by a (different) kernel driver. Is there any way to find out what
> I want?
How do you know the other driver isn't in the middle of releasing the
page ? Doing that deep in mm code without locking inversions will be fun.
Alan
next prev parent reply other threads:[~2011-02-13 22:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-03 20:50 Reversing a memory mapping? Nikolaus Rath
2011-02-05 21:04 ` virt_to_page for userspace pointers (was: Reversing a memory mapping?) Nikolaus Rath
2011-02-05 21:36 ` virt_to_page for userspace pointers Brice Goglin
2011-02-13 20:24 ` Nikolaus Rath
2011-02-13 20:37 ` Brice Goglin
2011-02-13 21:56 ` Nikolaus Rath
2011-02-13 22:06 ` Alan Cox [this message]
2011-02-13 22:11 ` Nikolaus Rath
2011-02-14 22:46 ` Nikolaus Rath
2011-07-26 12:03 ` Alexey Skidanov
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=20110213220608.0c4b0cc2@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=Brice.Goglin@ens-lyon.org \
--cc=Nikolaus@rath.org \
--cc=linux-kernel@vger.kernel.org \
--subject='Re: virt_to_page for userspace pointers' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).