/linux-6.1.9/drivers/misc/lkdtm/ |
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()
|
/linux-6.1.9/drivers/misc/habanalabs/common/ |
D | habanalabs_ioctl.c | 41 return copy_to_user(out, &dev_stat, in device_status_info() 109 return copy_to_user(out, &hw_ip, in hw_ip_info() 125 return copy_to_user(out, arr, min(max_size, size)) ? -EFAULT : 0; in hw_events_info() 142 return copy_to_user(out, &events_mask, sizeof(u64)) ? -EFAULT : 0; in events_info() 165 return copy_to_user(out, &dram_usage, in dram_usage_info() 184 return copy_to_user(out, &hw_idle, in hw_idle() 237 if (output && copy_to_user((void __user *) (uintptr_t) args->output_ptr, in debug_coresight() 267 return copy_to_user(out, &device_util, in device_utilization() 285 return copy_to_user(out, &clk_rate, min_t(size_t, max_size, sizeof(clk_rate))) in get_clk_rate() 301 return copy_to_user(out, &reset_count, in get_reset_count() [all …]
|
/linux-6.1.9/drivers/media/v4l2-core/ |
D | v4l2-compat-ioctl32.c | 99 if (copy_to_user(p32, &w32, offsetof(struct v4l2_window32, clips)) || in put_v4l2_window32() 100 copy_to_user(&p32->clipcount, &w32.clipcount, in put_v4l2_window32() 200 return copy_to_user(&p32->fmt.pix, &p64->fmt.pix, in put_v4l2_format32() 204 return copy_to_user(&p32->fmt.pix_mp, &p64->fmt.pix_mp, in put_v4l2_format32() 211 return copy_to_user(&p32->fmt.vbi, &p64->fmt.vbi, in put_v4l2_format32() 215 return copy_to_user(&p32->fmt.sliced, &p64->fmt.sliced, in put_v4l2_format32() 219 return copy_to_user(&p32->fmt.sdr, &p64->fmt.sdr, in put_v4l2_format32() 223 return copy_to_user(&p32->fmt.meta, &p64->fmt.meta, in put_v4l2_format32() 233 if (copy_to_user(p32, p64, in put_v4l2_create32() 237 copy_to_user(p32->reserved, p64->reserved, sizeof(p64->reserved))) in put_v4l2_create32() [all …]
|
/linux-6.1.9/virt/kvm/ |
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()
|
/linux-6.1.9/sound/firewire/motu/ |
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() 126 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 206 err = copy_to_user((void __user *)arg, meter, sizeof(*meter)); in hwdep_ioctl() 228 err = copy_to_user((void __user *)arg, meter, sizeof(*meter)); in hwdep_ioctl() 250 err = copy_to_user((void __user *)arg, param, sizeof(*param)); in hwdep_ioctl()
|
/linux-6.1.9/drivers/vfio/pci/ |
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()
|
/linux-6.1.9/net/ethtool/ |
D | ioctl.c | 113 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_features() 116 if (copy_to_user(useraddr, features, in ethtool_get_features() 260 if (copy_to_user(useraddr, &edata, sizeof(edata))) in ethtool_get_one_feature() 516 if (copy_to_user(to, &link_usettings, sizeof(link_usettings))) in store_link_ksettings_for_user() 552 if (copy_to_user(useraddr, &link_ksettings.base, in ethtool_get_link_ksettings() 673 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_settings() 808 if (copy_to_user(useraddr, &info, sizeof(info))) in ethtool_get_sset_info() 812 if (copy_to_user(useraddr, info_buf, array_size(idx, sizeof(u32)))) in ethtool_get_sset_info() 903 if (copy_to_user(useraddr, &crxnfc, min(size, sizeof(crxnfc)))) in ethtool_rxnfc_copy_to_compat() 920 ret = copy_to_user(useraddr, rxnfc, size); in ethtool_rxnfc_copy_to_user() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_kms.c | 551 return copy_to_user(out, &ui32, min(size, 4u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 566 return copy_to_user(out, &ui32, min(size, 4u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 575 ret = copy_to_user(out, &ip, min((size_t)size, sizeof(ip))); in amdgpu_info_ioctl() 619 return copy_to_user(out, &count, min(size, 4u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 623 return copy_to_user(out, &ui64, min(size, 8u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 636 return copy_to_user(out, &fw_info, in amdgpu_info_ioctl() 641 return copy_to_user(out, &ui64, min(size, 8u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 644 return copy_to_user(out, &ui64, min(size, 8u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 647 return copy_to_user(out, &ui64, min(size, 8u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 650 return copy_to_user(out, &ui64, min(size, 8u)) ? -EFAULT : 0; in amdgpu_info_ioctl() [all …]
|
/linux-6.1.9/drivers/char/ |
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()
|
D | ppdev.c | 185 if (bytes_read > 0 && copy_to_user(buf, kbuffer, bytes_read)) in pp_read() 446 if (copy_to_user(argp, &mode, sizeof(mode))) in pp_do_ioctl() 473 if (copy_to_user(argp, &phase, sizeof(phase))) in pp_do_ioctl() 487 if (copy_to_user(argp, &modes, sizeof(modes))) in pp_do_ioctl() 506 if (copy_to_user(argp, &uflags, sizeof(uflags))) in pp_do_ioctl() 523 if (copy_to_user(argp, ®, sizeof(reg))) in pp_do_ioctl() 528 if (copy_to_user(argp, ®, sizeof(reg))) in pp_do_ioctl() 533 if (copy_to_user(argp, ®, sizeof(reg))) in pp_do_ioctl() 609 if (copy_to_user(argp, &ret, sizeof(ret))) in pp_do_ioctl() 640 if (copy_to_user(argp, time32, sizeof(time32))) in pp_do_ioctl() [all …]
|
/linux-6.1.9/drivers/input/ |
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()
|
/linux-6.1.9/sound/firewire/tascam/ |
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()
|
/linux-6.1.9/drivers/misc/vmw_vmci/ |
D | vmci_host.c | 210 *retval = copy_to_user(user_buf_uva, in drv_cp_harray_to_user() 333 if (copy_to_user(uptr, &init_block, sizeof(init_block))) { in vmci_host_do_init_context() 405 return copy_to_user(uptr, &send_info, sizeof(send_info)) ? -EFAULT : 0; in vmci_host_do_send_datagram() 431 retval = copy_to_user(ubuf, dg, VMCI_DG_SIZE(dg)); in vmci_host_do_receive_datagram() 437 return copy_to_user(uptr, &recv_info, sizeof(recv_info)) ? -EFAULT : 0; in vmci_host_do_receive_datagram() 723 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); in vmci_host_do_ctx_get_cpt_state() 730 return copy_to_user(uptr, &get_info, sizeof(get_info)) ? -EFAULT : 0; in vmci_host_do_ctx_get_cpt_state() 759 retval = copy_to_user(uptr, &set_info, sizeof(set_info)) ? -EFAULT : 0; in vmci_host_do_ctx_set_cpt_state() 797 return copy_to_user(uptr, ¬ify_info, sizeof(notify_info)) ? in vmci_host_do_set_notify() 848 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_notify_resource() [all …]
|
/linux-6.1.9/fs/xfs/ |
D | xfs_ioctl.c | 116 if (copy_to_user(hreq->ohandle, &handle, hsize) || in xfs_find_handle() 117 copy_to_user(hreq->ohandlen, &hsize, sizeof(__s32))) in xfs_find_handle() 433 if (copy_to_user(ubuf, buffer, bufsize) || in xfs_ioc_attr_list() 434 copy_to_user(ucursor, &context.cursor, sizeof(context.cursor))) in xfs_ioc_attr_list() 491 if (copy_to_user(ubuf, args.value, args.valuelen)) in xfs_attrmulti_attr_get() 622 if (copy_to_user(am_hreq.ops, ops, size)) in xfs_attrmulti_by_handle() 640 if (copy_to_user(breq->ubuffer, &bs1, sizeof(bs1))) in xfs_fsbulkstat_one_fmt() 653 if (copy_to_user(breq->ubuffer, &ig1, sizeof(struct xfs_inogrp))) in xfs_fsinumbers_fmt() 727 copy_to_user(bulkreq.lastip, &lastino, sizeof(xfs_ino_t))) in xfs_ioc_fsbulkstat() 731 copy_to_user(bulkreq.ocount, &breq.ocount, sizeof(__s32))) in xfs_ioc_fsbulkstat() [all …]
|
/linux-6.1.9/net/bluetooth/bnep/ |
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()
|
/linux-6.1.9/arch/sparc/kernel/ |
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()
|
/linux-6.1.9/arch/alpha/kernel/ |
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() 321 return copy_to_user(osf_stat, &tmp_stat, bufsiz) ? -EFAULT : 0; in linux_to_osf_statfs() 341 return copy_to_user(osf_stat, &tmp_stat, bufsiz) ? -EFAULT : 0; in linux_to_osf_statfs64() 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() [all …]
|
/linux-6.1.9/net/atm/ |
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()
|
/linux-6.1.9/lib/ |
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()
|
/linux-6.1.9/drivers/sbus/char/ |
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()
|
/linux-6.1.9/drivers/s390/char/ |
D | uvdevice.c | 67 if (copy_to_user(user_buf_meas, measurement, uvio_attest->meas_len)) in uvio_copy_attest_result_to_user() 69 if (add_data && copy_to_user(user_buf_add, add_data, uvio_attest->add_data_len)) in uvio_copy_attest_result_to_user() 71 if (copy_to_user(user_buf_uid, uvcb_attest->config_uid, sizeof(uvcb_attest->config_uid))) in uvio_copy_attest_result_to_user() 223 if (copy_to_user(argp, &uv_ioctl, sizeof(uv_ioctl))) in uvio_ioctl()
|
/linux-6.1.9/sound/core/ |
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()
|
D | memory.c | 26 return copy_to_user(dst, (const void __force*)src, count) ? -EFAULT : 0; in copy_to_user_fromio() 34 if (copy_to_user(dst, buf, c)) in copy_to_user_fromio()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_ioc32.c | 122 if (copy_to_user((void __user *)arg, &v32, sizeof(v32))) in compat_drm_version() 154 if (copy_to_user((void __user *)arg, &uq32, sizeof(uq32))) in compat_drm_getunique() 198 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_getmap() 232 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_addmap() 287 if (copy_to_user(argp, &c32, sizeof(c32))) in compat_drm_getclient() 346 if (copy_to_user(argp, &desc32, sizeof(drm_buf_desc32_t))) in compat_drm_addbufs() 384 if (copy_to_user(to + count, &v, offsetof(drm_buf_desc32_t, flags))) in copy_one_buf32() 444 if (copy_to_user(to, &v, sizeof(v))) in map_one_buf32() 542 if (copy_to_user(argp, &req32, sizeof(req32))) in compat_drm_getsareactx() 571 if (copy_to_user(argp, &res32, sizeof(res32))) in compat_drm_resctx() [all …]
|
/linux-6.1.9/drivers/hid/usbhid/ |
D | hiddev.c | 382 if (copy_to_user(buffer + retval, &event, sizeof(struct hiddev_event))) { in hiddev_read() 392 … if (copy_to_user(buffer + retval, list->buffer + list->tail, sizeof(struct hiddev_usage_ref))) { in hiddev_read() 470 if (copy_to_user(user_arg, uref, sizeof(*uref))) in hiddev_ioctl_usage() 525 if (copy_to_user(user_arg, uref, sizeof(*uref))) in hiddev_ioctl_usage() 543 if (copy_to_user(user_arg, uref_multi, in hiddev_ioctl_usage() 584 if (copy_to_user(user_arg+sizeof(int), buf, len+1)) { in hiddev_ioctl_string() 654 r = copy_to_user(user_arg, &dinfo, sizeof(dinfo)) ? in hiddev_ioctl() 744 r = copy_to_user(user_arg, &rinfo, sizeof(rinfo)) ? in hiddev_ioctl() 783 r = copy_to_user(user_arg, &finfo, sizeof(finfo)) ? in hiddev_ioctl() 815 r = copy_to_user(user_arg, &cinfo, sizeof(cinfo)) ? in hiddev_ioctl() [all …]
|