Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 12 files:
- block/blk-map.c, line 75
- drivers/net/tun.c, line 1705
- drivers/thunderbolt/stream.c, line 519
- drivers/vhost/scsi.c, line 920
- fs/ceph/file.c, line 2034
- fs/pipe.c
- include/linux/uio.h, line 210
- lib/iov_iter.c, line 448
- mm/process_vm_access.c, line 43
- net/core/datagram.c, line 581
- net/ipv4/tcp_output.c, line 4240
- net/rds/message.c, line 527
Smatch caller information:
net/core/datagram.c skb_copy_datagram_from_iter() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0-u32max |
| PARAM_VALUE | 2 | bytes | 0-s32max,18446744071562067968-u64max |
| CAPPED_DATA | 2 | bytes | 1 |
| DATA_SOURCE | 3 | i | $2 |
| NOSPEC | 3 | i->count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | bytes | 0-2147483646,18446744071562067968-u64max[c] |
| USER_DATA | 3 | i->count | 0-u64max |
| USER_DATA | 3 | i->iov_offset | 0-u64max[c] |
| UNITS | 1 | offset | unit_byte |
| UNITS | 2 | bytes | unit_byte |
| HALF_LOCKED2 | &vq->mutex |
fs/pipe.c anon_pipe_write() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0-4095 |
| PARAM_VALUE | 2 | bytes | 1-2560 |
| PARAM_VALUE | 3 | i | 4096-ptr_max |
| DATA_SOURCE | 3 | i | $1 |
| NOSPEC | 3 | i->count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | bytes | 1-2560[c] |
| USER_DATA | 3 | i->count | 0-18446744073709551614 |
| USER_DATA | 3 | i->iov_offset | 0-u64max[c] |
| UNITS | 1 | offset | unit_byte |
| UNITS | 2 | bytes | unit_byte |
| LOCK2 | &pipe->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct pipe_inode_info)->mutex |
fs/pipe.c anon_pipe_write() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 1-u64max |
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 2 | bytes | 4096 |
| PARAM_VALUE | 3 | i | 4096-ptr_max |
| DATA_SOURCE | 0 | page | r anon_pipe_get_page |
| DATA_SOURCE | 3 | i | $1 |
| NOSPEC | 3 | i->count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 3 | i->count | 0-18446744073709551614 |
| USER_DATA | 3 | i->iov_offset | 0-u64max[c] |
| UNITS | 2 | bytes | unit_byte |
| LOCK2 | &pipe->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct pipe_inode_info)->mutex |
net/rds/message.c rds_message_copy_from_user() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 0,4-u64max |
| PARAM_VALUE | 2 | bytes | 0-1000000000 |
| PARAM_VALUE | 3 | i | 4096-ptr_max |
| CAPPED_DATA | 2 | bytes | 1 |
| CAPPED_DATA | 2 | bytes | 1 |
| DATA_SOURCE | 3 | i | $1 |
| USER_DATA | 1 | offset | 0-5294967295[c] |
| USER_DATA | 2 | bytes | 0-1000000000[c] |
block/blk-map.c bio_copy_from_iter() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | i | 978679771613659136,3987459600743731200 |
| PARAM_VALUE | 3 | i->data_source | 1 |
| PARAM_VALUE | 3 | i->iter_type | 0-1,3-255 |
| DATA_SOURCE | 3 | i | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 3 | i->count | 0-s32max[c] |
| UNITS | 0 | page | unit_page |
| UNITS | 1 | offset | unit_byte |
| UNITS | 2 | bytes | unit_byte |
block/bio.c copy_folio_from_iter() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 3 | i | 4096-ptr_max |
| PARAM_VALUE | 3 | i->nofault | 0 |
| DATA_SOURCE | 1 | offset | $1 |
| DATA_SOURCE | 2 | bytes | $2 |
| DATA_SOURCE | 3 | i | $3 |
| NOSPEC | 3 | i->count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | bytes | 0-1048575[c] |
| USER_DATA | 3 | i->count | 0-u64max[c] |
| USER_DATA | 3 | i->iov_offset | 0-u64max[c] |
drivers/thunderbolt/stream.c tbstream_dev_alloc_tx() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 2 | bytes | 0-4096 |
| PARAM_VALUE | 3 | i | 4096-ptr_max |
| CAPPED_DATA | 2 | bytes | 1 |
| CAPPED_DATA | 2 | bytes | 1 |
| DATA_SOURCE | 2 | bytes | $3 |
| DATA_SOURCE | 3 | i | $2 |
| NOSPEC | 2 | bytes | |
| NOSPEC | 2 | bytes | |
| NOSPEC | 3 | i->count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | bytes | 0-4095[c] |
| USER_DATA | 3 | i->count | 0-18446744073709551614 |
| USER_DATA | 3 | i->iov_offset | 0-u64max[c] |
| LOCK2 | &sdev->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tbstream_dev)->lock |
fs/smb/client/smb2ops.c copy_folio_from_iter() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 3 | i | 4096-ptr_max |
| CAPPED_DATA | 2 | bytes | 1 |
| CAPPED_DATA | 2 | bytes | 1 |
| DATA_SOURCE | 1 | offset | $1 |
| DATA_SOURCE | 2 | bytes | $2 |
| DATA_SOURCE | 3 | i | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | bytes | 0-1000000000[c] |
| LOCK2 | &server->_srv_mutex | ||
| TYPE_LOCK | (struct TCP_Server_Info)->_srv_mutex |
mm/process_vm_access.c process_vm_rw_pages() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | i | 5542168557316276224 |
| CAPPED_DATA | 2 | bytes | 1 |
| CAPPED_DATA | 2 | bytes | 1 |
| DATA_SOURCE | 1 | offset | $1 [m] |
| DATA_SOURCE | 3 | i | $3 |
| UNITS | 1 | offset | unit_byte |
| UNITS | 2 | bytes | unit_byte |
| HALF_LOCKED2 | &mm->mmap_lock |
drivers/net/tun.c tun_build_skb() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0-u32max |
| PARAM_VALUE | 2 | bytes | 0-1000000000,18446744072709551616-u64max |
| PARAM_VALUE | 3 | i | 4096-ptr_max |
| DATA_SOURCE | 2 | bytes | $4 |
| DATA_SOURCE | 3 | i | $2 |
| NOSPEC | 2 | bytes | |
| NOSPEC | 2 | bytes | |
| NOSPEC | 3 | i->count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | bytes | 0-1000000000,18446744072709551616-u64max |
| USER_DATA | 3 | i->count | 0-18446744073709551614 |
| USER_DATA | 3 | i->iov_offset | 0-u64max[c] |
| UNITS | 1 | offset | unit_byte |
| UNITS | 2 | bytes | unit_byte |
fs/fuse/ioctl.c copy_folio_from_iter() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 2 | bytes | 4096 |
| PARAM_VALUE | 3 | i | 4512535879257411584 |
| DATA_SOURCE | 1 | offset | $1 |
| DATA_SOURCE | 2 | bytes | $2 |
| DATA_SOURCE | 3 | i | $3 |
| UNITS | 2 | bytes | unit_byte |
drivers/vhost/scsi.c vhost_scsi_copy_iov_to_sgl() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 0 | page->_refcount.counter | 1 |
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 2 | bytes | 0-4096 |
| PARAM_VALUE | 3 | i | 6099215618416902144 |
| PARAM_VALUE | 3 | i->folioq->debug_id | 0-4294967295 |
| PARAM_VALUE | 3 | i->folioq->rreq_id | 0-4294967295 |
| PARAM_VALUE | 3 | i->folioq->vec.i | 0-255 |
| PARAM_VALUE | 3 | i->folioq->vec.nr | 0-255 |
| PARAM_VALUE | 3 | i->folioq->vec.percpu_pvec_drained | 0-1 |
| CAPPED_DATA | 2 | bytes | 1 |
| DATA_SOURCE | 0 | page | r alloc_pages_noprof |
| DATA_SOURCE | 3 | i | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 3 | i->iov_offset | 1-9223372036854775806[c] |
| USER_DATA | 2 | bytes | 0-4096[c] |
| LOCK2 | &vq->mutex | ||
| TYPE_LOCK | (struct vhost_virtqueue)->mutex |
fs/ceph/file.c ceph_sync_write() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0-4095 |
| PARAM_VALUE | 2 | bytes | 0-4096 |
| PARAM_VALUE | 3 | i | 4193004275992629248 |
| CAPPED_DATA | 1 | offset | 1 |
| CAPPED_DATA | 1 | offset | 1 |
| CAPPED_DATA | 2 | bytes | 1 |
| CAPPED_DATA | 2 | bytes | 1 |
| DATA_SOURCE | 3 | i | $1 |
| FUZZY_MAX | 1 | offset | 0 |
| PARAM_COMPARE | 1 | offset | >= $2 |
| NOSPEC | 2 | bytes | |
| NOSPEC | 3 | i->count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | offset | 0-4094[c] |
| USER_DATA | 2 | bytes | 0-4096[c] |
| USER_DATA | 3 | i->count | 1-s32max[c] |
| USER_DATA | 3 | i->iov_offset | 0-u64max[c] |
| UNITS | 2 | bytes | unit_byte |
| LOCK2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
net/ipv4/tcp_output.c tcp_send_syn_data() -> copy_page_from_iter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 2 | bytes | 1-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 3 | i | 4096-ptr_max |
| CAPPED_DATA | 2 | bytes | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | offset | unit_byte |
| UNITS | 2 | bytes | unit_byte |
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | sk |