Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

kernel/trace/trace_events_user.c user_event_enabler_write() -> pin_user_pages_remote()

Type Parameter Key Value
PARAM_VALUE 0 mm 4096-ptr_max
PARAM_VALUE 0 mm->mmap_lock.dep_map->name 0-255
PARAM_VALUE 0 mm->mmap_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 mm->mmap_lock.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 mm->mmap_lock.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 mm->mmap_lock.first_waiter->type 0-1
PARAM_VALUE 2 nr_pages 1
PARAM_VALUE 3 gup_flags 33
PARAM_VALUE 4 pages 3253380833423654912
PARAM_VALUE 5 locked 0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 start 0-u64max
UNITS 0 mm unit_byte
LOCK2 0 &mm->mmap_lock
HALF_LOCKED2 &group->reg_mutex
HALF_LOCKED2 global &event_mutex
TYPE_LOCK (struct mm_struct)->mmap_lock

drivers/iommu/iommufd/pages.c iopt_pages_rw_page() -> pin_user_pages_remote()

Type Parameter Key Value
PARAM_VALUE 0 mm 4096-ptr_max
PARAM_VALUE 0 mm->exe_file->f_cred->process_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->process_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->request_key_auth->user->qnbytes s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->request_key_auth->user->qnkeys s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->session_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->session_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->thread_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->thread_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 0 mm->mm_users.counter 0-s32max
PARAM_VALUE 0 mm->mmap_lock.dep_map->name 0-255
PARAM_VALUE 0 mm->mmap_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 mm->mmap_lock.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 mm->mmap_lock.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 mm->mmap_lock.first_waiter->type 0-1
PARAM_VALUE 1 start 4096-18446744073709547520
PARAM_VALUE 2 nr_pages 1
PARAM_VALUE 3 gup_flags 0-1
PARAM_VALUE 4 pages 9081811440820338688
PARAM_VALUE 4 *pages 0
PARAM_VALUE 5 locked 0
FUZZY_MAX 3 gup_flags 1
HARD_MAX 3 gup_flags 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 mm unit_byte
UNITS 1 start unit_byte
LOCK2 &access->ioas_lock
LOCK2 &iopt->iova_rwsem
LOCK2 0 &mm->mmap_lock
TYPE_LOCK (struct io_pagetable)->iova_rwsem
TYPE_LOCK (struct iommufd_access)->ioas_lock
TYPE_LOCK (struct mm_struct)->mmap_lock

drivers/iommu/iommufd/pages.c pfn_reader_user_pin() -> pin_user_pages_remote()

Type Parameter Key Value
PARAM_VALUE 0 mm->mmap_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 mm->mmap_lock.first_waiter->type 0-1
PARAM_VALUE 1 start 4096-18446744073709547520
PARAM_VALUE 3 gup_flags 256-257
PARAM_VALUE 4 pages 1-u64max
PARAM_VALUE 5 locked 5386030719981474044,6270772229982597372,8717662312254873852,8931018345647517732
PARAM_VALUE 5 *locked s32min-(-2),1-s32max
BUF_SIZE 4 pages (-1),1-s32max
BUF_SIZE 4 pages (-1),1-s32max
CAPPED_DATA 2 nr_pages 1
CAPPED_DATA 2 nr_pages 1
FUZZY_MAX 1 start 18446744073709547520
HARD_MAX 1 start 18446744073709547520
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 mm unit_byte
UNITS 1 start unit_byte
UNITS 2 nr_pages unit_byte
UNITS 4 pages unit_byte
HALF_LOCKED2 &access->ioas_lock
HALF_LOCKED2 &iopt->iova_rwsem
HALF_LOCKED2 &pages->mutex
HALF_LOCKED2 0 &mm->mmap_lock

drivers/vfio/vfio_iommu_type1.c vaddr_get_pfns() -> pin_user_pages_remote()

Type Parameter Key Value
PARAM_VALUE 0 mm 4096-ptr_max
PARAM_VALUE 0 mm->mmap_lock.dep_map->name 0-255
PARAM_VALUE 0 mm->mmap_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 mm->mmap_lock.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 mm->mmap_lock.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 mm->mmap_lock.first_waiter->type 0-1
PARAM_VALUE 2 nr_pages 1-u64max
PARAM_VALUE 3 gup_flags 256-257
PARAM_VALUE 4 pages 1317336150460383240,4252750889291898888,5599497713020538888,18379471554275704832,18446612682070032384
PARAM_VALUE 5 locked 0
CAPPED_DATA 2 nr_pages 1
CAPPED_DATA 2 nr_pages 1
DATA_SOURCE 0 mm $0
DATA_SOURCE 1 start $1
BIT_INFO 3 gup_flags 0x100,0x101
USER_DATA 2 nr_pages 1-s32max[c]
UNITS 0 mm unit_byte
UNITS 1 start unit_byte
UNITS 2 nr_pages unit_page
LOCK2 &iommu->lock
LOCK2 0 &mm->mmap_lock
HALF_LOCKED2 &vgpu->cache_lock
TYPE_LOCK (struct mm_struct)->mmap_lock
TYPE_LOCK (struct vfio_iommu)->lock

mm/process_vm_access.c process_vm_rw_single_vec() -> pin_user_pages_remote()

Type Parameter Key Value
PARAM_VALUE 0 mm 4096-ptr_max
PARAM_VALUE 0 mm->exe_file->f_cred->process_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->process_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->request_key_auth->user->qnbytes s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->request_key_auth->user->qnkeys s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->session_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->session_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->thread_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 0 mm->exe_file->f_cred->thread_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 0 mm->mmap_lock.dep_map->name 0-255
PARAM_VALUE 0 mm->mmap_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 mm->mmap_lock.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 mm->mmap_lock.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 mm->mmap_lock.first_waiter->type 0-1
PARAM_VALUE 1 start 0,4096-u64max
PARAM_VALUE 2 nr_pages 1-1024
PARAM_VALUE 3 gup_flags 0-1
PARAM_VALUE 4 pages 16,4096-ptr_max
PARAM_VALUE 5 locked 3821547816021008384
PARAM_VALUE 5 *locked 1
BUF_SIZE 4 pages 0-8192
BUF_SIZE 4 pages 0-8192
CAPPED_DATA 0 mm 1
CAPPED_DATA 2 nr_pages 1
DATA_SOURCE 0 mm $4
DATA_SOURCE 4 pages $3
FUZZY_MAX 3 gup_flags 0
UNITS 1 start unit_byte
UNITS 2 nr_pages unit_page
LOCK2 0 &mm->mmap_lock
TYPE_LOCK (struct mm_struct)->mmap_lock