Re: Abusing region 0

From: David Mosberger <>
Date: 2005-02-03 14:52:54
>>>>> On Thu, 03 Feb 2005 02:03:01 +0100, "Menyhart, Zoltan" <> 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).

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Wed Feb 2 22:53:19 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:35 EST