Home
last modified time | relevance | path

Searched refs:copy_from_user (Results 1 – 25 of 1025) sorted by relevance

12345678910>>...41

/Linux-v5.4/drivers/input/
Dinput-compat.c20 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-v5.4/drivers/misc/mic/scif/
Dscif_fd.c87 if (copy_from_user(&pn, argp, sizeof(pn))) in scif_fdioctl()
106 if (copy_from_user(&req, argp, sizeof(req))) in scif_fdioctl()
133 if (copy_from_user(&request, argp, sizeof(request))) in scif_fdioctl()
167 if (copy_from_user(&newep, argp, sizeof(void *))) in scif_fdioctl()
211 if (copy_from_user(&request, argp, in scif_fdioctl()
235 if (copy_from_user(&request, argp, in scif_fdioctl()
265 if (copy_from_user(&node_ids, argp, sizeof(node_ids))) { in scif_fdioctl()
305 if (copy_from_user(&reg, argp, sizeof(reg))) { in scif_fdioctl()
335 if (copy_from_user(&unreg, argp, sizeof(unreg))) { in scif_fdioctl()
349 if (copy_from_user(&copy, argp, sizeof(copy))) { in scif_fdioctl()
[all …]
/Linux-v5.4/drivers/firmware/efi/test/
Defi_test.c165 if (copy_from_user(&getvariable, getvariable_user, in efi_runtime_get_variable()
172 if (copy_from_user(&vendor_guid, getvariable.vendor_guid, in efi_runtime_get_variable()
253 if (copy_from_user(&setvariable, setvariable_user, sizeof(setvariable))) in efi_runtime_set_variable()
255 if (copy_from_user(&vendor_guid, setvariable.vendor_guid, in efi_runtime_set_variable()
298 if (copy_from_user(&gettime, gettime_user, sizeof(gettime))) in efi_runtime_get_time()
335 if (copy_from_user(&settime, settime_user, sizeof(settime))) in efi_runtime_set_time()
337 if (copy_from_user(&efi_time, settime.time, in efi_runtime_set_time()
357 if (copy_from_user(&getwakeuptime, getwakeuptime_user, in efi_runtime_get_waketime()
395 if (copy_from_user(&setwakeuptime, setwakeuptime_user, in efi_runtime_set_waketime()
401 if (copy_from_user(&efi_time, setwakeuptime.time, in efi_runtime_set_waketime()
[all …]
/Linux-v5.4/drivers/char/ipmi/
Dipmi_devintf.c152 if (copy_from_user(&addr, req->addr, req->addr_len)) in handle_send_req()
175 if (copy_from_user(msg.data, in handle_send_req()
308 if (copy_from_user(&req, arg, sizeof(req))) { in ipmi_ioctl()
326 if (copy_from_user(&req, arg, sizeof(req))) { in ipmi_ioctl()
343 if (copy_from_user(&rsp, arg, sizeof(rsp))) in ipmi_ioctl()
355 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl()
369 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl()
383 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl()
397 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl()
411 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl()
[all …]
/Linux-v5.4/drivers/s390/crypto/
Dzcrypt_cca_key.h135 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()
Dzcrypt_msgtype50.c245 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()
327 if (copy_from_user(p, crt->np_prime + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg()
328 copy_from_user(q, crt->nq_prime, short_len) || in ICACRT_msg_to_type50CRT_msg()
329 copy_from_user(dp, crt->bp_key + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg()
330 copy_from_user(dq, crt->bq_key, short_len) || in ICACRT_msg_to_type50CRT_msg()
331 copy_from_user(u, crt->u_mult_inv + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg()
332 copy_from_user(inp, crt->inputdata, mod_len)) in ICACRT_msg_to_type50CRT_msg()
/Linux-v5.4/arch/powerpc/oprofile/cell/
Dvma_map.c128 if (copy_from_user(&ehdr, spu_elf_start, sizeof (ehdr))) in create_vma_map()
154 if (copy_from_user(&phdr, phdr_start + i, sizeof(phdr))) in create_vma_map()
171 if (copy_from_user(&shdr, shdr_start + i, sizeof(shdr))) in create_vma_map()
179 if (copy_from_user(&shdr_str, in create_vma_map()
188 if (copy_from_user(&sym, spu_elf_start + in create_vma_map()
194 if (copy_from_user(name, in create_vma_map()
242 if (copy_from_user(&ovly, ovly_table + i, sizeof (ovly))) in create_vma_map()
/Linux-v5.4/include/asm-generic/
Dtermios.h44 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()
Dtermios-base.h39 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-v5.4/drivers/misc/lkdtm/
Dusercopy.c100 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()
240 if (copy_from_user(buf + offset, user_addr, size)) { in do_usercopy_heap_whitelist()
246 if (copy_from_user(buf + offset - 1, user_addr, size)) { in do_usercopy_heap_whitelist()
/Linux-v5.4/drivers/mtd/
Dmtdchar.c255 if (copy_from_user(kbuf, buf, len)) { in mtdchar_write()
559 if (copy_from_user(&p, arg->data, sizeof(p))) in mtdchar_blkpg_ioctl()
594 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_write_ioctl()
701 if (copy_from_user(&einfo64, argp, in mtdchar_ioctl()
711 if (copy_from_user(&einfo32, argp, in mtdchar_ioctl()
732 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
746 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
759 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
773 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
793 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
[all …]
/Linux-v5.4/drivers/gpu/drm/
Ddrm_ioc32.c99 if (copy_from_user(&v32, (void __user *)arg, sizeof(v32))) in compat_drm_version()
138 if (copy_from_user(&uq32, (void __user *)arg, sizeof(uq32))) in compat_drm_getunique()
180 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_getmap()
208 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_addmap()
265 if (copy_from_user(&c32, argp, sizeof(c32))) in compat_drm_getclient()
327 if (copy_from_user(&desc32, argp, sizeof(drm_buf_desc32_t))) in compat_drm_addbufs()
357 if (copy_from_user(&b32, argp, sizeof(b32))) in compat_drm_markbufs()
401 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_infobufs()
465 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_mapbufs()
493 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_freebufs()
[all …]
/Linux-v5.4/drivers/misc/vmw_vmci/
Dvmci_host.c294 if (copy_from_user(&init_block, uptr, sizeof(init_block))) { in vmci_host_do_init_context()
361 if (copy_from_user(&send_info, uptr, sizeof(send_info))) in vmci_host_do_send_datagram()
417 if (copy_from_user(&recv_info, uptr, sizeof(recv_info))) in vmci_host_do_receive_datagram()
452 if (copy_from_user(&alloc_info, uptr, sizeof(alloc_info))) in vmci_host_do_alloc_queuepair()
474 if (copy_from_user(&alloc_info, uptr, sizeof(alloc_info))) in vmci_host_do_alloc_queuepair()
522 if (copy_from_user(&set_va_info, uptr, sizeof(set_va_info))) in vmci_host_do_queuepair_setva()
565 if (copy_from_user(&page_file_info, uptr, sizeof(*info))) in vmci_host_do_queuepair_setpf()
636 if (copy_from_user(&detach_info, uptr, sizeof(detach_info))) in vmci_host_do_qp_detach()
663 if (copy_from_user(&ar_info, uptr, sizeof(ar_info))) in vmci_host_do_ctx_add_notify()
686 if (copy_from_user(&ar_info, uptr, sizeof(ar_info))) in vmci_host_do_ctx_remove_notify()
[all …]
/Linux-v5.4/drivers/staging/gasket/
Dgasket_ioctl.c32 if (copy_from_user(&die, argp, sizeof(struct gasket_interrupt_eventfd))) in gasket_set_event_fd()
48 if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) in gasket_read_page_table_size()
74 if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) in gasket_read_simple_page_table_size()
101 if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) in gasket_partition_page_table()
135 if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) in gasket_map_buffers()
161 if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) in gasket_unmap_buffers()
191 if (copy_from_user(&ibuf, argp, in gasket_config_coherent_allocator()
/Linux-v5.4/arch/ia64/include/asm/
Dtermios.h37 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-v5.4/arch/parisc/include/asm/
Dtermios.h31 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-v5.4/net/core/
Dethtool.c184 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in ethtool_set_features()
191 if (copy_from_user(features, useraddr, sizeof(features))) in ethtool_set_features()
314 if (copy_from_user(&edata, useraddr, sizeof(edata))) in ethtool_set_one_feature()
565 if (copy_from_user(&link_usettings, from, sizeof(link_usettings))) in load_link_ksettings_from_user()
621 if (copy_from_user(&link_ksettings.base, useraddr, in ethtool_get_link_ksettings()
676 if (copy_from_user(&link_ksettings.base, useraddr, in ethtool_set_link_ksettings()
748 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in ethtool_set_settings()
823 if (copy_from_user(&info, useraddr, sizeof(info))) in ethtool_get_sset_info()
889 if (copy_from_user(&info, useraddr, info_size)) in ethtool_set_rxnfc()
923 if (copy_from_user(&info, useraddr, info_size)) in ethtool_get_rxnfc()
[all …]
/Linux-v5.4/drivers/char/
Dppdev.c225 if (copy_from_user(kbuffer, buf + bytes_written, n)) { in pp_write()
419 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl()
449 if (copy_from_user(&phase, argp, sizeof(phase))) in pp_do_ioctl()
490 if (copy_from_user(&uflags, argp, sizeof(uflags))) in pp_do_ioctl()
556 if (copy_from_user(&reg, argp, sizeof(reg))) in pp_do_ioctl()
562 if (copy_from_user(&reg, argp, sizeof(reg))) in pp_do_ioctl()
568 if (copy_from_user(&mask, argp, in pp_do_ioctl()
571 if (copy_from_user(&reg, 1 + (unsigned char __user *) arg, in pp_do_ioctl()
578 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl()
587 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl()
[all …]
/Linux-v5.4/fs/xfs/
Dxfs_ioctl.c156 if (copy_from_user(&handle, uhandle, hlen)) in xfs_handle_to_dentry()
281 if (copy_from_user(&olen, hreq->ohandlen, sizeof(__u32))) { in xfs_readlink_by_handle()
337 if (copy_from_user(&dmhreq, arg, sizeof(xfs_fsop_setdm_handlereq_t))) in xfs_fssetdm_by_handle()
355 if (copy_from_user(&fsd, dmhreq.data, sizeof(fsd))) { in xfs_fssetdm_by_handle()
383 if (copy_from_user(&al_hreq, arg, sizeof(xfs_fsop_attrlist_handlereq_t))) in xfs_attrlist_by_handle()
510 if (copy_from_user(&am_hreq, arg, sizeof(xfs_fsop_attrmulti_handlereq_t))) in xfs_attrmulti_by_handle()
766 if (copy_from_user(&bulkreq, arg, sizeof(struct xfs_fsop_bulkreq))) in xfs_ioc_fsbulkstat()
769 if (copy_from_user(&lastino, bulkreq.lastip, sizeof(__s64))) in xfs_ioc_fsbulkstat()
935 if (copy_from_user(&hdr, &arg->hdr, sizeof(hdr))) in xfs_ioc_bulkstat()
985 if (copy_from_user(&hdr, &arg->hdr, sizeof(hdr))) in xfs_ioc_inumbers()
[all …]
/Linux-v5.4/drivers/gpu/drm/r128/
Dr128_ioc32.c69 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-v5.4/drivers/char/agp/
Dcompat_ioctl.c69 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-v5.4/net/bluetooth/hidp/
Dsock.c66 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-v5.4/net/bluetooth/bnep/
Dsock.c69 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()
/Linux-v5.4/net/bluetooth/cmtp/
Dsock.c82 if (copy_from_user(&ca, argp, sizeof(ca))) in do_cmtp_sock_ioctl()
107 if (copy_from_user(&cd, argp, sizeof(cd))) in do_cmtp_sock_ioctl()
113 if (copy_from_user(&cl, argp, sizeof(cl))) in do_cmtp_sock_ioctl()
126 if (copy_from_user(&ci, argp, sizeof(ci))) in do_cmtp_sock_ioctl()
/Linux-v5.4/arch/sparc/kernel/
Dsigutil_64.c48 err |= copy_from_user(fpregs, &fpu->si_float_regs[0], in restore_fpu_state()
51 err |= copy_from_user(fpregs+16, &fpu->si_float_regs[32], in restore_fpu_state()
88 err |= copy_from_user(&t->reg_window[i], in restore_rwin_state()

12345678910>>...41