Defined in 1 files as a function:
Referenced in 16 files:
- drivers/android/binder.c, line 5075
- drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c, line 210
- fs/autofs/waitq.c, line 325
- fs/nsfs.c, line 282
- fs/proc/array.c
- fs/proc/self.c, line 16
- fs/proc/thread_self.c, line 16
- include/linux/pid.h, line 307
- ipc/mqueue.c, line 803
- kernel/acct.c
- kernel/bpf/helpers.c, line 616
- kernel/signal.c, line 1077
- kernel/taskstats.c, line 635
- kernel/tsacct.c, line 59
- rust/helpers/task.c, line 56
- security/tomoyo/realpath.c, line 168
Smatch caller information:
fs/pidfs.c task_ppid_nr_ns() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ns | 0 |
| DATA_SOURCE | 1 | ns | $1 |
| LOCK2 | rcu_read |
kernel/tsacct.c bacct_add_tsk() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tsk | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->delays | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tsk->delays->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->delays->lock.owner | (-1) |
| PARAM_VALUE | 0 | tsk->delays->lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | tsk->group_leader | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->signal->cgroup_threadgroup_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | tsk->signal->cgroup_threadgroup_rwsem.first_waiter->type | 0-1 |
| DATA_SOURCE | 0 | tsk | $3 |
| DATA_SOURCE | 1 | ns | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | tsk->exit_code | 0,256-65280[c] |
| USER_DATA | 0 | tsk->signal->group_exit_code | 0,256-65280[c] |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->blkio_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->compact_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->freepages_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->irq_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->swapin_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->thrashing_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->wpcopy_delay |
kernel/tsacct.c task_ppid_nr_ns() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | ns | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
security/tomoyo/realpath.c tomoyo_get_local_path() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | ns | r proc_pid_ns |
| LOCK2 | global &tomoyo_ss | ||
| HALF_LOCKED2 | &head->io_sem |
drivers/android/binder.c binder_thread_read() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| TASK_NOT_RUNNING |
kernel/auditsc.c task_ppid_nr_ns() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ns | 5090646797026435072 |
| DATA_SOURCE | 1 | ns | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
kernel/audit.c task_ppid_nr_ns() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ns | 5090646797026435072 |
| DATA_SOURCE | 1 | ns | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &iint->mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock |
fs/proc/array.c task_ppid_nr_ns() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | ns | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/proc/array.c task_state() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tsk | 4096-ptr_max |
| DATA_SOURCE | 0 | tsk | $3 |
| DATA_SOURCE | 1 | ns | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/proc/array.c task_state() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tsk | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->alloc_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->files | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tsk->numa_group | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tsk->real_cred | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->real_cred->non_rcu | 0 |
| PARAM_VALUE | 0 | tsk->real_cred->process_keyring->user->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->real_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | tsk->real_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | tsk->real_cred->rcu.func | 1-u64max |
| PARAM_VALUE | 0 | tsk->real_cred->rcu.next | 0 |
| PARAM_VALUE | 0 | tsk->real_cred->request_key_auth->user->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->real_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | tsk->real_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | tsk->real_cred->session_keyring->user->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->real_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | tsk->real_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | tsk->real_cred->thread_keyring->user->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->real_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | tsk->real_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | tsk->real_cred->ucounts->ns->work.entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->real_cred->ucounts->ns->work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->real_cred->user->uidhash_node->next->pprev | 1-u64max |
| PARAM_VALUE | 0 | tsk->real_cred->user->uidhash_node.next->pprev | 1-u64max |
| PARAM_VALUE | 0 | tsk->real_cred->user_ns->work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->real_fs | 0,4096-ptr_max |
| DATA_SOURCE | 0 | tsk | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c kfd_smi_task_to_pid() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tsk | 4096-ptr_max |
| DATA_SOURCE | 0 | tsk | $0 |
| STR_LEN | 0 | tsk | (-1),6,10,15,21,25,32,35 |
| STR_LEN | 0 | tsk | (-1),6,10,15,21,25,32,35 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &prange->migrate_mutex | ||
| HALF_LOCKED2 | &svms->lock |
kernel/taskstats.c taskstats_exit() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tsk | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->alloc_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->audit_context | 0 |
| PARAM_VALUE | 0 | tsk->delays | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tsk->delays->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->delays->lock.owner | (-1) |
| PARAM_VALUE | 0 | tsk->delays->lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | tsk->flags | 0,4-u32max |
| PARAM_VALUE | 0 | tsk->group_leader | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->kcov | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tsk->kcov->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->mm->exe_file->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | tsk->mm->exe_file->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | tsk->mm->exe_file->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | tsk->mm->exe_file->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | tsk->mm->exe_file->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | tsk->mm->exe_file->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | tsk->mm->exe_file->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | tsk->mm->exe_file->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | tsk->mm->exe_file->f_task_work.func | 5179756662909861888 |
| PARAM_VALUE | 0 | tsk->real_cred | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sighand | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sighand->siglock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->signal | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->signal->cgroup_threadgroup_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->signal->cgroup_threadgroup_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | tsk->signal->cgroup_threadgroup_rwsem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | tsk->signal->cgroup_threadgroup_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | tsk->signal->cgroup_threadgroup_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | tsk->signal->core_state->startup.wait.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->signal->core_state->startup.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | tsk->signal->core_state->startup.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | tsk->signal->flags | 4 |
| PARAM_VALUE | 0 | tsk->signal->group_stop_count | 0 |
| PARAM_VALUE | 0 | tsk->signal->stats | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tsk->user_event_mm | 0 |
| PARAM_VALUE | 0 | tsk->user_event_mm->mm->mmap_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->user_event_mm->mm->mmap_lock.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 0 | tsk->user_event_mm->mm->mmap_lock.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | tsk->user_event_mm->mm->mmap_lock.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | tsk->user_event_mm->mm->mmap_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | tsk->user_event_mm->mm->mmap_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | tsk->user_event_mm->put_rwork.rcu.next | 0 |
| PARAM_VALUE | 1 | ns | 5090646797026435072 |
| CAPPED_DATA | 0 | tsk | 1 |
| CAPPED_DATA | 0 | tsk->real_cred | 1 |
| DATA_SOURCE | 0 | tsk | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | tsk->exit_code | 0,256-65280[c] |
| USER_DATA | 0 | tsk->signal->group_exit_code | 0,256-65280[c] |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->blkio_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->compact_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->freepages_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->irq_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->swapin_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->thrashing_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->delays->wpcopy_delay | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->signal->stats->blkio_delay_total | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->signal->stats->compact_delay_total | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->signal->stats->cpu_delay_total | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->signal->stats->cpu_run_virtual_total | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->signal->stats->freepages_delay_total | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->signal->stats->irq_delay_total | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->signal->stats->swapin_delay_total | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->signal->stats->thrashing_delay_total | |
| NO_OVERFLOW_SIMPLE | 0 | tsk->signal->stats->wpcopy_delay_total | |
| HALF_LOCKED2 | global &system_transition_mutex |
fs/nsfs.c ns_ioctl() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tsk | 1-u64max |
| PARAM_VALUE | 1 | ns | 4096-ptr_max |
| DATA_SOURCE | 0 | tsk | r find_task_by_vpid |
| LOCK2 | rcu_read |
kernel/acct.c fill_ac() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &acct->lock |
kernel/acct.c fill_ac() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &acct->lock |
fs/proc/thread_self.c proc_thread_self_get_link() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | ns | r proc_pid_ns |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/signal.c __send_signal_locked() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &_T->lock->alloc_lock | ||
| HALF_LOCKED2 | &cw->mutex | ||
| HALF_LOCKED2 | &sighand->siglock | ||
| HALF_LOCKED2 | &t->alloc_lock | ||
| HALF_LOCKED2 | &t->sighand->siglock | ||
| HALF_LOCKED2 | &tsk->sighand->siglock | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &tasklist_lock | ||
| HALF_LOCKED2 | irq |
fs/autofs/waitq.c autofs_wait() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/proc/self.c proc_self_get_link() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | ns | r proc_pid_ns |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/bpf/helpers.c ____bpf_get_ns_current_pid_tgid() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tsk | 4096-ptr_max |
| PARAM_VALUE | 1 | ns | 4096-ptr_max |
| DATA_SOURCE | 0 | tsk | r get_current |
| DATA_SOURCE | 1 | ns | r task_active_pid_ns |
ipc/mqueue.c __do_notify() -> task_tgid_nr_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| LOCK2 | &info->lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct mqueue_inode_info)->lock |