Skip to content
Commit 8ca937a6 authored by Sasha Levin's avatar Sasha Levin Committed by Eric W. Biederman
Browse files

cred: use correct cred accessor with regards to rcu read lock



Commit "userns: Convert setting and getting uid and gid system calls to use
kuid and kgid has modified the accessors in wait_task_continued() and
wait_task_stopped() to use __task_cred() instead of task_uid().

__task_cred() assumes that we're inside a rcu read lock, which is untrue
for these two functions.

Modify it to use task_uid() instead.

Signed-off-by: default avatarSasha Levin <levinsasha928@gmail.com>
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent b38a86eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment