From: Nick Piggin Date: Tue, 29 Nov 2005 07:43:17 +0000 (+1100) Subject: [PATCH] Fix vma argument in get_usr_pages() for gate areas X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fa2a455b028f3b6ca4dae129c6337d7edf21f12c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] Fix vma argument in get_usr_pages() for gate areas The system call gate area handling called vm_normal_page() with the wrong vma (which was always NULL, and caused an oops). Signed-off-by: Nick Piggin Signed-off-by: Linus Torvalds --- diff --git a/mm/memory.c b/mm/memory.c index 9ab206b829a..6c1eac92a31 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -988,7 +988,7 @@ int get_user_pages(struct task_struct *tsk, struct mm_struct *mm, return i ? : -EFAULT; } if (pages) { - struct page *page = vm_normal_page(vma, start, *pte); + struct page *page = vm_normal_page(gate_vma, start, *pte); pages[i] = page; if (page) get_page(page);