提交 8462e201 编写于 作者: H Hugh Dickins 提交者: Linus Torvalds

[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: NHugh Dickins <hugh@veritas.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e2cdef8c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册