Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8462e201 authored by Hugh Dickins's avatar Hugh Dickins Committed by Linus Torvalds
Browse files

[PATCH] freepgt: sys_mincore ignore FIRST_USER_PGD_NR



Remove use of FIRST_USER_PGD_NR from sys_mincore: it's inconsistent (no other
syscall refers to it), unnecessary (sys_mincore loops over vmas further down)
and incorrect (misses user addresses in ARM's first pgd).

Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e2cdef8c
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -118,9 +118,6 @@ asmlinkage long sys_mincore(unsigned long start, size_t len,
 	if (start & ~PAGE_CACHE_MASK)
		goto einval;

	if (start < FIRST_USER_PGD_NR * PGDIR_SIZE)
		goto enomem;

	limit = TASK_SIZE;
	if (start >= limit)
		goto enomem;