/linux/drivers/input/ |
A D | input-compat.c | 20 if (copy_from_user(&compat_event, buffer, in input_event_from_user() 31 if (copy_from_user(event, buffer, sizeof(struct input_event))) in input_event_from_user() 78 if (copy_from_user(compat_effect, buffer, in input_ff_effect_from_user() 90 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user() 102 if (copy_from_user(event, buffer, sizeof(struct input_event))) in input_event_from_user() 123 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user()
|
/linux/drivers/firmware/efi/test/ |
A D | efi_test.c | 153 if (copy_from_user(&getvariable, getvariable_user, in efi_runtime_get_variable() 243 if (copy_from_user(&vendor_guid, setvariable.vendor_guid, in efi_runtime_set_variable() 325 if (copy_from_user(&efi_time, settime.time, in efi_runtime_set_time() 345 if (copy_from_user(&getwakeuptime, getwakeuptime_user, in efi_runtime_get_waketime() 383 if (copy_from_user(&setwakeuptime, setwakeuptime_user, in efi_runtime_set_waketime() 389 if (copy_from_user(&efi_time, setwakeuptime.time, in efi_runtime_set_waketime() 428 if (copy_from_user(&vendor_guid, in efi_runtime_get_nextvariablename() 514 if (copy_from_user(&getnexthighmonocount, in efi_runtime_get_nexthighmonocount() 542 if (copy_from_user(&resetsystem, resetsystem_user, in efi_runtime_reset_system() 607 if (copy_from_user(&qcaps, qcaps_user, sizeof(qcaps))) in efi_runtime_query_capsulecaps() [all …]
|
/linux/drivers/char/ipmi/ |
A D | ipmi_devintf.c | 175 if (copy_from_user(msg.data, in handle_send_req() 310 if (copy_from_user(&req, arg, sizeof(req))) { in ipmi_ioctl() 328 if (copy_from_user(&req, arg, sizeof(req))) { in ipmi_ioctl() 345 if (copy_from_user(&rsp, arg, sizeof(rsp))) in ipmi_ioctl() 357 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl() 371 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl() 385 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl() 399 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl() 413 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl() 427 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl() [all …]
|
/linux/drivers/s390/crypto/ |
A D | zcrypt_cca_key.h | 135 if (copy_from_user(temp, mex->b_key, mex->inputdatalength)) in zcrypt_type6_mex_key_en() 146 if (copy_from_user(temp, mex->n_modulus, mex->inputdatalength)) in zcrypt_type6_mex_key_en() 224 if (copy_from_user(key->key_parts, crt->np_prime, long_len) || in zcrypt_type6_crt_key() 225 copy_from_user(key->key_parts + long_len, in zcrypt_type6_crt_key() 227 copy_from_user(key->key_parts + long_len + short_len, in zcrypt_type6_crt_key() 229 copy_from_user(key->key_parts + 2*long_len + short_len, in zcrypt_type6_crt_key() 231 copy_from_user(key->key_parts + 2*long_len + 2*short_len, in zcrypt_type6_crt_key()
|
A D | zcrypt_msgtype50.c | 245 if (copy_from_user(mod, mex->n_modulus, mod_len) || in ICAMEX_msg_to_type50MEX_msg() 246 copy_from_user(exp, mex->b_key, mod_len) || in ICAMEX_msg_to_type50MEX_msg() 247 copy_from_user(inp, mex->inputdata, mod_len)) in ICAMEX_msg_to_type50MEX_msg() 333 if (copy_from_user(p, crt->np_prime + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg() 334 copy_from_user(q, crt->nq_prime, short_len) || in ICACRT_msg_to_type50CRT_msg() 335 copy_from_user(dp, crt->bp_key + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg() 336 copy_from_user(dq, crt->bq_key, short_len) || in ICACRT_msg_to_type50CRT_msg() 337 copy_from_user(u, crt->u_mult_inv + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg() 338 copy_from_user(inp, crt->inputdata, mod_len)) in ICACRT_msg_to_type50CRT_msg()
|
/linux/drivers/mtd/ |
A D | mtdchar.c | 247 if (copy_from_user(kbuf, buf, len)) { in mtdchar_write() 549 if (copy_from_user(&p, arg->data, sizeof(p))) in mtdchar_blkpg_ioctl() 585 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_write_ioctl() 732 if (copy_from_user(&einfo64, argp, in mtdchar_ioctl() 742 if (copy_from_user(&einfo32, argp, in mtdchar_ioctl() 763 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl() 777 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl() 790 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl() 804 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl() 1007 if (copy_from_user(&a, blk_arg, sizeof(a))) in mtdchar_ioctl() [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_ioc32.c | 184 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_getmap() 212 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_addmap() 269 if (copy_from_user(&c32, argp, sizeof(c32))) in compat_drm_getclient() 359 if (copy_from_user(&b32, argp, sizeof(b32))) in compat_drm_markbufs() 404 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_infobufs() 468 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_mapbufs() 496 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_freebufs() 516 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_setsareactx() 533 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_getsareactx() 598 if (copy_from_user(&d32, argp, sizeof(d32))) in compat_drm_dma() [all …]
|
/linux/drivers/misc/lkdtm/ |
A D | usercopy.c | 100 if (copy_from_user(good_stack, (void __user *)user_addr, in do_usercopy_stack() 107 if (copy_from_user(bad_stack, (void __user *)user_addr, in do_usercopy_stack() 165 if (copy_from_user(test_kern_addr, test_user_addr, size / 2)) { in do_usercopy_heap_size() 171 if (copy_from_user(test_kern_addr, test_user_addr, size)) { in do_usercopy_heap_size() 242 if (copy_from_user(buf + offset, user_addr, size)) { in do_usercopy_heap_whitelist() 248 if (copy_from_user(buf + offset - 1, user_addr, size)) { in do_usercopy_heap_whitelist()
|
/linux/drivers/misc/vmw_vmci/ |
A D | vmci_host.c | 366 if (copy_from_user(&send_info, uptr, sizeof(send_info))) in vmci_host_do_send_datagram() 422 if (copy_from_user(&recv_info, uptr, sizeof(recv_info))) in vmci_host_do_receive_datagram() 457 if (copy_from_user(&alloc_info, uptr, sizeof(alloc_info))) in vmci_host_do_alloc_queuepair() 479 if (copy_from_user(&alloc_info, uptr, sizeof(alloc_info))) in vmci_host_do_alloc_queuepair() 570 if (copy_from_user(&page_file_info, uptr, sizeof(*info))) in vmci_host_do_queuepair_setpf() 668 if (copy_from_user(&ar_info, uptr, sizeof(ar_info))) in vmci_host_do_ctx_add_notify() 691 if (copy_from_user(&ar_info, uptr, sizeof(ar_info))) in vmci_host_do_ctx_remove_notify() 715 if (copy_from_user(&get_info, uptr, sizeof(get_info))) in vmci_host_do_ctx_get_cpt_state() 747 if (copy_from_user(&set_info, uptr, sizeof(set_info))) in vmci_host_do_ctx_set_cpt_state() 818 if (copy_from_user(&info, uptr, sizeof(info))) in vmci_host_do_notify_resource() [all …]
|
/linux/arch/arm64/lib/ |
A D | .copy_from_user.o.cmd | 1 …copy_from_user.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch… 3 source_arch/arm64/lib/copy_from_user.o := arch/arm64/lib/copy_from_user.S 5 deps_arch/arm64/lib/copy_from_user.o := \ 148 arch/arm64/lib/copy_from_user.o: $(deps_arch/arm64/lib/copy_from_user.o) 150 $(deps_arch/arm64/lib/copy_from_user.o):
|
/linux/include/asm-generic/ |
A D | termios.h | 44 if (copy_from_user(termios->c_cc, termio->c_cc, NCC) != 0) in user_termio_to_kernel_termios() 74 return copy_from_user(k, u, sizeof(struct termios2)); in user_termios_to_kernel_termios() 86 return copy_from_user(k, u, sizeof(struct termios)); in user_termios_to_kernel_termios_1() 98 return copy_from_user(k, u, sizeof(struct termios)); in user_termios_to_kernel_termios()
|
A D | termios-base.h | 39 if (copy_from_user(termios->c_cc, termio->c_cc, NCC) != 0) in user_termio_to_kernel_termios() 66 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios)) 73 #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios))
|
/linux/net/ethtool/ |
A D | ioctl.c | 129 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in ethtool_set_features() 270 if (copy_from_user(&edata, useraddr, sizeof(edata))) in ethtool_set_one_feature() 546 if (copy_from_user(&link_ksettings.base, useraddr, in ethtool_get_link_ksettings() 603 if (copy_from_user(&link_ksettings.base, useraddr, in ethtool_set_link_ksettings() 706 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in ethtool_set_settings() 882 if (copy_from_user(rxnfc, useraddr, size)) in ethtool_rxnfc_copy_from_user() 1078 if (copy_from_user(&user_size, in ethtool_get_rxfh_indir() 1130 if (copy_from_user(&user_size, in ethtool_set_rxfh_indir() 1333 if (copy_from_user(hkey, in ethtool_set_rxfh() 1452 if (copy_from_user(&wol, useraddr, sizeof(wol))) in ethtool_set_wol() [all …]
|
/linux/drivers/char/ |
A D | ppdev.c | 424 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl() 454 if (copy_from_user(&phase, argp, sizeof(phase))) in pp_do_ioctl() 495 if (copy_from_user(&uflags, argp, sizeof(uflags))) in pp_do_ioctl() 552 if (copy_from_user(®, argp, sizeof(reg))) in pp_do_ioctl() 558 if (copy_from_user(®, argp, sizeof(reg))) in pp_do_ioctl() 564 if (copy_from_user(&mask, argp, in pp_do_ioctl() 574 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl() 583 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl() 598 if (copy_from_user(®, argp, sizeof(reg))) in pp_do_ioctl() 615 if (copy_from_user(time32, argp, sizeof(time32))) in pp_do_ioctl() [all …]
|
/linux/drivers/media/v4l2-core/ |
A D | v4l2-compat-ioctl32.c | 61 if (copy_from_user(&w32, p32, sizeof(w32))) in get_v4l2_window32() 153 return copy_from_user(&p64->fmt.pix, &p32->fmt.pix, in get_v4l2_format32() 164 return copy_from_user(&p64->fmt.vbi, &p32->fmt.vbi, in get_v4l2_format32() 186 if (copy_from_user(p64, p32, in get_v4l2_create32() 410 if (copy_from_user(&vb32, arg, sizeof(vb32))) in get_v4l2_buffer32() 456 if (copy_from_user(&vb32, arg, sizeof(vb32))) in get_v4l2_buffer32_time32() 646 if (copy_from_user(p64, p32, sizeof(*p32))) in get_v4l2_input32() 714 if (copy_from_user(&ec32, p32, sizeof(ec32))) in get_v4l2_ext_controls32() 1059 if (copy_from_user(c64, c32, sizeof(c64->c))) in v4l2_compat_get_array_args() 1106 if (copy_from_user(ec64, ec32, sizeof(*ec32))) in v4l2_compat_get_array_args() [all …]
|
/linux/arch/parisc/include/asm/ |
A D | termios.h | 31 copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \ 47 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios2)) 49 #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios))
|
/linux/arch/ia64/include/asm/ |
A D | termios.h | 37 copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \ 53 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios2)) 55 #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios))
|
/linux/sound/core/ |
A D | control_compat.c | 30 if (copy_from_user(&data, data32, 4 * sizeof(u32))) in snd_ctl_elem_list_compat() 91 if (copy_from_user(&data->id, &data32->id, sizeof(data->id))) in snd_ctl_elem_info_compat() 227 if (copy_from_user(&data->id, &data32->id, sizeof(data->id))) in copy_ctl_value_from_user() 252 if (copy_from_user(data->value.bytes.data, valuep, size)) in copy_ctl_value_from_user() 378 if (copy_from_user(&data->id, &data32->id, sizeof(data->id)) || in snd_ctl_elem_add_compat() 379 copy_from_user(&data->type, &data32->type, 3 * sizeof(u32))) in snd_ctl_elem_add_compat() 392 if (copy_from_user(&data->value.integer64, in snd_ctl_elem_add_compat() 398 if (copy_from_user(&data->value.enumerated, in snd_ctl_elem_add_compat()
|
/linux/fs/xfs/ |
A D | xfs_ioctl.c | 161 if (copy_from_user(&handle, uhandle, hlen)) in xfs_handle_to_dentry() 451 if (copy_from_user(&al_hreq, p, sizeof(al_hreq))) in xfs_attrlist_by_handle() 1038 if (copy_from_user(&ageo, arg, sizeof(ageo))) in xfs_ioc_ag_geometry() 1543 if (copy_from_user(&bmx, arg, recsize)) in xfs_ioc_getbmap() 1971 if (copy_from_user(&bf, arg, sizeof(bf))) in xfs_file_ioctl() 2029 if (copy_from_user(&hreq, arg, sizeof(hreq))) in xfs_file_ioctl() 2125 if (copy_from_user(&in, arg, sizeof(in))) in xfs_file_ioctl() 2139 if (copy_from_user(&in, arg, sizeof(in))) in xfs_file_ioctl() 2153 if (copy_from_user(&in, arg, sizeof(in))) in xfs_file_ioctl() 2182 if (copy_from_user(&in, arg, sizeof(in))) in xfs_file_ioctl() [all …]
|
/linux/drivers/staging/vc04_services/interface/vchiq_arm/ |
A D | vchiq_dev.c | 92 if (copy_from_user(dest + total_bytes_copied, in vchiq_ioc_copy_element_data() 644 if (copy_from_user(&args, argp, sizeof(args))) { in vchiq_ioctl() 734 if (copy_from_user(elements, args.elements, in vchiq_ioctl() 755 if (copy_from_user(&args, argp, sizeof(args))) { in vchiq_ioctl() 769 if (copy_from_user(&args, argp, sizeof(args))) { in vchiq_ioctl() 967 if (copy_from_user(&args32, arg, sizeof(args32))) in vchiq_compat_ioctl_queue_message() 988 if (copy_from_user(&element32, args.elements, in vchiq_compat_ioctl_queue_message() 1032 if (copy_from_user(&args32, argp, sizeof(args32))) in vchiq_compat_ioctl_queue_bulk() 1066 if (copy_from_user(&args32, argp, sizeof(args32))) in vchiq_compat_ioctl_await_completion() 1099 if (copy_from_user(&args32, arg, sizeof(args32))) in vchiq_compat_ioctl_dequeue_message() [all …]
|
/linux/drivers/char/agp/ |
A D | compat_ioctl.c | 69 if (copy_from_user(&ureserve, arg, sizeof(ureserve))) in compat_agpioc_reserve_wrap() 115 if (copy_from_user(usegment, (void __user *) ureserve.seg_list, in compat_agpioc_reserve_wrap() 158 if (copy_from_user(&alloc, arg, sizeof(alloc))) in compat_agpioc_allocate_wrap() 182 if (copy_from_user(&bind_info, arg, sizeof(bind_info))) in compat_agpioc_bind_wrap() 199 if (copy_from_user(&unbind, arg, sizeof(unbind))) in compat_agpioc_unbind_wrap()
|
/linux/drivers/gpu/drm/r128/ |
A D | r128_ioc32.c | 69 if (copy_from_user(&init32, (void __user *)arg, sizeof(init32))) in compat_r128_init() 114 if (copy_from_user(&depth32, (void __user *)arg, sizeof(depth32))) in compat_r128_depth() 137 if (copy_from_user(&stipple32, (void __user *)arg, sizeof(stipple32))) in compat_r128_stipple() 156 if (copy_from_user(&getparam32, (void __user *)arg, sizeof(getparam32))) in compat_r128_getparam()
|
/linux/net/bluetooth/hidp/ |
A D | sock.c | 66 if (copy_from_user(&ca, argp, sizeof(ca))) in do_hidp_sock_ioctl() 93 if (copy_from_user(&cd, argp, sizeof(cd))) in do_hidp_sock_ioctl() 99 if (copy_from_user(&cl, argp, sizeof(cl))) in do_hidp_sock_ioctl() 112 if (copy_from_user(&ci, argp, sizeof(ci))) in do_hidp_sock_ioctl() 180 if (copy_from_user(&ca32, (void __user *) arg, sizeof(ca32))) in hidp_sock_compat_ioctl()
|
/linux/scripts/coccinelle/api/ |
A D | memdup_user.cocci | 44 - if (copy_from_user(to, from, size) != 0) { 67 - if (copy_from_user(to, from, size) != 0) { 83 if (copy_from_user(to, from, size) != 0) 94 if (copy_from_user(to, from, size) != 0)
|
/linux/net/bluetooth/bnep/ |
A D | sock.c | 69 if (copy_from_user(&ca, argp, sizeof(ca))) in do_bnep_sock_ioctl() 95 if (copy_from_user(&cd, argp, sizeof(cd))) in do_bnep_sock_ioctl() 101 if (copy_from_user(&cl, argp, sizeof(cl))) in do_bnep_sock_ioctl() 114 if (copy_from_user(&ci, argp, sizeof(ci))) in do_bnep_sock_ioctl()
|