From: Paolo 'Blaisorblade' Giarrusso When creating a new mm_struct by opening /proc/mm, call arch_pick_mmap_layout as well, like is done in the rest of the kernel when creating a new mm_struct. This is needed since 2.6.9 to support the flexible-mmap-layout patch by Ingo Molnar. Signed-off-by: Paolo 'Blaisorblade' Giarrusso --- clean-linux-2.6.11-paolo/mm/proc_mm.c | 1 + 1 files changed, 1 insertion(+) diff -puN mm/proc_mm.c~handle-flexible-mmap-layout mm/proc_mm.c --- clean-linux-2.6.11/mm/proc_mm.c~handle-flexible-mmap-layout 2005-07-10 16:55:34.000000000 +0200 +++ clean-linux-2.6.11-paolo/mm/proc_mm.c 2005-07-10 16:57:39.000000000 +0200 @@ -125,6 +125,7 @@ static int open_proc_mm(struct inode *in goto out_mem; init_new_empty_context(mm); + arch_pick_mmap_layout(mm); spin_lock(&mmlist_lock); list_add(&mm->mmlist, ¤t->mm->mmlist); _