Defined in 1 files as a member:

Defined in 1 files as a function:

Referenced in 22 files:

Smatch caller information:

fs/coredump.c coredump_parse() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

fs/coredump.c coredump_sock_connect() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

security/landlock/fs.c hook_file_set_fowner() -> task_tgid()

Type Parameter Key Value

kernel/time/posix-cpu-timers.c check_cpu_itimer() -> task_tgid()

Type Parameter Key Value
PARAM_VALUE 0 task 4096-ptr_max
CAPPED_DATA 0 task 1
DATA_SOURCE 0 task $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &cw->mutex
LOCK2 flags
LOCK2 0 &task->sighand->siglock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 bh
HALF_LOCKED2 rcu
TYPE_LOCK (struct posix_cputimers_work)->mutex
TYPE_LOCK (struct sighand_struct)->siglock

kernel/time/posix-cpu-timers.c pid_for_clock() -> task_tgid()

Type Parameter Key Value
LOCK2 rcu_read

kernel/time/posix-cpu-timers.c pid_for_clock() -> task_tgid()

Type Parameter Key Value
LOCK2 rcu_read

drivers/gpu/drm/drm_file.c drm_file_alloc() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/drm_file.c drm_file_update_pid() -> task_tgid()

Type Parameter Key Value

security/landlock/task.c hook_file_send_sigiotask() -> task_tgid()

Type Parameter Key Value
DATA_SOURCE 0 task $0

arch/x86/kvm/i8254.c kvm_create_pit() -> task_tgid()

Type Parameter Key Value
LOCK2 &kvm->lock
TYPE_LOCK (struct kvm)->lock

ipc/sem.c __do_semtimedop() -> task_tgid()

Type Parameter Key Value
LOCK2 rcu_read
LOCK2 sma

ipc/sem.c exit_sem() -> task_tgid()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
LOCK2 sma

ipc/sem.c semctl_main() -> task_tgid()

Type Parameter Key Value
LOCK2 rcu_read
LOCK2 sma

ipc/sem.c semctl_setval() -> task_tgid()

Type Parameter Key Value
LOCK2 rcu_read
LOCK2 sma

kernel/audit.c audit_receive_msg() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &audit_cmd_mutex.lock
HALF_LOCKED2 &dev->ethtool->rss_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 rcu_read

kernel/audit.c auditd_test_task() -> task_tgid()

Type Parameter Key Value
DATA_SOURCE 0 task $0
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]
USER_DATA 0 task->signal->group_exit_code 0,256-65280[c]
LOCK2 rcu_read

ipc/msg.c do_msgrcv() -> task_tgid()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
LOCK2 &msq->q_perm.lock
LOCK2 rcu_read
TYPE_LOCK (struct kern_ipc_perm)->lock

ipc/msg.c do_msgsnd() -> task_tgid()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
LOCK2 &msq->q_perm.lock
LOCK2 rcu_read
TYPE_LOCK (struct kern_ipc_perm)->lock

security/landlock/domain.c get_current_details() -> task_tgid()

Type Parameter Key Value

drivers/misc/genwqe/card_dev.c genwqe_add_file() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

net/unix/af_unix.c prepare_peercred() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

net/unix/af_unix.c scm_send() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &vq->mutex

net/unix/af_unix.c unix_maybe_add_creds() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &vq->mutex

kernel/time/posix-timers.c do_timer_create() -> task_tgid()

Type Parameter Key Value

kernel/time/posix-timers.c good_sigevent() -> task_tgid()

Type Parameter Key Value
LOCK2 rcu_read

fs/notify/fanotify/fanotify.c fanotify_alloc_event() -> task_tgid()

Type Parameter Key Value

net/bluetooth/af_bluetooth.c bt_sock_alloc() -> task_tgid()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sk->sk_peer_lock
TYPE_LOCK (struct sock)->sk_peer_lock

fs/notify/fanotify/fanotify_user.c copy_event_to_user() -> task_tgid()

Type Parameter Key Value

ipc/shm.c __shm_close() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ipcp->lock
LOCK2 rcu_read

ipc/shm.c __shm_open() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ipcp->lock
LOCK2 rcu_read

ipc/shm.c newseg() -> task_tgid()

Type Parameter Key Value
LOCK2 &ids->rwsem
TYPE_LOCK (struct ipc_ids)->rwsem

net/netlink/af_netlink.c scm_send() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &vq->mutex

drivers/gpu/drm/drm_auth.c drm_master_check_perm() -> task_tgid()

Type Parameter Key Value
LOCK2 _T->lock

ipc/mqueue.c do_mq_notify() -> task_tgid()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
LOCK2 &info->lock
TYPE_LOCK (struct mqueue_inode_info)->lock

ipc/mqueue.c do_mq_notify() -> task_tgid()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
LOCK2 &info->lock
TYPE_LOCK (struct mqueue_inode_info)->lock

ipc/mqueue.c mqueue_flush_file() -> task_tgid()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &info->lock
TYPE_LOCK (struct mqueue_inode_info)->lock

fs/fuse/file.c fuse_setlk() -> task_tgid()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING