]> git.karo-electronics.de Git - karo-tx-linux.git/commit
posix-timers: Correct sanity check in posix_cpu_nsleep
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 13 Apr 2017 15:32:16 +0000 (10:32 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 17 Apr 2017 04:42:50 +0000 (23:42 -0500)
commit01a2197485a9917216ad67ced4bafed9f7942f5a
tree25956afbd5dbb1f49936d6c38ddd113b6754b33d
parentb54807fa52ae21bdf6bad72b0f00fd400af412eb
posix-timers: Correct sanity check in posix_cpu_nsleep

CPUCLOCK_PID(which_clock) is a pid value from userspace so compare it
against task_pid_vnr, not current->pid.  As task_pid_vnr is in the tasks
pid value in the tasks pid namespace, and current->pid is in the
initial pid namespace.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/time/posix-cpu-timers.c