/Linux-v5.4/drivers/misc/lkdtm/ |
D | usercopy.c | 79 if (copy_to_user((void __user *)user_addr, good_stack, in do_usercopy_stack() 86 if (copy_to_user((void __user *)user_addr, bad_stack, in do_usercopy_stack() 153 if (copy_to_user(test_user_addr, test_kern_addr, size / 2)) { in do_usercopy_heap_size() 159 if (copy_to_user(test_user_addr, test_kern_addr, size)) { in do_usercopy_heap_size() 228 if (copy_to_user(user_addr, buf + offset, size)) { in do_usercopy_heap_whitelist() 234 if (copy_to_user(user_addr, buf + offset - 1, size)) { in do_usercopy_heap_whitelist() 308 if (copy_to_user((void __user *)user_addr, test_text, in lkdtm_USERCOPY_KERNEL() 315 if (copy_to_user((void __user *)user_addr, vm_mmap, in lkdtm_USERCOPY_KERNEL() 335 if (copy_to_user(user_ptr, buf, sizeof(buf)) == 0) in lkdtm_USERCOPY_KERNEL_DS()
|
/Linux-v5.4/include/asm-generic/ |
D | termios.h | 64 copy_to_user(termio->c_cc, termios->c_cc, NCC) != 0) in kernel_termios_to_user_termio() 80 return copy_to_user(u, k, sizeof(struct termios2)); in kernel_termios_to_user_termios() 92 return copy_to_user(u, k, sizeof(struct termios)); in kernel_termios_to_user_termios_1() 104 return copy_to_user(u, k, sizeof(struct termios)); in kernel_termios_to_user_termios()
|
D | termios-base.h | 59 copy_to_user(termio->c_cc, termios->c_cc, NCC) != 0) in kernel_termios_to_user_termio() 70 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios)) 74 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))
|
/Linux-v5.4/drivers/misc/mic/scif/ |
D | scif_fd.c | 94 if (copy_to_user(argp, &pn, sizeof(pn))) in scif_fdioctl() 116 if (copy_to_user(argp, &req, sizeof(req))) in scif_fdioctl() 140 if (copy_to_user(argp, &request, sizeof(request))) { in scif_fdioctl() 220 if (copy_to_user(& in scif_fdioctl() 246 if (copy_to_user(& in scif_fdioctl() 279 if (copy_to_user(unodes, nodes, sizeof(u16) * entries)) { in scif_fdioctl() 285 if (copy_to_user(uself, &self, sizeof(u16))) { in scif_fdioctl() 290 if (copy_to_user(argp, &node_ids, sizeof(node_ids))) { in scif_fdioctl() 320 if (copy_to_user(&((struct scifioctl_reg __user *)argp) in scif_fdioctl() 417 if (copy_to_user((void __user *)mark.mark, &tmp_mark, in scif_fdioctl()
|
/Linux-v5.4/drivers/vfio/pci/ |
D | vfio_pci_igd.c | 36 if (copy_to_user(buf, base + pos, count)) in vfio_pci_igd_rw() 132 if (copy_to_user(buf + count - size, &val, 1)) in vfio_pci_igd_cfg_rw() 147 if (copy_to_user(buf + count - size, &val, 2)) in vfio_pci_igd_cfg_rw() 162 if (copy_to_user(buf + count - size, &val, 4)) in vfio_pci_igd_cfg_rw() 177 if (copy_to_user(buf + count - size, &val, 2)) in vfio_pci_igd_cfg_rw() 191 if (copy_to_user(buf + count - size, &val, 1)) in vfio_pci_igd_cfg_rw()
|
/Linux-v5.4/arch/ia64/include/asm/ |
D | termios.h | 50 copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \ 54 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2)) 56 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))
|
/Linux-v5.4/arch/parisc/include/asm/ |
D | termios.h | 44 copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \ 48 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2)) 50 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))
|
/Linux-v5.4/net/core/ |
D | ethtool.c | 168 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_features() 171 if (copy_to_user(useraddr, features, copy_size * sizeof(*features))) in ethtool_get_features() 303 if (copy_to_user(useraddr, &edata, sizeof(edata))) in ethtool_get_one_feature() 603 if (copy_to_user(to, &link_usettings, sizeof(link_usettings))) in store_link_ksettings_for_user() 639 if (copy_to_user(useraddr, &link_ksettings.base, in ethtool_get_link_ksettings() 727 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_settings() 810 if (copy_to_user(useraddr, &info, sizeof(info))) in ethtool_get_drvinfo() 857 if (copy_to_user(useraddr, &info, sizeof(info))) in ethtool_get_sset_info() 861 if (copy_to_user(useraddr, info_buf, idx * sizeof(u32))) in ethtool_get_sset_info() 897 copy_to_user(useraddr, &info, info_size)) in ethtool_set_rxnfc() [all …]
|
/Linux-v5.4/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() 441 if (copy_to_user(argp, &mode, sizeof(mode))) in pp_do_ioctl() 468 if (copy_to_user(argp, &phase, sizeof(phase))) in pp_do_ioctl() 482 if (copy_to_user(argp, &modes, sizeof(modes))) in pp_do_ioctl() 501 if (copy_to_user(argp, &uflags, sizeof(uflags))) in pp_do_ioctl() 527 if (copy_to_user(argp, ®, sizeof(reg))) in pp_do_ioctl() 532 if (copy_to_user(argp, ®, sizeof(reg))) in pp_do_ioctl() 537 if (copy_to_user(argp, ®, sizeof(reg))) in pp_do_ioctl() 613 if (copy_to_user(argp, &ret, sizeof(ret))) in pp_do_ioctl() 637 if (copy_to_user(argp, time32, sizeof(time32))) in pp_do_ioctl() [all …]
|
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_kms.c | 468 return copy_to_user(out, &ui32, min(size, 4u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 483 return copy_to_user(out, &ui32, min(size, 4u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 492 ret = copy_to_user(out, &ip, min((size_t)size, sizeof(ip))); in amdgpu_info_ioctl() 533 return copy_to_user(out, &count, min(size, 4u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 537 return copy_to_user(out, &ui64, min(size, 8u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 550 return copy_to_user(out, &fw_info, in amdgpu_info_ioctl() 555 return copy_to_user(out, &ui64, min(size, 8u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 558 return copy_to_user(out, &ui64, min(size, 8u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 561 return copy_to_user(out, &ui64, min(size, 8u)) ? -EFAULT : 0; in amdgpu_info_ioctl() 564 return copy_to_user(out, &ui64, min(size, 8u)) ? -EFAULT : 0; in amdgpu_info_ioctl() [all …]
|
/Linux-v5.4/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-v5.4/sound/firewire/tascam/ |
D | tascam-hwdep.c | 31 if (copy_to_user(buf, &event, count)) in tscm_hwdep_read_locked() 76 if (copy_to_user(pos, &entries[head_pos], length)) in tscm_hwdep_read_queue() 90 if (copy_to_user(buf, &type, sizeof(type))) in tscm_hwdep_read_queue() 158 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 202 if (copy_to_user(arg, tscm->state, sizeof(tscm->state))) in tscm_hwdep_state()
|
/Linux-v5.4/drivers/misc/habanalabs/ |
D | habanalabs_ioctl.c | 37 return copy_to_user(out, &dev_stat, in device_status_info() 74 return copy_to_user(out, &hw_ip, in hw_ip_info() 90 return copy_to_user(out, arr, min(max_size, size)) ? -EFAULT : 0; in hw_events_info() 113 return copy_to_user(out, &dram_usage, in dram_usage_info() 129 return copy_to_user(out, &hw_idle, in hw_idle() 183 if (copy_to_user((void __user *) (uintptr_t) args->output_ptr, in debug_coresight() 220 return copy_to_user(out, &device_util, in device_utilization() 410 if (copy_to_user((void __user *)arg, kdata, usize)) in _hl_ioctl()
|
/Linux-v5.4/drivers/misc/vmw_vmci/ |
D | vmci_host.c | 205 *retval = copy_to_user(user_buf_uva, in drv_cp_harray_to_user() 330 if (copy_to_user(uptr, &init_block, sizeof(init_block))) { in vmci_host_do_init_context() 400 return copy_to_user(uptr, &send_info, sizeof(send_info)) ? -EFAULT : 0; in vmci_host_do_send_datagram() 426 retval = copy_to_user(ubuf, dg, VMCI_DG_SIZE(dg)); in vmci_host_do_receive_datagram() 432 return copy_to_user(uptr, &recv_info, sizeof(recv_info)) ? -EFAULT : 0; in vmci_host_do_receive_datagram() 718 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); in vmci_host_do_ctx_get_cpt_state() 725 return copy_to_user(uptr, &get_info, sizeof(get_info)) ? -EFAULT : 0; in vmci_host_do_ctx_get_cpt_state() 754 retval = copy_to_user(uptr, &set_info, sizeof(set_info)) ? -EFAULT : 0; in vmci_host_do_ctx_set_cpt_state() 792 return copy_to_user(uptr, ¬ify_info, sizeof(notify_info)) ? in vmci_host_do_set_notify() 843 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_notify_resource() [all …]
|
/Linux-v5.4/fs/xfs/ |
D | xfs_ioctl.c | 110 if (copy_to_user(hreq->ohandle, &handle, hsize) || in xfs_find_handle() 111 copy_to_user(hreq->ohandlen, &hsize, sizeof(__s32))) in xfs_find_handle() 409 if (copy_to_user(&p->pos, cursor, sizeof(attrlist_cursor_kern_t))) { in xfs_attrlist_by_handle() 414 if (copy_to_user(al_hreq.buffer, kbuf, al_hreq.buflen)) in xfs_attrlist_by_handle() 445 if (copy_to_user(ubuf, kbuf, *len)) in xfs_attrmulti_attr_get() 577 if (copy_to_user(am_hreq.ops, ops, size)) in xfs_attrmulti_by_handle() 725 if (copy_to_user(breq->ubuffer, &bs1, sizeof(bs1))) in xfs_fsbulkstat_one_fmt() 738 if (copy_to_user(breq->ubuffer, &ig1, sizeof(struct xfs_inogrp))) in xfs_fsinumbers_fmt() 810 copy_to_user(bulkreq.lastip, &lastino, sizeof(xfs_ino_t))) in xfs_ioc_fsbulkstat() 814 copy_to_user(bulkreq.ocount, &breq.ocount, sizeof(__s32))) in xfs_ioc_fsbulkstat() [all …]
|
/Linux-v5.4/net/bluetooth/bnep/ |
D | sock.c | 84 if (copy_to_user(argp, &ca, sizeof(ca))) in do_bnep_sock_ioctl() 108 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_bnep_sock_ioctl() 118 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_bnep_sock_ioctl() 124 if (copy_to_user(argp, &supp_feat, sizeof(supp_feat))) in do_bnep_sock_ioctl()
|
/Linux-v5.4/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-v5.4/drivers/s390/crypto/ |
D | pkey_api.c | 767 if (copy_to_user(ugs, &kgs, sizeof(kgs))) in pkey_unlocked_ioctl() 782 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl() 799 if (copy_to_user(usp, &ksp, sizeof(ksp))) in pkey_unlocked_ioctl() 814 if (copy_to_user(ucp, &kcp, sizeof(kcp))) in pkey_unlocked_ioctl() 830 if (copy_to_user(ufc, &kfc, sizeof(kfc))) in pkey_unlocked_ioctl() 844 if (copy_to_user(usp, &ksp, sizeof(ksp))) in pkey_unlocked_ioctl() 859 if (copy_to_user(uvk, &kvk, sizeof(kvk))) in pkey_unlocked_ioctl() 873 if (copy_to_user(ugp, &kgp, sizeof(kgp))) in pkey_unlocked_ioctl() 902 if (copy_to_user(utp, &ktp, sizeof(ktp))) in pkey_unlocked_ioctl() 937 if (copy_to_user(kgs.key, kkey, klen)) { in pkey_unlocked_ioctl() [all …]
|
/Linux-v5.4/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-v5.4/arch/alpha/include/asm/ |
D | termios.h | 72 copy_to_user(u_termio, &k_termio, sizeof(k_termio)); \ 79 copy_to_user(u, k, sizeof(struct termios2)) 85 copy_to_user(u, k, sizeof(struct termios))
|
/Linux-v5.4/fs/verity/ |
D | measure.c | 49 if (copy_to_user(uarg, &arg, sizeof(arg))) in fsverity_ioctl_measure() 52 if (copy_to_user(uarg->digest, vi->measurement, hash_alg->digest_size)) in fsverity_ioctl_measure()
|
/Linux-v5.4/drivers/sbus/char/ |
D | envctrl.c | 557 if (copy_to_user(buf, data, ret)) in envctrl_read() 567 if (copy_to_user(buf, data, ret)) in envctrl_read() 575 if (copy_to_user(buf, data, ret)) in envctrl_read() 585 if (copy_to_user(buf, data, ret)) in envctrl_read() 595 if (copy_to_user(buf, data, ret)) in envctrl_read() 603 if (copy_to_user(buf, data, ret)) in envctrl_read() 611 if (copy_to_user(buf, data, ret)) in envctrl_read() 620 if (copy_to_user(buf, data, ret)) in envctrl_read() 629 if (copy_to_user(buf, data, ret)) in envctrl_read() 640 if (copy_to_user(buf, data, ret)) in envctrl_read()
|
/Linux-v5.4/arch/alpha/kernel/ |
D | osf_sys.c | 137 copy_to_user(dirent->d_name, name, namlen) || in osf_filldir() 299 return copy_to_user(osf_stat, &tmp, sizeof(tmp)) ? -EFAULT : 0; in linux_to_osf_stat() 320 return copy_to_user(osf_stat, &tmp_stat, bufsiz) ? -EFAULT : 0; in linux_to_osf_statfs() 340 return copy_to_user(osf_stat, &tmp_stat, bufsiz) ? -EFAULT : 0; in linux_to_osf_statfs64() 542 if (copy_to_user(name, tmp, sizeof(tmp))) in SYSCALL_DEFINE1() 576 if (copy_to_user(name, tmp, len)) in SYSCALL_DEFINE2() 756 if (copy_to_user(buf, tmp, len)) in SYSCALL_DEFINE3() 807 if (copy_to_user(buffer, hwrpb, nbytes) != 0) in SYSCALL_DEFINE5() 959 return copy_to_user(o, &(struct timeval32){ in put_tv32() 968 return copy_to_user(o, &(struct timeval32){ in put_tv_to_tv32() [all …]
|
/Linux-v5.4/net/atm/ |
D | resources.c | 187 error = copy_to_user(arg, &tmp, sizeof(tmp)); in fetch_stats() 243 error = ((copy_to_user(buf, tmp_buf, size)) || in atm_dev_ioctl() 287 if (copy_to_user(buf, dev->type, size)) { in atm_dev_ioctl() 294 if (copy_to_user(buf, dev->esi, size)) { in atm_dev_ioctl() 340 if (copy_to_user(buf, &dev->ci_range, size)) { in atm_dev_ioctl() 347 if (copy_to_user(buf, &dev->link_rate, size)) { in atm_dev_ioctl()
|