Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 21 files:
- arch/powerpc/kvm/book3s_xive_native.c
- arch/powerpc/platforms/book3s/vas-api.c, line 438
- arch/powerpc/platforms/cell/spufs/file.c
- arch/x86/entry/vdso/vma.c, line 133
- arch/x86/kernel/cpu/sgx/encl.c
- arch/x86/kernel/cpu/sgx/virt.c, line 61
- drivers/accel/amdxdna/amdxdna_cbuf.c, line 174
- drivers/dma-buf/heaps/cma_heap.c, line 177
- drivers/dma-buf/udmabuf.c
- drivers/gpu/drm/armada/armada_gem.c, line 28
- drivers/gpu/drm/drm_gem_shmem_helper.c, line 610
- drivers/gpu/drm/etnaviv/etnaviv_gem.c, line 199
- drivers/gpu/drm/gma500/gem.c, line 298
- drivers/gpu/drm/msm/msm_gem.c, line 371
- drivers/gpu/drm/panthor/panthor_gem.c, line 800
- drivers/gpu/drm/xe/xe_mmio_gem.c
- drivers/misc/ocxl/context.c
- drivers/misc/ocxl/sysfs.c, line 120
- drivers/vfio/pci/vfio_pci_core.c, line 1769
- drivers/vhost/vdpa.c, line 1526
- mm/memory.c, line 2937
Smatch caller information:
drivers/vfio/pci/vfio_pci_core.c vfio_pci_vmf_insert_pfn() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_mm->mmap_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm->mmap_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->sched_class->uclamp_enabled | 0-1 |
| PARAM_VALUE | 2 | pfn | 0-9007199523176445 |
| BUF_SIZE | 0 | vma | (-1),1-s32max |
| BUF_SIZE | 0 | vma | (-1),1-s32max |
| CAPPED_DATA | 0 | vma | 1 |
| DATA_SOURCE | 2 | pfn | $2 |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| USER_DATA | 2 | pfn | 0-9007199523176445[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | _T->lock |
arch/x86/kernel/cpu/sgx/virt.c __sgx_vepc_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 2 | pfn | 0-4503599627370495 |
| DATA_SOURCE | 0 | vma | $1 |
| DATA_SOURCE | 1 | addr | $2 |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | &vepc->lock | ||
| TYPE_LOCK | (struct sgx_vepc)->lock |
arch/x86/entry/vdso/vma.c vvar_vclock_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_mm->mmap_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm->mmap_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->sched_class->uclamp_enabled | 0-1 |
| PARAM_VALUE | 2 | pfn | 1-4503599627370495 |
| CAPPED_DATA | 0 | vma | 1 |
| DATA_SOURCE | 0 | vma | $1 |
| DATA_SOURCE | 2 | pfn | r hv_get_tsc_pfn |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
drivers/gpu/drm/panthor/panthor_gem.c insert_page() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_mm->mmap_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm->mmap_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->kcov->mode | 0-4294967295 |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->kcov->remote | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->kcov->remote_size | 0-4294967295 |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->kcov_remote->mode | 0-4294967295 |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->kcov_remote->remote | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->kcov_remote->remote_size | 0-4294967295 |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->ptracer_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->sched_class->uclamp_enabled | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->sched_task_group->idle | s32min-s32max |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->thread_pid->attr->exit_code | s32min-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| CAPPED_DATA | 0 | vma | 1 |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | bo->base.resv |
drivers/vhost/vdpa.c vhost_vdpa_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_file | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_pgoff | 0-u16max |
| PARAM_VALUE | 1 | addr | 0,4096-u64max |
| PARAM_VALUE | 2 | pfn | 0-4503599627370495 |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BIT_INFO | 1 | addr | 0x0,0xfffffffffffff000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0,4096-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start |
drivers/gpu/drm/xe/xe_mmio_gem.c xe_mmio_gem_vm_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_private_data | 4096-ptr_max |
| PARAM_VALUE | 2 | pfn | 0-4503599627370495 |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | global &drm_unplug_srcu |
drivers/gpu/drm/xe/xe_mmio_gem.c xe_mmio_gem_vm_fault_dummy_page() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_private_data | 4096-ptr_max |
| PARAM_VALUE | 2 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| DATA_SOURCE | 0 | vma | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
drivers/gpu/drm/gma500/gem.c psb_gem_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_private_data | 4096-ptr_max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| UNITS | 2 | pfn | unit_page |
| LOCK2 | &dev_priv->mmap_mutex | ||
| TYPE_LOCK | (struct drm_psb_private)->mmap_mutex |
arch/x86/kernel/cpu/sgx/encl.c sgx_encl_eaug_page() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_private_data | 1-u64max |
| PARAM_VALUE | 2 | pfn | 0-4503599627370495 |
| DATA_SOURCE | 0 | vma | $0 |
| DATA_SOURCE | 1 | addr | $2 |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | &encl->lock | ||
| TYPE_LOCK | (struct sgx_encl)->lock |
arch/x86/kernel/cpu/sgx/encl.c sgx_vma_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_private_data | 1-u64max |
| PARAM_VALUE | 2 | pfn | 0-4503599627370495 |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | &encl->lock | ||
| TYPE_LOCK | (struct sgx_encl)->lock |
drivers/gpu/drm/etnaviv/etnaviv_gem.c etnaviv_gem_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
drivers/dma-buf/heaps/cma_heap.c cma_heap_vm_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_private_data | 4096-ptr_max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
drivers/dma-buf/udmabuf.c udmabuf_vm_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_private_data | 4096-ptr_max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
drivers/dma-buf/udmabuf.c udmabuf_vm_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_end | 1-u64max |
| PARAM_VALUE | 0 | vma->vm_flags | 1024-u64max |
| PARAM_VALUE | 0 | vma->vm_private_data | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 0-18446744073709551614 |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| CAPPED_DATA | 0 | vma->vm_start | 1 |
| CAPPED_DATA | 1 | addr | 1 |
| CAPPED_DATA | 1 | addr | 1 |
| PARAM_COMPARE | 1 | addr | < $0->vm_end |
| PARAM_COMPARE | 1 | addr | < $0->vm_end |
| PARAM_COMPARE | 1 | addr | >= $0->vm_start |
| PARAM_COMPARE | 1 | addr | >= $0->vm_start |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| NO_OVERFLOW_SIMPLE | 1 | addr | |
| UNITS | 1 | addr | unit_byte |
drivers/gpu/drm/drm_gem_shmem_helper.c try_insert_pfn() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_mm->mmap_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm->mmap_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm->vma_writer_wait.task->sched_class->uclamp_enabled | 0-1 |
| PARAM_VALUE | 2 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| BUF_SIZE | 0 | vma | (-1),1-s32max |
| BUF_SIZE | 0 | vma | (-1),1-s32max |
| CAPPED_DATA | 0 | vma | 1 |
| DATA_SOURCE | 2 | pfn | $2 |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | obj->resv |
drivers/gpu/drm/msm/msm_gem.c msm_gem_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_private_data | 4096-ptr_max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | obj->resv |
drivers/accel/amdxdna/amdxdna_cbuf.c amdxdna_cbuf_vm_fault() -> vmf_insert_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_private_data | 4096-ptr_max |
| PARAM_VALUE | 2 | pfn | 0-9007199254740990 |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | vma | (-1),4,24,64,168-s32max |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | addr | 0-u64max[c] |
| USER_DATA | 2 | pfn | 0-9007199254740990[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| UNITS | 2 | pfn | unit_page |