Lines Matching refs:tsk
162 void exit_creds(struct task_struct *tsk) in exit_creds() argument
166 kdebug("exit_creds(%u,%p,%p,{%d,%d})", tsk->pid, tsk->real_cred, tsk->cred, in exit_creds()
167 atomic_read(&tsk->cred->usage), in exit_creds()
168 read_cred_subscribers(tsk->cred)); in exit_creds()
170 cred = (struct cred *) tsk->real_cred; in exit_creds()
171 tsk->real_cred = NULL; in exit_creds()
176 cred = (struct cred *) tsk->cred; in exit_creds()
177 tsk->cred = NULL; in exit_creds()
183 key_put(tsk->cached_requested_key); in exit_creds()
184 tsk->cached_requested_key = NULL; in exit_creds()
186 trace_android_rvh_exit_creds(tsk, cred); in exit_creds()
843 const struct task_struct *tsk) in dump_invalid_creds() argument
848 cred == tsk->real_cred ? "[real]" : "", in dump_invalid_creds()
849 cred == tsk->cred ? "[eff]" : ""); in dump_invalid_creds()
891 void __validate_process_creds(struct task_struct *tsk, in __validate_process_creds() argument
894 if (tsk->cred == tsk->real_cred) { in __validate_process_creds()
895 if (unlikely(read_cred_subscribers(tsk->cred) < 2 || in __validate_process_creds()
896 creds_are_invalid(tsk->cred))) in __validate_process_creds()
899 if (unlikely(read_cred_subscribers(tsk->real_cred) < 1 || in __validate_process_creds()
900 read_cred_subscribers(tsk->cred) < 1 || in __validate_process_creds()
901 creds_are_invalid(tsk->real_cred) || in __validate_process_creds()
902 creds_are_invalid(tsk->cred))) in __validate_process_creds()
911 dump_invalid_creds(tsk->real_cred, "Real", tsk); in __validate_process_creds()
912 if (tsk->cred != tsk->real_cred) in __validate_process_creds()
913 dump_invalid_creds(tsk->cred, "Effective", tsk); in __validate_process_creds()
923 void validate_creds_for_do_exit(struct task_struct *tsk) in validate_creds_for_do_exit() argument
926 tsk->real_cred, tsk->cred, in validate_creds_for_do_exit()
927 atomic_read(&tsk->cred->usage), in validate_creds_for_do_exit()
928 read_cred_subscribers(tsk->cred)); in validate_creds_for_do_exit()
930 __validate_process_creds(tsk, __FILE__, __LINE__); in validate_creds_for_do_exit()