Defined in 1 files as a function:
Referenced in 5 files:
Smatch caller information:
kernel/exit.c kill_orphaned_pgrp() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 0 | task->signal | 4096-ptr_max |
| DATA_SOURCE | 0 | task | $1 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | task->dl.pi_se->runtime | 1-17592186044415[c] |
| USER_DATA | 0 | task->exit_code | 0,256-65280[c] |
| USER_DATA | 0 | task->signal->group_exit_code | 0,256-65280[c] |
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | global &system_transition_mutex |
kernel/exit.c kill_orphaned_pgrp() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 0 | task->signal | 4096-ptr_max |
| DATA_SOURCE | 0 | task | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | global &system_transition_mutex |
kernel/exit.c will_become_orphaned_pgrp() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 0 | task->signal | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &tasklist_lock | ||
| HALF_LOCKED2 | irq |
kernel/exit.c will_become_orphaned_pgrp() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &tasklist_lock | ||
| HALF_LOCKED2 | irq |
kernel/fork.c copy_process() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq |
drivers/tty/tty_jobctrl.c __proc_set_tty() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tty->ctrl.lock | ||
| LOCK2 | flags | ||
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| TYPE_LOCK | (struct tty_struct)->ctrl.lock |
drivers/tty/tty_jobctrl.c disassociate_ctty() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &tasklist_lock |
drivers/tty/tty_jobctrl.c session_of_pgrp() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 1-u64max |
| LOCK2 | &real_tty->ctrl.lock | ||
| LOCK2 | irq | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct tty_struct)->ctrl.lock |
drivers/tty/tty_jobctrl.c tiocsctty() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &tty->legacy_mutex | ||
| LOCK2 | global &tasklist_lock | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
drivers/tty/tty_jobctrl.c tiocspgrp() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &real_tty->ctrl.lock | ||
| LOCK2 | irq | ||
| TYPE_LOCK | (struct tty_struct)->ctrl.lock |
drivers/tty/tty_jobctrl.c tiocspgrp() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &real_tty->ctrl.lock | ||
| LOCK2 | irq | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct tty_struct)->ctrl.lock |
kernel/signal.c check_kill_permission() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| CAPPED_DATA | 0 | task->real_cred | 1 |
| DATA_SOURCE | 0 | task | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | task->parent->exit_code | 0,256-65280[c] |
| USER_DATA | 0 | task->real_parent->exit_code | 0,256-65280[c] |
| LOCK2 | rcu_read |
kernel/signal.c check_kill_permission() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_getsid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_getsid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 1-u64max |
| DATA_SOURCE | 0 | task | r find_task_by_vpid |
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_getsid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_getsid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 1-u64max |
| DATA_SOURCE | 0 | task | r find_task_by_vpid |
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_setpgid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| CAPPED_DATA | 0 | task->real_parent->signal | 1 |
| DATA_SOURCE | 0 | task | r find_task_by_vpid |
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq | ||
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_setpgid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| CAPPED_DATA | 0 | task->signal | 1 |
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq | ||
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_setpgid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 1-u64max |
| DATA_SOURCE | 0 | task | r pid_task |
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq | ||
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_setpgid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| CAPPED_DATA | 0 | task | 1 |
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq | ||
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_setpgid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| CAPPED_DATA | 0 | task->real_parent->signal | 1 |
| DATA_SOURCE | 0 | task | r find_task_by_vpid |
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq | ||
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_setpgid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| CAPPED_DATA | 0 | task->signal | 1 |
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq | ||
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_setpgid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 1-u64max |
| DATA_SOURCE | 0 | task | r pid_task |
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq | ||
| LOCK2 | rcu_read |
kernel/sys.c __do_sys_setpgid() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| CAPPED_DATA | 0 | task | 1 |
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq | ||
| LOCK2 | rcu_read |
kernel/sys.c set_special_pids() -> task_session()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | global &tasklist_lock | ||
| LOCK2 | irq |