Defined in 1 files as a function:

Referenced in 40 files:

Smatch caller information:

drivers/vhost/vhost.c vhost_copy_to_user() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
CAPPED_DATA 2 n 1
DATA_SOURCE 0 to $1
DATA_SOURCE 1 from $2
DATA_SOURCE 2 n $3
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &vq->mutex

drivers/vhost/vhost.c vhost_copy_to_user() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 1-u64max
CAPPED_DATA 2 n 1
DATA_SOURCE 0 to r vhost_vq_meta_fetch
DATA_SOURCE 1 from $2
DATA_SOURCE 2 n $3
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &vq->mutex

mm/kasan/kasan_test_c.c copy_user_test_oob() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 1-18446744073709551614
PARAM_VALUE 1 from 16,4096-ptr_max
PARAM_VALUE 2 n 1-s32max
BUF_SIZE 1 from 120
DATA_SOURCE 1 from r kunit_kmalloc
USER_PTR 1 from

drivers/gpu/drm/i915/i915_query.c query_memregion_info() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-u64max
PARAM_VALUE 1 from 5403522287358320640
PARAM_VALUE 2 n 88
BUF_SIZE 1 from 88
UNITS 2 n unit_byte

drivers/gpu/drm/i915/i915_query.c query_memregion_info() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 1 from 5148302030943776768
PARAM_VALUE 2 n 16
BUF_SIZE 1 from 16
UNITS 0 to unit_byte
UNITS 2 n unit_byte

fs/select.c set_fd_set() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 1-u64max
PARAM_VALUE 1 from 4096-ptr_max
PARAM_VALUE 2 n 0-268435456
CAPPED_DATA 2 n 1
DATA_SOURCE 0 to $1
DATA_SOURCE 1 from $2
USER_DATA 2 n 0-268435456[c]

drivers/gpu/drm/i915/i915_gem.c shmem_pread() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 1 from 4096-ptr_max
PARAM_VALUE 1 *from 0-255
PARAM_VALUE 2 n 1-4096
CAPPED_DATA 2 n 1
DATA_SOURCE 0 to $3
DATA_SOURCE 2 n $2
USER_DATA 2 n 2-4096[c]

drivers/vhost/scsi.c vhost_scsi_do_evt_work() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 1 from 4096-ptr_max
PARAM_VALUE 2 n 16
BUF_SIZE 1 from 16
RX_PATH
TASK_NOT_RUNNING
UNITS 0 to unit_byte
UNITS 2 n unit_byte
LOCK2 &vq->mutex
TYPE_LOCK (struct vhost_virtqueue)->mutex

arch/x86/kvm/../../../virt/kvm/kvm_main.c __kvm_write_guest_page() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 2 n 0-s32max,18446744071562067968-u64max
BUF_SIZE 1 from s32min,(-1),1-65536
BUF_SIZE 1 from s32min,(-1),1-65536
DATA_SOURCE 1 from $3
DATA_SOURCE 2 n $5
USER_DATA 1 *from s64min-s64max
UNITS 0 to unit_byte
UNITS 2 n unit_byte
USER_PTR 1 from
HALF_LOCKED2 &kvm->srcu

arch/x86/kvm/../../../virt/kvm/kvm_main.c kvm_write_guest_offset_cached() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 0-ptr_max
PARAM_VALUE 2 n 1,4,4096
BUF_SIZE 1 from (-1),4
BUF_SIZE 1 from (-1),4
DATA_SOURCE 1 from $2
DATA_SOURCE 2 n $4
HARD_MAX 2 n 4096
PREEMPT_ADD
UNITS 0 to unit_byte
UNITS 2 n unit_byte
HALF_LOCKED2 &kvm->srcu
HALF_LOCKED2 &vcpu->mutex

arch/x86/kvm/vmx/vmx.c init_rmode_identity_map() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 1 from 6639183754634768384
PARAM_VALUE 2 n 4
BUF_SIZE 1 from 4
UNITS 2 n unit_byte
LOCK2 &kvm->slots_lock
TYPE_LOCK (struct kvm)->slots_lock

arch/x86/kvm/vmx/vmx.c init_rmode_tss() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 1 from 18379471554275704832,18446612682070032384
PARAM_VALUE 2 n 4096
UNITS 2 n unit_byte

arch/x86/kvm/vmx/vmx.c init_rmode_tss() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 1 from 4685813931918262272
PARAM_VALUE 1 *from 136
PARAM_VALUE 2 n 2
BUF_SIZE 1 from 2
UNITS 2 n unit_byte

arch/x86/kvm/vmx/vmx.c init_rmode_tss() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 1 from 4685813931918262272
PARAM_VALUE 1 *from u16max
PARAM_VALUE 2 n 1
BUF_SIZE 1 from 2
UNITS 2 n unit_byte

arch/x86/kernel/fpu/signal.c save_fsave_header() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 0,64-u64max
PARAM_VALUE 1 from 8523954333531799552
PARAM_VALUE 2 n 108
BUF_SIZE 1 from 108
CAPPED_DATA 0 to 1
DATA_SOURCE 0 to $1
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n unit_byte

arch/x86/kernel/fpu/signal.c save_xstate_epilog() -> __copy_to_user()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 1 from 7801372520113164288
PARAM_VALUE 2 n 48
BUF_SIZE 0 to 48
BUF_SIZE 1 from 48
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n unit_byte