vm_normal_page can be called with a NULL vma. This can be replaced with gate_vma, and no problem because none of the gate vmas use VM_PFNMAP (if they did they would need to set vm_pgoff). Signed-off-by: Nick Piggin mm/memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux-2.6.15-rc3-ck1/mm/memory.c =================================================================== --- linux-2.6.15-rc3-ck1.orig/mm/memory.c 2005-11-30 10:07:14.000000000 +1100 +++ linux-2.6.15-rc3-ck1/mm/memory.c 2005-11-30 10:07:15.000000000 +1100 @@ -988,7 +988,8 @@ int get_user_pages(struct task_struct *t return i ? : -EFAULT; } if (pages) { - struct page *page = vm_normal_page(vma, start, *pte); + struct page *page; + page = vm_normal_page(gate_vma, start, *pte); pages[i] = page; if (page) get_page(page);