Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 15 files:
- arch/powerpc/kvm/book3s_64_mmu_hv.c, line 1142
- arch/powerpc/kvm/e500_mmu.c, line 779
- drivers/accel/qaic/qaic_control.c, line 437
- drivers/iommu/iommufd/selftest.c
- drivers/misc/bcm-vk/bcm_vk_sg.c, line 73
- drivers/misc/vmw_vmci/vmci_host.c, line 247
- drivers/misc/vmw_vmci/vmci_queue_pair.c
- drivers/virt/fsl_hypervisor.c, line 249
- kernel/futex/core.c
- lib/iov_iter.c, line 1091
- mm/gup.c, line 3289
- mm/gup_test.c, line 150
- mm/madvise.c, line 1461
- mm/mempolicy.c, line 1141
- virt/kvm/guest_memfd.c, line 869
Smatch caller information:
mm/madvise.c madvise_inject_error() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 0-18446744073709551614 |
| PARAM_VALUE | 1 | nr_pages | 1 |
| PARAM_VALUE | 2 | gup_flags | 0 |
| PARAM_VALUE | 3 | pages | 3921343404137598976 |
| CAPPED_DATA | 0 | start | 1 |
| CAPPED_DATA | 0 | start | 1 |
| CAPABLE | 0 | 21 | |
| NOSPEC | 0 | start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | start | 0-18446744073709551614 |
| UNITS | 0 | start | unit_byte |
lib/iov_iter.c __iov_iter_get_pages_alloc() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 0,4096-u64max |
| PARAM_VALUE | 1 | nr_pages | 1-524288 |
| PARAM_VALUE | 2 | gup_flags | 0-1,32-33 |
| PARAM_VALUE | 3 | pages | 1-u64max |
| CAPPED_DATA | 1 | nr_pages | 1 |
| DATA_SOURCE | 1 | nr_pages | r want_pages_array |
| FUZZY_MAX | 2 | gup_flags | 0 |
| BIT_INFO | 0 | start | 0x0,0xfffffffffffff000 |
| BIT_INFO | 0 | start | 0x0,0xfffffffffffff000 |
| BIT_INFO | 2 | gup_flags | 0x0,0x21 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | nr_pages | 3-524288[c] |
| USER_DATA | 1 | nr_pages | 3-524288[c] |
| NO_OVERFLOW_SIMPLE | 1 | nr_pages |
drivers/iommu/iommufd/selftest.c iommufd_test_check_pages() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | nr_pages | 1 |
| PARAM_VALUE | 2 | gup_flags | 0 |
| PARAM_VALUE | 3 | pages | 3533826012727369728 |
| DATA_SOURCE | 0 | start | $0 [m] |
| UNITS | 0 | start | unit_byte |
| LOCK2 | &staccess->lock | ||
| TYPE_LOCK | (struct selftest_access)->lock |
drivers/iommu/iommufd/selftest.c iommufd_test_md_check_pa() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 0,4096-u64max |
| PARAM_VALUE | 1 | nr_pages | 1 |
| PARAM_VALUE | 2 | gup_flags | 0 |
| PARAM_VALUE | 3 | pages | 3671019520129392640 |
| BIT_INFO | 0 | start | 0x0,0xfffffffffffff000 |
drivers/iommu/iommufd/selftest.c iommufd_test_md_check_refs() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | nr_pages | 1 |
| PARAM_VALUE | 2 | gup_flags | 0 |
| PARAM_VALUE | 3 | pages | 5567150173321736192 |
| DATA_SOURCE | 0 | start | $1 [m] |
| NO_OVERFLOW_SIMPLE | 0 | start |
arch/x86/kvm/../../../virt/kvm/guest_memfd.c kvm_gmem_populate() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | nr_pages | 1 |
| PARAM_VALUE | 2 | gup_flags | 0-1 |
| PARAM_VALUE | 3 | pages | 5947941036783153152 |
| PARAM_VALUE | 3 | *pages | 0 |
| FUZZY_MAX | 2 | gup_flags | 1 |
| HARD_MAX | 2 | gup_flags | 1 |
| UNITS | 0 | start | unit_byte |
| HALF_LOCKED2 | &kvm->lock | ||
| HALF_LOCKED2 | &kvm->slots_lock | ||
| HALF_LOCKED2 | _T->lock |
kernel/futex/core.c get_futex_key() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | nr_pages | 1 |
| PARAM_VALUE | 2 | gup_flags | 1 |
| PARAM_VALUE | 3 | pages | 3389672414321266688 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | start | 0-u64max |
kernel/futex/core.c get_futex_key() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | nr_pages | 1 |
| PARAM_VALUE | 2 | gup_flags | 0 |
| PARAM_VALUE | 3 | pages | 3389672414321266688 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | start | 0-u64max |
mm/gup_test.c __gup_test_ioctl() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 0-18446744073709551614 |
| PARAM_VALUE | 3 | pages | 4096-ptr_max |
| CAPPED_DATA | 0 | start | 1 |
| CAPPED_DATA | 0 | start | 1 |
| CAPPED_DATA | 1 | nr_pages | 1 |
| USER_DATA | 0 | start | 0-s32max[c] |
| USER_DATA | 1 | nr_pages | s32min-s32max[c] |
| USER_DATA | 2 | gup_flags | 0-u32max |
| UNITS | 0 | start | unit_byte |
| UNITS | 1 | nr_pages | unit_page |
drivers/accel/qaic/qaic_control.c find_and_map_user_pages() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | gup_flags | 0 |
| PARAM_VALUE | 3 | pages | 16,4096-ptr_max |
| BUF_SIZE | 3 | pages | 0-u64max |
| DATA_SOURCE | 3 | pages | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | start | |
| NO_OVERFLOW_SIMPLE | 1 | nr_pages | |
| UNITS | 1 | nr_pages | unit_array_size |
| ELEM_COUNT | 3 | ==pages1 | 8051 |
| HALF_LOCKED2 | &qdev->dev_lock | ||
| HALF_LOCKED2 | &usr->qddev_lock |
drivers/misc/vmw_vmci/vmci_host.c vmci_host_setup_notify() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 1-u64max |
| PARAM_VALUE | 1 | nr_pages | 1 |
| PARAM_VALUE | 2 | gup_flags | 1 |
| PARAM_VALUE | 3 | pages | 3505255355479556096 |
| DATA_SOURCE | 0 | start | $1 |
| USER_DATA | 0 | start | 1-u64max |
drivers/misc/vmw_vmci/vmci_queue_pair.c qp_host_get_user_memory() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | gup_flags | 1 |
| DATA_SOURCE | 0 | start | $0 |
| USER_DATA | 0 | start | 0-u64max |
| USER_DATA | 1 | nr_pages | 2-32769[c] |
| UNITS | 0 | start | unit_byte |
| LOCK2 | global &qp_broker_list.mutex | ||
| TYPE_LOCK | (struct qp_list)->mutex |
drivers/misc/vmw_vmci/vmci_queue_pair.c qp_host_get_user_memory() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | gup_flags | 1 |
| DATA_SOURCE | 0 | start | $1 |
| USER_DATA | 0 | start | 1-u64max |
| USER_DATA | 1 | nr_pages | 2-32769[c] |
| UNITS | 0 | start | unit_byte |
| LOCK2 | global &qp_broker_list.mutex | ||
| TYPE_LOCK | (struct qp_list)->mutex |
drivers/misc/bcm-vk/bcm_vk_sg.c bcm_vk_dma_alloc() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 0,4096-u64max |
| PARAM_VALUE | 2 | gup_flags | 0-1 |
| PARAM_VALUE | 3 | pages | 16,4096-ptr_max |
| BUF_SIZE | 3 | pages | 0-u64max |
| DATA_SOURCE | 3 | pages | r _kmalloc_noprof |
| FUZZY_MAX | 2 | gup_flags | 1 |
| BIT_INFO | 0 | start | 0x0,0xfffffffffffff000 |
| HARD_MAX | 2 | gup_flags | 1 |
| NO_OVERFLOW_SIMPLE | 1 | nr_pages | |
| UNITS | 1 | nr_pages | unit_array_size |
| ELEM_COUNT | 3 | ==pages1 | 8051 |
mm/mempolicy.c lookup_node() -> get_user_pages_fast()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 0 |
| PARAM_VALUE | 1 | nr_pages | 1 |
| PARAM_VALUE | 2 | gup_flags | 0 |
| PARAM_VALUE | 3 | pages | 5075909372125384704 |
| PARAM_VALUE | 3 | *pages | 0 |
| USER_DATA | 0 | start | 0[c] |