--- mm/mremap.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6/mm/mremap.c =================================================================== --- linux-2.6.orig/mm/mremap.c 2008-01-31 17:26:57.000000000 -0800 +++ linux-2.6/mm/mremap.c 2008-01-31 17:32:24.000000000 -0800 @@ -130,6 +130,7 @@ unsigned long move_page_tables(struct vm old_end = old_addr + len; flush_cache_range(vma, old_addr, old_end); + mmu_notifier(invalidate_range, vma->vm_mm, old_addr, old_addr + len, 0); for (; old_addr < old_end; old_addr += extent, new_addr += extent) { cond_resched(); next = (old_addr + PMD_SIZE) & PMD_MASK; @@ -150,6 +151,7 @@ unsigned long move_page_tables(struct vm move_ptes(vma, old_pmd, old_addr, old_addr + extent, new_vma, new_pmd, new_addr); } + mmu_notifier(invalidate_range_end, vma->vm_mm, 0); return len + old_addr - old_end; /* how much done */ }