From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Abusing region 0
Date: Thu, 03 Feb 2005 03:52:54 +0000 [thread overview]
Message-ID: <16897.40982.47145.796311@napali.hpl.hp.com> (raw)
In-Reply-To: <42017845.9080507@free.fr>
>>>>> On Thu, 03 Feb 2005 02:03:01 +0100, "Menyhart, Zoltan" <Zoltan.Menyhart@free.fr> said:
Zoltan> I am going to do some experiments: I am going to map some of
Zoltan> the virtual address ranges of a process into the address
Zoltan> space of another one. They are real 64 bit processes,
Zoltan> i.e. the region 0 is not used. Can I abuse this region 0
Zoltan> for mapping the addresses of the neighbor process into this
Zoltan> region ? E.g. if process A has got an address at
Zoltan> 0x6000000000001000, then I am going to map it for B at
Zoltan> address 0x0000000000001000 ? Wont anything break ?
Zoltan> (I need this trick because the source address can correspond
Zoltan> to anything, like initialized data, BSS, anonymous
Zoltan> allocation, etc, i.e. some SHM just wont work.)
Zoltan> Any advice will be appreciated.
Yes, you can do this. There is nothing special about region 0 as far
as the kernel is concerned. Well, I'm lying: the one thing that's
special is that there is a NaT page mapped at address 0 to catch
speculative accesses through a NULL-pointer. Because of that, I'd
recommend to use an address greater than 64KB (the largest base
page-size supported by Linux).
--david
prev parent reply other threads:[~2005-02-03 3:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-03 1:03 Abusing region 0 Menyhart, Zoltan
2005-02-03 2:25 ` Jack Steiner
2005-02-03 3:52 ` David Mosberger [this message]
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=16897.40982.47145.796311@napali.hpl.hp.com \
--to=davidm@napali.hpl.hp.com \
--cc=linux-ia64@vger.kernel.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