Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pagewalk: fix walk_page_range() don't check find_vma() result properly
The doc of find_vma() says, /* Look up the first VMA which satisfies addr < vm_end, NULL if none. */ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr) { (snip) Thus, caller should confirm whether the returned vma matches a desired one. Signed-off-by: KOSAKI Motohiro <[email protected]> Cc: Naoya Horiguchi <[email protected]> Cc: Hiroyuki Kamezawa <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Matt Mackall <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information