Re: Forbid deletion of memory mappings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Clemens Kolbitsch
Date: Thursday, August 30, 2007 - 10:09 am

On Thursday 30 August 2007 19:07:05 Jiri Kosina wrote:

that's exactly the problem... it replaces my mapping with the new one... i.e. 
it first deletes my mapping and then creates the new one at the same 
location.

i *guess* this all happens in exec.c, lines 1033ff:

munmap_back:
	vma = find_vma_prepare(mm, addr, &prev, &rb_link, &rb_parent);
	if (vma && vma->vm_start < addr + len) {
		if (do_munmap(mm, addr, len))
			return -ENOMEM;
		goto munmap_back;
	}
-
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)