diff --git a/mm/migrate.c b/mm/migrate.c index 755277966a54..a84e20e7098a 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -1424,7 +1424,7 @@ SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages, * Check if this process has the right to modify the specified * process. Use the regular "ptrace_may_access()" checks. */ - if (!ptrace_may_access(task, PTRACE_MODE_READ)) { + if (!ptrace_may_access(task, PTRACE_MODE_READ_REALCREDS)) { rcu_read_unlock(); err = -EPERM; goto out;