/openbmc/linux/drivers/misc/lkdtm/ |
H A D | usercopy.c | 91 if (copy_to_user((void __user *)user_addr, good_stack, in do_usercopy_stack() 98 if (copy_to_user((void __user *)user_addr, bad_stack, in do_usercopy_stack() 165 if (copy_to_user(test_user_addr, test_kern_addr, size / 2)) { in do_usercopy_slab_size() 171 if (copy_to_user(test_user_addr, test_kern_addr, size)) { in do_usercopy_slab_size() 242 if (copy_to_user(user_addr, buf + offset, size)) { in do_usercopy_slab_whitelist() 248 if (copy_to_user(user_addr, buf + offset - 1, size)) { in do_usercopy_slab_whitelist() 325 if (copy_to_user((void __user *)user_addr, test_text, in lkdtm_USERCOPY_KERNEL() 333 if (copy_to_user((void __user *)user_addr, vm_mmap, in lkdtm_USERCOPY_KERNEL() 370 if (copy_to_user((void __user *)uaddr, kaddr, in do_usercopy_page_span() 378 if (copy_to_user((void __user *)uaddr, kaddr, unconst + PAGE_SIZE)) { in do_usercopy_page_span()
|
/openbmc/linux/drivers/accel/habanalabs/common/ |
H A D | habanalabs_ioctl.c | 42 return copy_to_user(out, &dev_stat, in device_status_info() 112 return copy_to_user(out, &hw_ip, in hw_ip_info() 172 return copy_to_user(out, &dram_usage, in dram_usage_info() 191 return copy_to_user(out, &hw_idle, in hw_idle() 274 return copy_to_user(out, &device_util, in device_utilization() 308 return copy_to_user(out, &reset_count, in get_reset_count() 324 return copy_to_user(out, &time_sync, in time_sync_info() 433 return copy_to_user(out, &cs_counters, in cs_counters_info() 498 return copy_to_user(out, &freq_info, in pll_frequency_info() 517 return copy_to_user(out, &power_info, in power_info() [all …]
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-compat-ioctl32.c | 88 if (copy_to_user(p32, &w32, sizeof(w32))) in put_v4l2_window32() 187 return copy_to_user(&p32->fmt.pix, &p64->fmt.pix, in put_v4l2_format32() 198 return copy_to_user(&p32->fmt.vbi, &p64->fmt.vbi, in put_v4l2_format32() 206 return copy_to_user(&p32->fmt.sdr, &p64->fmt.sdr, in put_v4l2_format32() 220 if (copy_to_user(p32, p64, in put_v4l2_create32() 520 if (copy_to_user(arg, &vb32, sizeof(vb32))) in put_v4l2_buffer32() 564 if (copy_to_user(arg, &vb32, sizeof(vb32))) in put_v4l2_buffer32_time32() 638 if (copy_to_user(p32, p64, sizeof(*p32))) in put_v4l2_input32() 728 if (copy_to_user(p32, &ec32, sizeof(ec32))) in put_v4l2_ext_controls32() 1149 if (copy_to_user(ec32, ec64, size)) in v4l2_compat_put_array_args() [all …]
|
/openbmc/linux/virt/kvm/ |
H A D | binary_stats.c | 87 if (copy_to_user(dest, src, copylen)) in kvm_stats_read() 107 if (copy_to_user(dest, src, copylen)) in kvm_stats_read() 125 if (copy_to_user(dest, src, copylen)) in kvm_stats_read() 137 if (copy_to_user(dest, src, copylen)) in kvm_stats_read()
|
/openbmc/linux/sound/firewire/motu/ |
H A D | motu-hwdep.c | 54 if (copy_to_user(buf, &event, count)) in hwdep_read() 63 if (copy_to_user(buf, &event, count)) in hwdep_read() 86 if (copy_to_user(buf, &event, sizeof(event.motu_register_dsp_change))) in hwdep_read() 130 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 210 err = copy_to_user((void __user *)arg, meter, sizeof(*meter)); in hwdep_ioctl() 232 err = copy_to_user((void __user *)arg, meter, sizeof(*meter)); in hwdep_ioctl() 254 err = copy_to_user((void __user *)arg, param, sizeof(*param)); in hwdep_ioctl()
|
/openbmc/linux/kernel/bpf/ |
H A D | log.c | 87 copy_to_user(log->ubuf + cur_pos, log->kbuf, new_n)) in bpf_verifier_vlog() 124 if (copy_to_user(log->ubuf + buf_start, in bpf_verifier_vlog() 130 if (copy_to_user(log->ubuf + buf_start, in bpf_verifier_vlog() 134 if (copy_to_user(log->ubuf, in bpf_verifier_vlog() 211 if (copy_to_user(log->ubuf + start, rbuf, nn)) in bpf_vlog_reverse_ubuf() 213 if (copy_to_user(log->ubuf + end - nn, lbuf, nn)) in bpf_vlog_reverse_ubuf()
|
H A D | mprog.c | 414 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in bpf_mprog_query() 416 if (copy_to_user(&uattr->query.revision, &revision, sizeof(revision))) in bpf_mprog_query() 418 if (copy_to_user(&uattr->query.count, &count, sizeof(count))) in bpf_mprog_query() 436 if (copy_to_user(uprog_id + i, &id, sizeof(id))) in bpf_mprog_query() 439 copy_to_user(uprog_flags + i, &flags, sizeof(flags))) in bpf_mprog_query() 443 copy_to_user(ulink_id + i, &id, sizeof(id))) in bpf_mprog_query() 446 copy_to_user(ulink_flags + i, &flags, sizeof(flags))) in bpf_mprog_query()
|
/openbmc/linux/drivers/char/ |
H A D | uv_mmtimer.c | 106 if (copy_to_user((unsigned long __user *)arg, in uv_mmtimer_ioctl() 112 if (copy_to_user((unsigned long __user *)arg, in uv_mmtimer_ioctl() 127 if (copy_to_user((unsigned long __user *)arg, in uv_mmtimer_ioctl()
|
H A D | ppdev.c | 185 if (bytes_read > 0 && copy_to_user(buf, kbuffer, bytes_read)) in pp_read() 453 if (copy_to_user(argp, &mode, sizeof(mode))) in pp_do_ioctl() 480 if (copy_to_user(argp, &phase, sizeof(phase))) in pp_do_ioctl() 494 if (copy_to_user(argp, &modes, sizeof(modes))) in pp_do_ioctl() 513 if (copy_to_user(argp, &uflags, sizeof(uflags))) in pp_do_ioctl() 530 if (copy_to_user(argp, ®, sizeof(reg))) in pp_do_ioctl() 535 if (copy_to_user(argp, ®, sizeof(reg))) in pp_do_ioctl() 540 if (copy_to_user(argp, ®, sizeof(reg))) in pp_do_ioctl() 616 if (copy_to_user(argp, &ret, sizeof(ret))) in pp_do_ioctl() 647 if (copy_to_user(argp, time32, sizeof(time32))) in pp_do_ioctl() [all …]
|
/openbmc/linux/drivers/vfio/pci/ |
H A D | vfio_pci_igd.c | 54 if (copy_to_user(dst + (*off), src, bytes)) in igd_opregion_shift_copy() 142 copy_to_user(buf + off, opregionvbt->vbt_ex + (pos - OPREGION_SIZE), in vfio_pci_igd_rw() 303 if (copy_to_user(buf + count - size, &val, 1)) in vfio_pci_igd_cfg_rw() 319 if (copy_to_user(buf + count - size, &lval, 2)) in vfio_pci_igd_cfg_rw() 335 if (copy_to_user(buf + count - size, &lval, 4)) in vfio_pci_igd_cfg_rw() 351 if (copy_to_user(buf + count - size, &lval, 2)) in vfio_pci_igd_cfg_rw() 365 if (copy_to_user(buf + count - size, &val, 1)) in vfio_pci_igd_cfg_rw()
|
/openbmc/linux/drivers/input/ |
H A D | input-compat.c | 50 if (copy_to_user(buffer, &compat_event, in input_event_to_user() 55 if (copy_to_user(buffer, event, sizeof(struct input_event))) in input_event_to_user() 111 if (copy_to_user(buffer, event, sizeof(struct input_event))) in input_event_to_user()
|
/openbmc/linux/net/ethtool/ |
H A D | ioctl.c | 107 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_features() 110 if (copy_to_user(useraddr, features, in ethtool_get_features() 956 ret = copy_to_user(useraddr, rxnfc, size); in ethtool_rxnfc_copy_to_user() 964 if (copy_to_user(useraddr, rule_buf, in ethtool_rxnfc_copy_to_user() 1099 if (copy_to_user(useraddr + in ethtool_get_rxfh_indir() 1239 } else if (copy_to_user(useraddr + in ethtool_get_rxfh() 1396 if (copy_to_user(useraddr, regbuf, reglen)) in ethtool_get_regs() 1975 copy_to_user(useraddr, data, in ethtool_get_strings() 2354 if (copy_to_user(useraddr, data, len)) in ethtool_get_dump_data() 2490 if (copy_to_user(useraddr, data, tuna.len)) in ethtool_get_tunable() [all …]
|
/openbmc/linux/sound/firewire/tascam/ |
H A D | tascam-hwdep.c | 32 if (copy_to_user(buf, &event, count)) in tscm_hwdep_read_locked() 78 if (copy_to_user(pos, &entries[head_pos], length)) in tscm_hwdep_read_queue() 92 if (copy_to_user(buf, &type, sizeof(type))) in tscm_hwdep_read_queue() 160 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 204 if (copy_to_user(arg, tscm->state, sizeof(tscm->state))) in tscm_hwdep_state()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_kms.c | 641 return copy_to_user(out, &fw_info, in amdgpu_info_ioctl() 670 return copy_to_user(out, &gds_info, in amdgpu_info_ioctl() 685 return copy_to_user(out, &vram_gtt, in amdgpu_info_ioctl() 721 return copy_to_user(out, &mem, in amdgpu_info_ioctl() 914 ret = copy_to_user(out, dev_info, in amdgpu_info_ioctl() 942 return copy_to_user(out, &bios_size, in amdgpu_info_ioctl() 953 return copy_to_user(out, bios, in amdgpu_info_ioctl() 993 return copy_to_user(out, &handle, in amdgpu_info_ioctl() 1127 return copy_to_user(out, &ras_mask, in amdgpu_info_ioctl() 1186 r = copy_to_user(out, caps, in amdgpu_info_ioctl() [all …]
|
/openbmc/linux/drivers/misc/vmw_vmci/ |
H A D | vmci_host.c | 216 *retval = copy_to_user(user_buf_uva, in drv_cp_harray_to_user() 341 if (copy_to_user(uptr, &init_block, sizeof(init_block))) { in vmci_host_do_init_context() 413 return copy_to_user(uptr, &send_info, sizeof(send_info)) ? -EFAULT : 0; in vmci_host_do_send_datagram() 439 retval = copy_to_user(ubuf, dg, VMCI_DG_SIZE(dg)); in vmci_host_do_receive_datagram() 445 return copy_to_user(uptr, &recv_info, sizeof(recv_info)) ? -EFAULT : 0; in vmci_host_do_receive_datagram() 731 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); in vmci_host_do_ctx_get_cpt_state() 738 return copy_to_user(uptr, &get_info, sizeof(get_info)) ? -EFAULT : 0; in vmci_host_do_ctx_get_cpt_state() 805 return copy_to_user(uptr, ¬ify_info, sizeof(notify_info)) ? in vmci_host_do_set_notify() 856 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_notify_resource() 893 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_recv_notifications() [all …]
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | sigutil_64.c | 23 err |= copy_to_user(&fpu->si_float_regs[0], fpregs, in save_fpu_state() 26 err |= copy_to_user(&fpu->si_float_regs[32], fpregs+16, in save_fpu_state() 67 err |= copy_to_user(&rwin->reg_window[i], rp, in save_rwin_state()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_ioctl.c | 116 if (copy_to_user(hreq->ohandle, &handle, hsize) || in xfs_find_handle() 433 if (copy_to_user(ubuf, buffer, bufsize) || in xfs_ioc_attr_list() 622 if (copy_to_user(am_hreq.ops, ops, size)) in xfs_attrmulti_by_handle() 948 if (copy_to_user(arg, &fsgeo, len)) in xfs_ioc_fsgeometry() 978 if (copy_to_user(arg, &ageo, sizeof(ageo))) in xfs_ioc_ag_geometry() 1496 if (copy_to_user(arg, &bmx, recsize)) in xfs_ioc_getbmap() 1599 if (copy_to_user(user_recs, recs, in xfs_ioc_getfsmap() 1660 if (copy_to_user(arg, &scrub, sizeof(scrub))) in xfs_ioc_scrub_metadata() 1925 if (copy_to_user(arg, &da, sizeof(da))) in xfs_file_ioctl() 2015 if (copy_to_user(arg, &out, sizeof(out))) in xfs_file_ioctl() [all …]
|
/openbmc/linux/net/bluetooth/bnep/ |
H A D | sock.c | 85 if (copy_to_user(argp, &ca, sizeof(ca))) in do_bnep_sock_ioctl() 109 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_bnep_sock_ioctl() 119 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_bnep_sock_ioctl() 125 if (copy_to_user(argp, &supp_feat, sizeof(supp_feat))) in do_bnep_sock_ioctl()
|
/openbmc/linux/drivers/s390/char/ |
H A D | uvdevice.c | 77 if (copy_to_user(user_buf_arg, &uvdev_info, sizeof(uvdev_info))) in uvio_uvdev_info() 116 if (copy_to_user(user_buf_meas, measurement, uvio_attest->meas_len)) in uvio_copy_attest_result_to_user() 118 if (add_data && copy_to_user(user_buf_add, add_data, uvio_attest->add_data_len)) in uvio_copy_attest_result_to_user() 120 if (copy_to_user(user_buf_uid, uvcb_attest->config_uid, sizeof(uvcb_attest->config_uid))) in uvio_copy_attest_result_to_user() 337 if (copy_to_user(user_buf_arg, secrets, UVIO_LIST_SECRETS_LEN)) in uvio_list_secrets() 439 if (copy_to_user(argp, &uv_ioctl, sizeof(uv_ioctl))) in uvio_ioctl()
|
/openbmc/linux/net/atm/ |
H A D | resources.c | 185 error = copy_to_user(arg, &tmp, sizeof(tmp)); in fetch_stats() 220 error = ((copy_to_user(buf, tmp_buf, size)) || in atm_getnames() 244 if (copy_to_user(buf, dev->type, size)) { in atm_dev_ioctl() 251 if (copy_to_user(buf, dev->esi, size)) { in atm_dev_ioctl() 297 if (copy_to_user(buf, &dev->ci_range, size)) { in atm_dev_ioctl() 304 if (copy_to_user(buf, &dev->link_rate, size)) { in atm_dev_ioctl()
|
/openbmc/linux/lib/ |
H A D | test_user_copy.c | 87 ret |= test(copy_to_user(umem, kmem, size), in test_check_nonzero_user() 124 ret |= test(copy_to_user(umem, umem_src, size), in test_copy_struct_from_user() 214 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), in test_user_copy_init() 280 ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE, in test_user_copy_init() 283 ret |= test(!copy_to_user((char __user *)kmem, bad_usermem, in test_user_copy_init()
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | osf_sys.c | 138 copy_to_user(dirent->d_name, name, namlen) || in osf_filldir() 300 return copy_to_user(osf_stat, &tmp, sizeof(tmp)) ? -EFAULT : 0; in linux_to_osf_stat() 543 if (copy_to_user(name, tmp, sizeof(tmp))) in SYSCALL_DEFINE1() 577 if (copy_to_user(name, tmp, len)) in SYSCALL_DEFINE2() 757 if (copy_to_user(buf, tmp, len)) in SYSCALL_DEFINE3() 808 if (copy_to_user(buffer, hwrpb, nbytes) != 0) in SYSCALL_DEFINE5() 960 return copy_to_user(o, &(struct timeval32){ in put_tv32() 969 return copy_to_user(o, &(struct timeval32){ in put_tv_to_tv32() 993 if (copy_to_user(tz, &sys_tz, sizeof(sys_tz))) in SYSCALL_DEFINE2() 1107 return copy_to_user(ru, &r, sizeof(r)) ? -EFAULT : 0; in SYSCALL_DEFINE2() [all …]
|
/openbmc/linux/drivers/sbus/char/ |
H A D | envctrl.c | 555 if (copy_to_user(buf, data, ret)) in envctrl_read() 565 if (copy_to_user(buf, data, ret)) in envctrl_read() 573 if (copy_to_user(buf, data, ret)) in envctrl_read() 583 if (copy_to_user(buf, data, ret)) in envctrl_read() 593 if (copy_to_user(buf, data, ret)) in envctrl_read() 601 if (copy_to_user(buf, data, ret)) in envctrl_read() 609 if (copy_to_user(buf, data, ret)) in envctrl_read() 618 if (copy_to_user(buf, data, ret)) in envctrl_read() 627 if (copy_to_user(buf, data, ret)) in envctrl_read() 638 if (copy_to_user(buf, data, ret)) in envctrl_read()
|
/openbmc/linux/include/linux/ |
H A D | mtio.h | 45 ret = copy_to_user(u, &k32, sizeof(k32)); in put_user_mtget() 47 ret = copy_to_user(u, k, sizeof(*k)); in put_user_mtget()
|
/openbmc/linux/sound/core/ |
H A D | control_compat.c | 40 if (copy_to_user(data32, &data, 4 * sizeof(u32))) in snd_ctl_elem_list_compat() 105 if (copy_to_user(&data32->id, &data->id, sizeof(data->id)) || in snd_ctl_elem_info_compat() 106 copy_to_user(&data32->type, &data->type, 3 * sizeof(u32))) in snd_ctl_elem_info_compat() 119 if (copy_to_user(&data32->value.integer64, in snd_ctl_elem_info_compat() 125 if (copy_to_user(&data32->value.enumerated, in snd_ctl_elem_info_compat() 281 if (copy_to_user(valuep, data->value.bytes.data, size)) in copy_ctl_value_to_user() 284 if (copy_to_user(&data32->id, &data->id, sizeof(data32->id))) in copy_ctl_value_to_user()
|