Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

mm/memory.c copy_present_ptes() -> __copy_present_ptes()

Type Parameter Key Value
PARAM_VALUE 0 dst_vma 4096-ptr_max
PARAM_VALUE 0 dst_vma->anon_name 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->anon_vma_chain.next->next 4096-ptr_max
PARAM_VALUE 0 dst_vma->anon_vma_chain.prev 4096-ptr_max
PARAM_VALUE 0 dst_vma->anon_vma_chain.prev->next 4096-ptr_max
PARAM_VALUE 0 dst_vma->anon_vma_chain.prev->prev 4096-ptr_max
PARAM_VALUE 0 dst_vma->flags.__vma_flags 4096-ptr_max
PARAM_VALUE 0 dst_vma->numab_state 0
PARAM_VALUE 0 dst_vma->pfnmap_track_ctx 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_file 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_file->f_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 dst_vma->vm_file->f_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 dst_vma->vm_file->f_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 dst_vma->vm_mm 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->context.ldt 0
PARAM_VALUE 0 dst_vma->vm_mm->context.ldt_usr_sem.magic 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->context.lock.magic 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->context.tlb_gen.counter 0
PARAM_VALUE 0 dst_vma->vm_mm->context.untag_mask u64max
PARAM_VALUE 0 dst_vma->vm_mm->def_flags 0,1073741824
PARAM_VALUE 0 dst_vma->vm_mm->exe_file 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->hugetlb_usage.counter 0
PARAM_VALUE 0 dst_vma->vm_mm->ioctx_table 0
PARAM_VALUE 0 dst_vma->vm_mm->iommu_mm 0
PARAM_VALUE 0 dst_vma->vm_mm->iommu_mm->pasid 0-4294967295
PARAM_VALUE 0 dst_vma->vm_mm->locked_vm 0
PARAM_VALUE 0 dst_vma->vm_mm->lru_gen.bitmap 0
PARAM_VALUE 0 dst_vma->vm_mm->lru_gen.memcg 0
PARAM_VALUE 0 dst_vma->vm_mm->map_count 0-s32max
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.lock.magic 3735899821
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.lock.owner (-1)
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.lock.owner_cpu u32max
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.max_cids 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.mode 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.mutex.magic 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.pcpu 1-u64max
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.pcpu_thrs 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.update_deferred 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.users 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_count.counter 1
PARAM_VALUE 0 dst_vma->vm_mm->mm_id 0-s32max
PARAM_VALUE 0 dst_vma->vm_mm->mm_mt.ma_flags 771
PARAM_VALUE 0 dst_vma->vm_mm->mm_mt.ma_root 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_users.counter 1
PARAM_VALUE 0 dst_vma->vm_mm->mmap_lock.count.counter 0
PARAM_VALUE 0 dst_vma->vm_mm->mmap_lock.first_waiter 0
PARAM_VALUE 0 dst_vma->vm_mm->mmap_lock.magic 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->mmap_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 dst_vma->vm_mm->mmap_lock.owner.counter 0
PARAM_VALUE 0 dst_vma->vm_mm->notifier_subscriptions 0
PARAM_VALUE 0 dst_vma->vm_mm->owner 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->page_table_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dst_vma->vm_mm->pgd 18379471554275704832,18446612682070032384
PARAM_VALUE 0 dst_vma->vm_mm->pinned_vm.counter 0
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.cpu (-1)
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.footprint 0
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.lock.magic 3735899821
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.lock.owner (-1)
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.lock.owner_cpu u32max
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.nr_running_avg 0
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.pcpu_sched 1-u64max
PARAM_VALUE 0 dst_vma->vm_mm->uprobes_state.xol_area 0
PARAM_VALUE 0 dst_vma->vm_mm->vma_writer_wait.task 0
PARAM_VALUE 0 dst_vma->vm_ops 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_ops->open 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_policy 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_policy->refcnt.counter 1
PARAM_VALUE 0 dst_vma->vm_refcnt.refs.counter 0-1
PARAM_VALUE 0 dst_vma->vm_userfaultfd_ctx.ctx->map_changing_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 dst_vma->vm_userfaultfd_ctx.ctx->map_changing_lock.first_waiter->type 0-1
PARAM_VALUE 0 dst_vma->vmlock_dep_map->name 0-255
PARAM_VALUE 0 dst_vma->vmlock_dep_map.cpu 0
PARAM_VALUE 0 dst_vma->vmlock_dep_map.lock_type 0
PARAM_VALUE 0 dst_vma->vmlock_dep_map.wait_type_inner 0
PARAM_VALUE 0 dst_vma->vmlock_dep_map.wait_type_outer 0
PARAM_VALUE 1 src_vma 4096-ptr_max
PARAM_VALUE 1 src_vma->anon_name 0,4096-ptr_max
PARAM_VALUE 1 src_vma->flags.__vma_flags 4096-ptr_max
PARAM_VALUE 1 src_vma->pfnmap_track_ctx 0,4096-ptr_max
PARAM_VALUE 1 src_vma->vm_mm 4096-ptr_max
PARAM_VALUE 1 src_vma->vm_mm->iommu_mm->pasid 0-4294967295
PARAM_VALUE 1 src_vma->vm_mm->notifier_subscriptions->has_itree 0-1
PARAM_VALUE 1 src_vma->vm_ops->open 0,4096-ptr_max
PARAM_VALUE 3 src_pte 4096-ptr_max
BUF_SIZE 0 dst_vma (-1),1-s32max
BUF_SIZE 0 dst_vma (-1),1-s32max
BUF_SIZE 0 dst_vma->vm_mm (-1),1-s32max
CAPPED_DATA 0 dst_vma->vm_mm->mm_id 1
CAPPED_DATA 1 src_vma->vm_policy 1
CAPPED_DATA 4 &pte 1
CAPPED_DATA 6 nr 1
DATA_SOURCE 0 dst_vma $0
DATA_SOURCE 1 src_vma $1
DATA_SOURCE 2 dst_pte $2
DATA_SOURCE 3 src_pte $3
DATA_SOURCE 4 pte $4 [m]
DATA_SOURCE 5 addr $5
DATA_SOURCE 6 nr r folio_pte_batch_flags
BIT_INFO 0 dst_vma->vm_flags 0x0,0xfffffffffdffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 dst_vma->vm_start
UNITS 0 dst_vma unit_byte
UNITS 5 addr unit_byte
LOCK2 &mm->mmap_lock
LOCK2 &oldmm->mmap_lock
LOCK2 dst_ptl
LOCK2 rcu_read
LOCK2 src_ptl
TYPE_LOCK (struct mm_struct)->mmap_lock

