Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

lib/iov_iter.c __import_iovec() -> iovec_from_user()

Type Parameter Key Value
PARAM_VALUE 1 nr_segs 0,2-u32max
DATA_SOURCE 0 uvec $1
DATA_SOURCE 1 nr_segs $2
DATA_SOURCE 2 fast_segs $3
DATA_SOURCE 4 compat $6
NOSPEC 1 nr_segs
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 uvec 0-u64max
USER_DATA 1 nr_segs 0,2-u32max
UNITS 0 uvec unit_byte
UNITS 1 nr_segs unit_byte
UNITS 2 fast_segs unit_array_size
HALF_LOCKED2 &ctx->uring_lock

io_uring/rsrc.c __io_sqe_buffers_update() -> iovec_from_user()

Type Parameter Key Value
PARAM_VALUE 1 nr_segs 1
PARAM_VALUE 2 fast_segs 1
PARAM_VALUE 3 fast_iov 1333000602242732032
RX_PATH
LOCK2 &ctx->uring_lock
TYPE_LOCK (struct io_ring_ctx)->uring_lock

io_uring/rsrc.c io_prep_reg_iovec() -> iovec_from_user()

Type Parameter Key Value
PARAM_VALUE 3 fast_iov 4096-ptr_max
CAPPED_DATA 1 nr_segs 1
CAPPED_DATA 1 nr_segs 1
CAPPED_DATA 2 fast_segs 1
CAPPED_DATA 2 fast_segs 1
DATA_SOURCE 0 uvec $2
DATA_SOURCE 1 nr_segs $3
DATA_SOURCE 2 fast_segs $3
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 nr_segs 0-u32max[c]
USER_DATA 2 fast_segs 0-u32max[c]
NO_OVERFLOW_SIMPLE 1 nr_segs
NO_OVERFLOW_SIMPLE 2 fast_segs
UNITS 0 uvec unit_byte
UNITS 1 nr_segs unit_byte
UNITS 2 fast_segs unit_byte
UNITS 3 fast_iov unit_byte
HALF_LOCKED2 &ctx->uring_lock

io_uring/rsrc.c io_sqe_buffers_register() -> iovec_from_user()

Type Parameter Key Value
PARAM_VALUE 0 uvec 1-u64max
PARAM_VALUE 1 nr_segs 1
PARAM_VALUE 2 fast_segs 1
PARAM_VALUE 3 fast_iov 2840303646165684224
DATA_SOURCE 0 uvec $1 [m]
LOCK2 &ctx->uring_lock
TYPE_LOCK (struct io_ring_ctx)->uring_lock

mm/process_vm_access.c process_vm_rw() -> iovec_from_user()

Type Parameter Key Value
PARAM_VALUE 2 fast_segs 8
PARAM_VALUE 3 fast_iov 950116762490728448
BUF_SIZE 3 fast_iov 128
DATA_SOURCE 0 uvec $3
DATA_SOURCE 1 nr_segs $4
USER_DATA 0 uvec 0-u64max
USER_DATA 1 nr_segs 0-u64max