Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/proc/base.c comm_write() -> __set_task_comm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tsk | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 8513116417238949888 |
| PARAM_VALUE | 2 | exec | 0 |
| BUF_SIZE | 1 | buf | 16 |
| CAPPED_DATA | 0 | tsk->signal | 1 |
| DATA_SOURCE | 0 | tsk | r get_proc_task |
| NOCHECK_CALL | |||
| USER_DATA | 1 | *buf | 0-255 |
| USER_PTR | 1 | buf |
kernel/kthread.c kthreadd() -> __set_task_comm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | buf | 7801526766997950464 |
| PARAM_VALUE | 2 | exec | 0 |
| BUF_SIZE | 1 | buf | 16 |
| DATA_SOURCE | 0 | tsk | r get_current |
| STR_LEN | 0 | tsk | 8 |
| TERMINATED | 1 | buf | 1 |
| NOCHECK_CALL |
io_uring/sqpoll.c io_sq_thread() -> __set_task_comm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | buf | 2446830518728073216 |
| PARAM_VALUE | 2 | exec | 0 |
| BUF_SIZE | 1 | buf | 16 |
| STR_LEN | 0 | tsk | 15 |
| NOCHECK_CALL |
io_uring/io-wq.c io_wq_worker() -> __set_task_comm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | buf | 8422316469473976320 |
| PARAM_VALUE | 2 | exec | 0 |
| BUF_SIZE | 1 | buf | 16 |
| STR_LEN | 0 | tsk | 15 |
| NOCHECK_CALL |
kernel/sys.c __do_sys_prctl() -> __set_task_comm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | exec | 0 |
| BUF_SIZE | 1 | buf | 16 |
| DATA_SOURCE | 0 | tsk | r get_current |
| NOCHECK_CALL |
kernel/sys.c __do_sys_prctl() -> __set_task_comm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | exec | 0 |
| BUF_SIZE | 1 | buf | 16 |
| DATA_SOURCE | 0 | tsk | r get_current |
| NOCHECK_CALL |
fs/exec.c begin_new_exec() -> __set_task_comm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tsk | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->exit_signal | 17 |
| PARAM_VALUE | 0 | tsk->files | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->files->fdt | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->files->file_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->group_leader->exit_signal | s32min-(-1) |
| PARAM_VALUE | 0 | tsk->group_leader->group_leader | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->group_leader->sibling.next | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->group_leader->sibling.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->group_leader->tasks.next | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sas_ss_size | 0 |
| PARAM_VALUE | 0 | tsk->sas_ss_sp | 0 |
| PARAM_VALUE | 0 | tsk->sibling.next | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sibling.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sibling.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sibling.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sibling.prev->next->next | 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.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | tsk->signal->cgroup_threadgroup_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | tsk->signal->group_exec_task | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->signal->group_exec_task->signal | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->signal->group_stop_count | 0 |
| PARAM_VALUE | 0 | tsk->signal->notify_count | 0 |
| PARAM_VALUE | 0 | tsk->signal->posix_timers.first | 0 |
| PARAM_VALUE | 0 | tsk->signal->timer_create_restore_ids | 0 |
| PARAM_VALUE | 0 | tsk->tasks.next->prev | 4096-ptr_max |
| PARAM_VALUE | 2 | exec | 1 |
| BUF_SIZE | 1 | buf | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | tsk | 1 |
| DATA_SOURCE | 0 | tsk | r get_current |
| BIT_INFO | 0 | tsk->flags | 0x0,0xfbbf7fbf |
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| LOCK2 | &tsk->signal->exec_update_lock | ||
| LOCK2 | rcu_read |
fs/exec.c begin_new_exec() -> __set_task_comm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tsk | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->exit_signal | 17 |
| PARAM_VALUE | 0 | tsk->files | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->files->fdt | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->files->file_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tsk->group_leader->exit_signal | s32min-(-1) |
| PARAM_VALUE | 0 | tsk->group_leader->group_leader | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->group_leader->sibling.next | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->group_leader->sibling.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->group_leader->tasks.next | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sas_ss_size | 0 |
| PARAM_VALUE | 0 | tsk->sas_ss_sp | 0 |
| PARAM_VALUE | 0 | tsk->sibling.next | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sibling.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sibling.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sibling.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->sibling.prev->next->next | 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.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | tsk->signal->cgroup_threadgroup_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | tsk->signal->group_exec_task | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->signal->group_exec_task->signal | 4096-ptr_max |
| PARAM_VALUE | 0 | tsk->signal->group_stop_count | 0 |
| PARAM_VALUE | 0 | tsk->signal->notify_count | 0 |
| PARAM_VALUE | 0 | tsk->signal->posix_timers.first | 0 |
| PARAM_VALUE | 0 | tsk->signal->timer_create_restore_ids | 0 |
| PARAM_VALUE | 0 | tsk->tasks.next->prev | 4096-ptr_max |
| PARAM_VALUE | 2 | exec | 1 |
| BUF_SIZE | 1 | buf | (-1),1-s32max |
| CAPPED_DATA | 0 | tsk | 1 |
| DATA_SOURCE | 0 | tsk | r get_current |
| BIT_INFO | 0 | tsk->flags | 0x0,0xfbbf7fbf |
| NOCHECK_CALL | |||
| LOCK2 | &tsk->signal->exec_update_lock |