mm/memory.c copy_present_ptes() -> __copy_present_ptes()

Type Parameter Key Value
PARAM_VALUE 0 dst_vma 4096-ptr_max
PARAM_VALUE 0 dst_vma->anon_name 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->anon_vma_chain.next->next 4096-ptr_max
PARAM_VALUE 0 dst_vma->anon_vma_chain.prev 4096-ptr_max
PARAM_VALUE 0 dst_vma->anon_vma_chain.prev->next 4096-ptr_max
PARAM_VALUE 0 dst_vma->anon_vma_chain.prev->prev 4096-ptr_max
PARAM_VALUE 0 dst_vma->flags.__vma_flags 4096-ptr_max
PARAM_VALUE 0 dst_vma->numab_state 0
PARAM_VALUE 0 dst_vma->pfnmap_track_ctx 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_file 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_file->f_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 dst_vma->vm_file->f_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 dst_vma->vm_file->f_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 dst_vma->vm_mm 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->context.ldt 0
PARAM_VALUE 0 dst_vma->vm_mm->context.ldt_usr_sem.magic 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->context.lock.magic 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->context.tlb_gen.counter 0
PARAM_VALUE 0 dst_vma->vm_mm->context.untag_mask u64max
PARAM_VALUE 0 dst_vma->vm_mm->def_flags 0,1073741824
PARAM_VALUE 0 dst_vma->vm_mm->exe_file 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->hugetlb_usage.counter 0
PARAM_VALUE 0 dst_vma->vm_mm->ioctx_table 0
PARAM_VALUE 0 dst_vma->vm_mm->iommu_mm 0
PARAM_VALUE 0 dst_vma->vm_mm->iommu_mm->pasid 0-4294967295
PARAM_VALUE 0 dst_vma->vm_mm->locked_vm 0
PARAM_VALUE 0 dst_vma->vm_mm->lru_gen.bitmap 0
PARAM_VALUE 0 dst_vma->vm_mm->lru_gen.memcg 0
PARAM_VALUE 0 dst_vma->vm_mm->map_count 0-s32max
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.lock.magic 3735899821
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.lock.owner (-1)
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.lock.owner_cpu u32max
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.max_cids 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.mode 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.mutex.magic 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.pcpu 1-u64max
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.pcpu_thrs 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.update_deferred 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_cid.users 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_count.counter 1
PARAM_VALUE 0 dst_vma->vm_mm->mm_id 0-s32max
PARAM_VALUE 0 dst_vma->vm_mm->mm_mt.ma_flags 771
PARAM_VALUE 0 dst_vma->vm_mm->mm_mt.ma_root 0
PARAM_VALUE 0 dst_vma->vm_mm->mm_users.counter 1
PARAM_VALUE 0 dst_vma->vm_mm->mmap_lock.count.counter 0
PARAM_VALUE 0 dst_vma->vm_mm->mmap_lock.first_waiter 0
PARAM_VALUE 0 dst_vma->vm_mm->mmap_lock.magic 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->mmap_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 dst_vma->vm_mm->mmap_lock.owner.counter 0
PARAM_VALUE 0 dst_vma->vm_mm->notifier_subscriptions 0
PARAM_VALUE 0 dst_vma->vm_mm->owner 4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_mm->page_table_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dst_vma->vm_mm->pgd 18379471554275704832,18446612682070032384
PARAM_VALUE 0 dst_vma->vm_mm->pinned_vm.counter 0
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.cpu (-1)
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.footprint 0
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.lock.magic 3735899821
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.lock.owner (-1)
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.lock.owner_cpu u32max
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.nr_running_avg 0
PARAM_VALUE 0 dst_vma->vm_mm->sc_stat.pcpu_sched 1-u64max
PARAM_VALUE 0 dst_vma->vm_mm->uprobes_state.xol_area 0
PARAM_VALUE 0 dst_vma->vm_mm->vma_writer_wait.task 0
PARAM_VALUE 0 dst_vma->vm_ops 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_ops->open 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_policy 0,4096-ptr_max
PARAM_VALUE 0 dst_vma->vm_policy->refcnt.counter 1
PARAM_VALUE 0 dst_vma->vm_refcnt.refs.counter 0-1
PARAM_VALUE 0 dst_vma->vm_userfaultfd_ctx.ctx->map_changing_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 dst_vma->vm_userfaultfd_ctx.ctx->map_changing_lock.first_waiter->type 0-1
PARAM_VALUE 0 dst_vma->vmlock_dep_map->name 0-255
PARAM_VALUE 0 dst_vma->vmlock_dep_map.cpu 0
PARAM_VALUE 0 dst_vma->vmlock_dep_map.lock_type 0
PARAM_VALUE 0 dst_vma->vmlock_dep_map.wait_type_inner 0
PARAM_VALUE 0 dst_vma->vmlock_dep_map.wait_type_outer 0
PARAM_VALUE 1 src_vma 4096-ptr_max
PARAM_VALUE 1 src_vma->anon_name 0,4096-ptr_max
PARAM_VALUE 1 src_vma->flags.__vma_flags 4096-ptr_max
PARAM_VALUE 1 src_vma->pfnmap_track_ctx 0,4096-ptr_max
PARAM_VALUE 1 src_vma->vm_mm 4096-ptr_max
PARAM_VALUE 1 src_vma->vm_mm->iommu_mm->pasid 0-4294967295
PARAM_VALUE 1 src_vma->vm_mm->notifier_subscriptions->has_itree 0-1
PARAM_VALUE 1 src_vma->vm_ops->open 0,4096-ptr_max
PARAM_VALUE 3 src_pte 4096-ptr_max
PARAM_VALUE 6 nr 1
BUF_SIZE 0 dst_vma (-1),1-s32max
BUF_SIZE 0 dst_vma (-1),1-s32max
BUF_SIZE 0 dst_vma->vm_mm (-1),1-s32max
CAPPED_DATA 0 dst_vma->vm_mm->mm_id 1
CAPPED_DATA 1 src_vma->vm_policy 1
DATA_SOURCE 0 dst_vma $0
DATA_SOURCE 1 src_vma $1
DATA_SOURCE 2 dst_pte $2
DATA_SOURCE 3 src_pte $3
DATA_SOURCE 4 pte $4
DATA_SOURCE 5 addr $5
BIT_INFO 0 dst_vma->vm_flags 0x0,0xfffffffffdffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 dst_vma->vm_start
UNITS 0 dst_vma unit_byte
UNITS 5 addr unit_byte
LOCK2 &mm->mmap_lock
LOCK2 &oldmm->mmap_lock
LOCK2 dst_ptl
LOCK2 rcu_read
LOCK2 src_ptl
TYPE_LOCK (struct mm_struct)->mmap_lock