Re: Forbid deletion of memory mappings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Clemens Kolbitsch
Date: Thursday, August 30, 2007 - 2:41 pm

On Thursday 30 August 2007 23:34:52 you wrote:

the thing is that they are not. the kernel chooses to REPLACE my mapping.

consider the user-space code:

mmap(0xaaaa0000, 0x3000, MAP_FIXED, ...);
mmap(0xaaaa1000, 0x4000, MAP_FIXED, ...);

here, the second call to mmap will shorten the first mapping to 0x1000 bytes 
and create one big vma with size 0x5000 bytes.

is there a way to tell it that the second mmap MUST fail?


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Forbid deletion of memory mappings, Clemens Kolbitsch, (Thu Aug 30, 9:44 am)
Re: Forbid deletion of memory mappings, Jiri Kosina, (Thu Aug 30, 10:07 am)
Re: Forbid deletion of memory mappings, Clemens Kolbitsch, (Thu Aug 30, 10:09 am)
Re: Forbid deletion of memory mappings, Clemens Kolbitsch, (Thu Aug 30, 2:32 pm)
Re: Forbid deletion of memory mappings, Jiri Kosina, (Thu Aug 30, 2:34 pm)
Re: Forbid deletion of memory mappings, Clemens Kolbitsch, (Thu Aug 30, 2:41 pm)
Re: Forbid deletion of memory mappings, Valdis.Kletnieks, (Thu Aug 30, 2:50 pm)
Re: Forbid deletion of memory mappings, Jiri Kosina, (Thu Aug 30, 2:55 pm)
Re: Forbid deletion of memory mappings, Clemens Kolbitsch, (Thu Aug 30, 3:05 pm)
Re: Forbid deletion of memory mappings, Helge Hafting, (Tue Sep 4, 3:17 am)
Re: Forbid deletion of memory mappings, Clemens Kolbitsch, (Tue Sep 4, 3:29 am)
Re: Forbid deletion of memory mappings, linux-os (Dick Johnson), (Tue Sep 4, 7:53 am)