Defined in 1 files as a function:
Referenced in 12 files:
- drivers/iommu/iommufd/pages.c, line 962
- drivers/vfio/vfio_iommu_type1.c, line 866
- fs/proc/array.c, line 286
- include/linux/sched/signal.h, line 772
- io_uring/io-wq.c
- kernel/sched/rt.c, line 2511
- kernel/sched/syscalls.c
- kernel/signal.c, line 406
- kernel/time/posix-cpu-timers.c
- kernel/watch_queue.c, line 474
- mm/util.c
- net/unix/af_unix.c, line 1926
Smatch caller information:
fs/coredump.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 4 |
| DATA_SOURCE | 1 | limit | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/fork.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 6 |
| DATA_SOURCE | 1 | limit | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
arch/x86/kernel/shstk.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 3 |
| DATA_SOURCE | 1 | limit | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
io_uring/rsrc.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 7-8 |
| DATA_SOURCE | 1 | limit | $0 |
| HARD_MAX | 1 | limit | 8 |
| RX_PATH | |||
| HALF_LOCKED2 | &ctx->uring_lock |
fs/attr.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 1 |
| DATA_SOURCE | 1 | limit | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &inode->i_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &mapping->invalidate_lock | ||
| HALF_LOCKED2 | &src->i_rwsem | ||
| HALF_LOCKED2 | &vi->i_rwsem |
fs/file.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 7 |
| DATA_SOURCE | 1 | limit | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/mmap.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 2,8-9 |
| DATA_SOURCE | 1 | limit | $0 |
| HARD_MAX | 1 | limit | 9 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |
io_uring/openclose.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 7 |
| DATA_SOURCE | 1 | limit | $0 |
| LOCK2 | &ctx->uring_lock | ||
| HALF_LOCKED2 | &sqd->lock | ||
| TYPE_LOCK | (struct io_ring_ctx)->uring_lock |
kernel/time/posix-cpu-timers.c check_process_timers() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 1 | limit | 0 |
| 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 | bh | ||
| HALF_LOCKED2 | rcu | ||
| TYPE_LOCK | (struct posix_cputimers_work)->mutex | ||
| TYPE_LOCK | (struct sighand_struct)->siglock |
kernel/time/posix-cpu-timers.c check_thread_timers() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 1 | limit | 15 |
| 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 | bh | ||
| HALF_LOCKED2 | rcu | ||
| TYPE_LOCK | (struct posix_cputimers_work)->mutex | ||
| TYPE_LOCK | (struct sighand_struct)->siglock |
drivers/vhost/vdpa.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->mm->mmap_lock | ||
| LOCK2 | &dev->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
net/core/skbuff.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| CAPABLE | 0 | 14 | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/android/binder.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 13 |
| DATA_SOURCE | 1 | limit | $0 |
| TASK_NOT_RUNNING |
drivers/iommu/iommufd/pages.c incr_user_locked_vm() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| RX_PATH | |||
| HALF_LOCKED2 | &ictx->ioas_creation_lock | ||
| HALF_LOCKED2 | &pages->mutex |
mm/util.c __account_locked_vm() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 0 | task | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/util.c __account_locked_vm() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 0 | task | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
fs/proc/array.c task_sig() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 0 | task->signal | 4096-ptr_max |
| PARAM_VALUE | 1 | limit | 11 |
| CAPPED_DATA | 0 | task->real_cred | 1 |
| CAPPED_DATA | 0 | task->real_cred->group_info->ngroups | 1 |
| DATA_SOURCE | 0 | task | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/read_write.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 1 |
| DATA_SOURCE | 1 | limit | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
io_uring/io-wq.c io_wq_create() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 6 |
io_uring/io-wq.c io_wq_max_workers() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 6 |
| HALF_LOCKED2 | &ctx->tctx_lock | ||
| HALF_LOCKED2 | &ctx->uring_lock |
io_uring/io-wq.c io_wq_max_workers() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 6 |
| HALF_LOCKED2 | &ctx->tctx_lock | ||
| HALF_LOCKED2 | &ctx->uring_lock |
kernel/watch_queue.c add_one_watch() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 7 |
| PREEMPT_ADD | |||
| LOCK2 | &key->sem | ||
| LOCK2 | &wlist->lock | ||
| LOCK2 | &wqueue->lock | ||
| LOCK2 | bh | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct key)->sem | ||
| TYPE_LOCK | (struct watch_list)->lock | ||
| TYPE_LOCK | (struct watch_queue)->lock |
arch/x86/kvm/svm/sev.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| LOCK2 | _T->lock |
kernel/sched/build_policy.c is_nice_reduction() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 13 |
| DATA_SOURCE | 0 | task | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | task->dl.pi_se->dl_runtime |
kernel/sched/build_policy.c user_check_sched_setscheduler() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 14 |
| DATA_SOURCE | 0 | task | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | task->dl.dl_runtime |
kernel/sched/build_policy.c watchdog() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 1 | limit | 15 |
| DATA_SOURCE | 0 | task | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/vma.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 3 |
| DATA_SOURCE | 1 | limit | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &vma->anon_vma->root->rwsem | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct anon_vma)->rwsem |
drivers/infiniband/core/umem.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &context->db_page_mutex |
net/unix/af_unix.c too_many_unix_fds() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 7 |
| DATA_SOURCE | 0 | task | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &vq->mutex |
drivers/accel/amdxdna/amdxdna_ubuf.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
io_uring/net.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 7 |
| DATA_SOURCE | 1 | limit | $0 |
| LOCK2 | &ctx->uring_lock | ||
| HALF_LOCKED2 | &sqd->lock | ||
| TYPE_LOCK | (struct io_ring_ctx)->uring_lock |
kernel/acct.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 1 |
| DATA_SOURCE | 1 | limit | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &system_transition_mutex |
kernel/events/core.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &ipcp->lock |
drivers/vdpa/vdpa_user/vduse_dev.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| LOCK2 | &dev->domain_lock | ||
| TYPE_LOCK | (struct vduse_dev)->domain_lock |
kernel/user_namespace.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 6,8,11-12 |
| DATA_SOURCE | 1 | limit | $0 |
| HARD_MAX | 1 | limit | 12 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/vfio/vfio_iommu_type1.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| LOCK2 | &iommu->lock | ||
| HALF_LOCKED2 | &container->group_lock | ||
| TYPE_LOCK | (struct vfio_iommu)->lock |
drivers/vfio/vfio_iommu_type1.c vfio_pin_page_external() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 1 | limit | 8 |
| LOCK2 | &iommu->lock | ||
| LOCK2 | &vgpu->cache_lock | ||
| HALF_LOCKED2 | &vgpu->vgpu_lock | ||
| TYPE_LOCK | (struct intel_vgpu)->cache_lock | ||
| TYPE_LOCK | (struct vfio_iommu)->lock |
drivers/infiniband/hw/usnic/usnic_uiom.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
fs/select.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 7 |
| DATA_SOURCE | 1 | limit | $0 |
kernel/signal.c sig_get_ucounts() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 1 | limit | 11 |
| BUF_SIZE | 0 | task | (-1),1-s32max |
| BUF_SIZE | 0 | task | (-1),1-s32max |
| BUF_SIZE | 0 | task->group_leader | (-1),1-s32max |
| BUF_SIZE | 0 | task->mempolicy | (-1),1-s32max |
| DATA_SOURCE | 0 | task | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | task->exit_signal | 1-64[c] |
| USER_DATA | 0 | task->parent->exit_code | 0,256-65280[c] |
| USER_DATA | 0 | task->ptrace | 65537,65545-33619953[c] |
| USER_DATA | 0 | task->real_parent->exit_code | 0,256-65280[c] |
| NO_OVERFLOW_SIMPLE | 0 | task->dl.pi_se->dl_runtime | |
| UNITS | 0 | task | unit_byte |
| HALF_LOCKED2 | 0 | &task->alloc_lock | |
| HALF_LOCKED2 | 0 | &task->sighand->siglock |
kernel/sys.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 2,6 |
| DATA_SOURCE | 1 | limit | $0 |
| HARD_MAX | 1 | limit | 6 |
| PREEMPT_ADD |
fs/zonefs/file.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 1 |
| DATA_SOURCE | 1 | limit | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
drivers/infiniband/hw/hfi1/user_pages.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| CAPABLE | 0 | 14 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fd->pq_srcu |
mm/mlock.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
ipc/shm.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| NS_CAPABLE | 0 | 14 | |
| PREEMPT_ADD | |||
| LOCK2 | &shp->shm_perm.lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct kern_ipc_perm)->lock |
security/selinux/hooks.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 0 |
| DATA_SOURCE | 1 | limit | $0 |
fs/exec.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 6 |
| DATA_SOURCE | 1 | limit | $0 |
net/xdp/xdp_umem.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 8 |
| DATA_SOURCE | 1 | limit | $0 |
| CAPABLE | 0 | 14 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &xs->mutex | ||
| HALF_LOCKED2 | &smc->clcsock_release_lock | ||
| TYPE_LOCK | (struct xdp_sock)->mutex |
ipc/mqueue.c rlimit() -> task_rlimit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | limit | 12 |
| DATA_SOURCE | 1 | limit | $0 |
| CAPABLE | 0 | 24 | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &mq_lock |