Skip to content

Commit

Permalink
[PATCH] freepgt: sys_mincore ignore FIRST_USER_PGD_NR
Browse files Browse the repository at this point in the history
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: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Apr 19, 2005
1 parent e2cdef8 commit 8462e20
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mm/mincore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8462e20

Please sign in to comment.