Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
mm/rmap.c __anon_vma_prepare() -> anon_rmap_tree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | avc | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->anon_vma | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->anon_vma->root | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->same_vma.next | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->same_vma.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma->anon_vma | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma->vm_mm | 4096-ptr_max |
| PARAM_VALUE | 1 | anon_vma | 4096-ptr_max |
| PARAM_VALUE | 1 | anon_vma->root | 4096-ptr_max |
| DATA_SOURCE | 0 | avc | r anon_vma_chain_alloc |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | avc->vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | avc->vma->vm_pgoff | |
| LOCK2 | &mm->page_table_lock | ||
| LOCK2 | 1 | &anon_vma->root->rwsem | |
| HALF_LOCKED2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct anon_vma)->rwsem | ||
| TYPE_LOCK | (struct mm_struct)->page_table_lock |
mm/rmap.c anon_vma_clone() -> anon_rmap_tree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | avc | 4096-ptr_max |
| CAPPED_DATA | 0 | &avc->same_vma | 1 |
| NOSPEC | 0 | avc->vma->vm_pgoff | |
| NOSPEC | 0 | avc->vma->vm_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | avc->vma->vm_end | 0-u64max |
| USER_DATA | 0 | avc->vma->vm_pgoff | 0-4503599627370495[c] |
| USER_DATA | 0 | avc->vma->vm_start | 0-u64max |
| LOCK2 | &src->anon_vma->root->rwsem | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &oldmm->mmap_lock | ||
| TYPE_LOCK | (struct anon_vma)->rwsem |
mm/rmap.c anon_vma_fork() -> anon_rmap_tree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | avc | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->anon_vma | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->anon_vma->num_active_vmas | 1 |
| PARAM_VALUE | 0 | avc->anon_vma->num_children | 0 |
| PARAM_VALUE | 0 | avc->anon_vma->parent | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->anon_vma->refcount.counter | 1 |
| PARAM_VALUE | 0 | avc->anon_vma->root | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->same_vma.next | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->same_vma.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma->anon_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma->anon_vma | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma->anon_vma_chain.next | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma->anon_vma_chain.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma->numab_state | 0 |
| PARAM_VALUE | 0 | avc->vma->pfnmap_track_ctx | 0,4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma->vm_lock_seq | u32max |
| PARAM_VALUE | 0 | avc->vma->vm_mm | 4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma->vm_policy | 0,4096-ptr_max |
| PARAM_VALUE | 0 | avc->vma->vm_refcnt.refs.counter | 0 |
| PARAM_VALUE | 0 | avc->vma->vmlock_dep_map.cpu | 0 |
| PARAM_VALUE | 0 | avc->vma->vmlock_dep_map.lock_type | 0 |
| PARAM_VALUE | 1 | anon_vma | 4096-ptr_max |
| PARAM_VALUE | 1 | anon_vma->num_active_vmas | 1 |
| PARAM_VALUE | 1 | anon_vma->num_children | 0 |
| PARAM_VALUE | 1 | anon_vma->parent | 4096-ptr_max |
| PARAM_VALUE | 1 | anon_vma->parent->root | 4096-ptr_max |
| PARAM_VALUE | 1 | anon_vma->refcount.counter | 1 |
| PARAM_VALUE | 1 | anon_vma->root | 4096-ptr_max |
| DATA_SOURCE | 0 | avc | r anon_vma_chain_alloc |
| DATA_SOURCE | 1 | anon_vma | r anon_vma_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | avc->vma->vm_start | |
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &oldmm->mmap_lock | ||
| LOCK2 | 1 | &anon_vma->root->rwsem | |
| TYPE_LOCK | (struct anon_vma)->rwsem | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/vma.c anon_rmap_tree_post_update_vma() -> anon_rmap_tree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | avc | 4096-ptr_max |
| CAPPED_DATA | 0 | &avc->same_vma | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &vma->anon_vma->root->rwsem |