Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 4 files:
- drivers/hv/vmbus_drv.c, line 1946
- drivers/uio/uio.c, line 860
- mm/util.c
- tools/testing/vma/include/dup.h, line 1417
Smatch caller information:
drivers/hv/vmbus_drv.c hv_mmap_ring_buffer_wrapper() -> __compat_vma_mmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 1325290474384461824 |
| PARAM_VALUE | 0 | desc->action.error_override | 0 |
| PARAM_VALUE | 0 | desc->action.hide_from_rmap_until_complete | 0 |
| PARAM_VALUE | 0 | desc->action.map_kernel.nr_pages | 0 |
| PARAM_VALUE | 0 | desc->action.map_kernel.pages | 0 |
| PARAM_VALUE | 0 | desc->action.map_kernel.start | 0 |
| PARAM_VALUE | 0 | desc->action.remap.pgprot.pgprot | 0 |
| PARAM_VALUE | 0 | desc->action.remap.size | 0 |
| PARAM_VALUE | 0 | desc->action.remap.start | 0 |
| PARAM_VALUE | 0 | desc->action.remap.start_pfn | 0 |
| PARAM_VALUE | 0 | desc->action.simple_ioremap.size | 0,4096-4294963200 |
| PARAM_VALUE | 0 | desc->action.type | 3 |
| PARAM_VALUE | 0 | desc->private_data | 0 |
| PARAM_VALUE | 1 | vma | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma->vm_file | (-1)-0,4,24,64,168-s32max |
| BUF_SIZE | 1 | vma->vm_private_data | (-1),1-s32max |
| DATA_SOURCE | 1 | vma | $3 |
| NOSPEC | 0 | desc->pgoff | |
| NOSPEC | 0 | desc->start | |
| NOSPEC | 1 | vma->vm_pgoff | |
| NOSPEC | 1 | vma->vm_start | |
| MEM_ZERO | 0 | desc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | desc->end | 0[c] |
| USER_DATA | 0 | desc->pgoff | 0[c] |
| USER_DATA | 0 | desc->start | 0 |
| USER_DATA | 1 | vma->vm_end | 4096-u64max[c] |
| USER_DATA | 1 | vma->vm_pgoff | 0-4503599627370495[c] |
| USER_DATA | 1 | vma->vm_start | 0-18446744073709547520 |
| NO_OVERFLOW_SIMPLE | 0 | desc->pgoff | |
| NO_OVERFLOW_SIMPLE | 1 | vma->vm_pgoff | |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &ipcp->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/uio/uio.c uio_mmap() -> __compat_vma_mmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 8873968902582775808 |
| PARAM_VALUE | 0 | desc->action.error_override | 0 |
| PARAM_VALUE | 0 | desc->action.hide_from_rmap_until_complete | 0 |
| PARAM_VALUE | 0 | desc->action.map_kernel.nr_pages | 0 |
| PARAM_VALUE | 0 | desc->action.map_kernel.pages | 0 |
| PARAM_VALUE | 0 | desc->action.map_kernel.start | 0 |
| PARAM_VALUE | 0 | desc->action.remap.pgprot.pgprot | 0 |
| PARAM_VALUE | 0 | desc->action.remap.size | 0 |
| PARAM_VALUE | 0 | desc->action.remap.start | 0 |
| PARAM_VALUE | 0 | desc->action.remap.start_pfn | 0 |
| PARAM_VALUE | 0 | desc->action.simple_ioremap.start_phys_addr | 0 |
| PARAM_VALUE | 0 | desc->action.type | 0 |
| PARAM_VALUE | 0 | desc->private_data | 4096-ptr_max |
| PARAM_VALUE | 0 | desc->vm_ops | 4713896032620187648 |
| PARAM_VALUE | 1 | vma | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_pgoff | 0-4 |
| PARAM_VALUE | 1 | vma->vm_private_data | 4096-ptr_max |
| BUF_SIZE | 1 | vma | (-1)-s32max |
| BUF_SIZE | 1 | vma | (-1)-s32max |
| BUF_SIZE | 1 | vma->vm_file | (-1)-s32max |
| CAPPED_DATA | 1 | vma->vm_start | 1 |
| DATA_SOURCE | 1 | vma | $1 |
| PARAM_COMPARE | 1 | vma->vm_end | >= $1->vm_start |
| NOSPEC | 0 | desc->pgoff | |
| NOSPEC | 0 | desc->start | |
| NOSPEC | 1 | vma->vm_pgoff | |
| NOSPEC | 1 | vma->vm_start | |
| MEM_ZERO | 0 | desc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | desc->end | 0[c] |
| USER_DATA | 0 | desc->pgoff | 0[c] |
| USER_DATA | 0 | desc->start | 0 |
| USER_DATA | 1 | vma->vm_end | 4096-u64max[c] |
| USER_DATA | 1 | vma->vm_pgoff | 0-4[c] |
| USER_DATA | 1 | vma->vm_start | 0-18446744073709547520 |
| NO_OVERFLOW_SIMPLE | 0 | desc->pgoff | |
| NO_OVERFLOW_SIMPLE | 1 | vma->vm_pgoff | |
| LOCK2 | &idev->info_lock | ||
| HALF_LOCKED2 | &ipcp->lock | ||
| TYPE_LOCK | (struct uio_device)->info_lock |
mm/util.c compat_vma_mmap() -> __compat_vma_mmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 3854971988944465920 |
| PARAM_VALUE | 0 | desc->action.error_override | 0 |
| PARAM_VALUE | 0 | desc->action.hide_from_rmap_until_complete | 0 |
| PARAM_VALUE | 0 | desc->action.map_kernel.nr_pages | 0 |
| PARAM_VALUE | 0 | desc->action.map_kernel.pages | 0 |
| PARAM_VALUE | 0 | desc->action.map_kernel.start | 0 |
| PARAM_VALUE | 0 | desc->action.remap.pgprot.pgprot | 0 |
| PARAM_VALUE | 0 | desc->action.remap.size | 0 |
| PARAM_VALUE | 0 | desc->action.remap.start | 0 |
| PARAM_VALUE | 0 | desc->action.remap.start_pfn | 0 |
| PARAM_VALUE | 0 | desc->action.simple_ioremap.start_phys_addr | 0 |
| PARAM_VALUE | 0 | desc->action.type | 0 |
| PARAM_VALUE | 0 | desc->private_data | 0 |
| PARAM_VALUE | 1 | vma | 4096-ptr_max |
| BUF_SIZE | 1 | vma | (-1)-s32max |
| BUF_SIZE | 1 | vma | (-1)-s32max |
| BUF_SIZE | 1 | vma->vm_file | (-1)-s32max |
| BUF_SIZE | 1 | vma->vm_private_data | (-1),1-s32max |
| DATA_SOURCE | 1 | vma | $1 |
| NOSPEC | 0 | desc->pgoff | |
| NOSPEC | 0 | desc->start | |
| NOSPEC | 1 | vma->vm_pgoff | |
| NOSPEC | 1 | vma->vm_start | |
| MEM_ZERO | 0 | desc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | desc->end | 0[c] |
| USER_DATA | 0 | desc->pgoff | 0[c] |
| USER_DATA | 0 | desc->start | 0 |
| USER_DATA | 1 | vma->vm_end | 4096-u64max[c] |
| USER_DATA | 1 | vma->vm_pgoff | 0-4503599627370495[c] |
| USER_DATA | 1 | vma->vm_start | 0-18446744073709547520 |
| NO_OVERFLOW_SIMPLE | 0 | desc->pgoff | |
| NO_OVERFLOW_SIMPLE | 1 | vma->vm_pgoff | |
| HALF_LOCKED2 | &ipcp->lock |