Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
Smatch caller information:
kernel/bpf/syscall.c bpf_task_fd_query() -> fget_task()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| DATA_SOURCE | 0 | task | r get_pid_task |
| CAPABLE | 0 | 21 |
fs/proc/fd.c proc_fd_link() -> fget_task()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 0 | task->alloc_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal | 4096-ptr_max |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.owner_cpu | u32max |
| DATA_SOURCE | 0 | task | $2 |
| DATA_SOURCE | 1 | fd | r proc_fd |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &task->signal->exec_update_lock | |
| TYPE_LOCK | (struct signal_struct)->exec_update_lock |
fs/proc/fd.c tid_fd_mode() -> fget_task()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| DATA_SOURCE | 0 | task | $0 |
| DATA_SOURCE | 1 | fd | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | fd | 0-99[c][u] |
| UNITS | 1 | fd | unit_byte |
kernel/pid.c __pidfd_fget() -> fget_task()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 0 | task->alloc_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal | 4096-ptr_max |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.owner_cpu | u32max |
| DATA_SOURCE | 0 | task | $0 |
| DATA_SOURCE | 1 | fd | $1 |
| BIT_INFO | 0 | task->flags | 0x0,0xfffffffb |
| USER_DATA | 1 | fd | 0-u32max |
| LOCK2 | 0 | &task->signal->exec_update_lock | |
| TYPE_LOCK | (struct signal_struct)->exec_update_lock |
kernel/kcmp.c get_file_raw_ptr() -> fget_task()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 0 | task->alloc_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.owner_cpu | u32max |
| DATA_SOURCE | 0 | task | $0 |
| DATA_SOURCE | 1 | fd | $1 |
| USER_DATA | 1 | fd | 0-u32max |
kernel/kcmp.c kcmp_epoll_target() -> fget_task()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 0 | task->alloc_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | task->signal->exec_update_lock.wait_lock.owner_cpu | u32max |
| DATA_SOURCE | 0 | task | $1 |
| USER_DATA | 1 | fd | 0-u32max |