/Linux-v5.4/drivers/gpu/drm/i915/ |
D | i915_query.c | 76 if (__copy_to_user(u64_to_user_ptr(query_item->data_ptr), in query_topology_info() 80 if (__copy_to_user(u64_to_user_ptr(query_item->data_ptr + sizeof(topo)), in query_topology_info() 84 if (__copy_to_user(u64_to_user_ptr(query_item->data_ptr + in query_topology_info() 89 if (__copy_to_user(u64_to_user_ptr(query_item->data_ptr + in query_topology_info() 132 if (__copy_to_user(info_ptr, &info, sizeof(info))) in query_engine_info() 139 if (__copy_to_user(query_ptr, &query, sizeof(query))) in query_engine_info()
|
/Linux-v5.4/arch/ia64/kernel/ |
D | signal.c | 36 # define PUT_SIGSET(k,u) __copy_to_user((u)->sig, (k)->sig, sizeof(sigset_t)) 182 err = __copy_to_user(&sc->sc_fr[32], current->thread.fph, 96*16); in setup_sigcontext() 199 err |= __copy_to_user(&sc->sc_gr[1], &scr->pt.r1, 8); /* r1 */ in setup_sigcontext() 200 err |= __copy_to_user(&sc->sc_gr[8], &scr->pt.r8, 4*8); /* r8-r11 */ in setup_sigcontext() 201 err |= __copy_to_user(&sc->sc_gr[12], &scr->pt.r12, 2*8); /* r12-r13 */ in setup_sigcontext() 202 err |= __copy_to_user(&sc->sc_gr[15], &scr->pt.r15, 8); /* r15 */ in setup_sigcontext() 210 err |= __copy_to_user(&sc->sc_ar25, &scr->pt.ar_csd, 2*8); /* ar.csd & ar.ssd */ in setup_sigcontext() 211 err |= __copy_to_user(&sc->sc_gr[2], &scr->pt.r2, 2*8); /* r2-r3 */ in setup_sigcontext() 212 err |= __copy_to_user(&sc->sc_gr[16], &scr->pt.r16, 16*8); /* r16-r31 */ in setup_sigcontext()
|
D | ptrace.c | 885 retval |= __copy_to_user(&ppr->gr[1], &pt->r1, sizeof(long)); in ptrace_getregs() 886 retval |= __copy_to_user(&ppr->gr[2], &pt->r2, sizeof(long) *2); in ptrace_getregs() 898 retval |= __copy_to_user(&ppr->gr[8], &pt->r8, sizeof(long) * 4); in ptrace_getregs() 902 retval |= __copy_to_user(&ppr->gr[12], &pt->r12, sizeof(long) * 2); in ptrace_getregs() 903 retval |= __copy_to_user(&ppr->gr[14], &pt->r14, sizeof(long)); in ptrace_getregs() 904 retval |= __copy_to_user(&ppr->gr[15], &pt->r15, sizeof(long)); in ptrace_getregs() 908 retval |= __copy_to_user(&ppr->gr[16], &pt->r16, sizeof(long) * 16); in ptrace_getregs() 932 retval |= __copy_to_user(&ppr->fr[i], &fpval, sizeof (fpval)); in ptrace_getregs() 937 retval |= __copy_to_user(&ppr->fr[6], &pt->f6, in ptrace_getregs() 942 retval |= __copy_to_user(&ppr->fr[12], &sw->f12, in ptrace_getregs() [all …]
|
/Linux-v5.4/arch/openrisc/kernel/ |
D | signal.c | 114 err |= __copy_to_user(sc->regs.gpr, regs, 32 * sizeof(unsigned long)); in setup_sigcontext() 115 err |= __copy_to_user(&sc->regs.pc, ®s->pc, sizeof(unsigned long)); in setup_sigcontext() 116 err |= __copy_to_user(&sc->regs.sr, ®s->sr, sizeof(unsigned long)); in setup_sigcontext() 173 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
|
/Linux-v5.4/arch/sparc/kernel/ |
D | signal_32.c | 256 err = __copy_to_user(&sf->info.si_regs, regs, sizeof(struct pt_regs)); in setup_frame() 278 err |= __copy_to_user(sf->extramask, &oldset->sig[1], in setup_frame() 281 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP], in setup_frame() 287 err |= __copy_to_user(sf, rp, sizeof(struct reg_window32)); in setup_frame() 353 err |= __copy_to_user(&sf->regs.u_regs, regs->u_regs, sizeof(regs->u_regs)); in setup_rt_frame() 372 err |= __copy_to_user(&sf->mask, &oldset->sig[0], sizeof(sigset_t)); in setup_rt_frame() 378 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP], in setup_rt_frame() 384 err |= __copy_to_user(sf, rp, sizeof(struct reg_window32)); in setup_rt_frame()
|
D | sigutil_32.c | 35 err |= __copy_to_user(&fpu->si_float_regs[0], in save_fpu_state() 41 err |= __copy_to_user(&fpu->si_fpqueue[0], in save_fpu_state()
|
/Linux-v5.4/arch/csky/kernel/ |
D | signal.c | 34 return __copy_to_user(&sc->sc_user_fp, &user_fp, sizeof(user_fp)); in save_fpu_state() 103 err |= __copy_to_user(&sc->sc_pt_regs, regs, sizeof(struct pt_regs)); in setup_sigcontext() 150 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
|
/Linux-v5.4/arch/xtensa/kernel/ |
D | signal.c | 150 err |= __copy_to_user (sc->sc_a, regs->areg, 16 * 4); in setup_sigcontext() 159 err |= __copy_to_user(&frame->xtregs.cp, &ti->xtregs_cp, in setup_sigcontext() 162 err |= __copy_to_user(&frame->xtregs.opt, ®s->xtregs_opt, in setup_sigcontext() 164 err |= __copy_to_user(&frame->xtregs.user, &ti->xtregs_user, in setup_sigcontext() 366 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_frame()
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | signal_32.c | 163 return __copy_to_user(&frame->mc_gregs, regs, GP_REGS_SIZE); in save_general_regs() 249 return __copy_to_user(to, buf, ELF_NFPREG * sizeof(double)); in copy_fpr_to_user() 276 return __copy_to_user(to, buf, ELF_NVSRHALFREG * sizeof(double)); in copy_vsx_to_user() 303 return __copy_to_user(to, buf, ELF_NFPREG * sizeof(double)); in copy_ckfpr_to_user() 330 return __copy_to_user(to, buf, ELF_NVSRHALFREG * sizeof(double)); in copy_ckvsx_to_user() 350 return __copy_to_user(to, task->thread.fp_state.fpr, in copy_fpr_to_user() 365 return __copy_to_user(to, task->thread.ckfp_state.fpr, in copy_ckfpr_to_user() 400 if (__copy_to_user(&frame->mc_vregs, ¤t->thread.vr_state, in save_user_regs() 446 if (__copy_to_user(&frame->mc_vregs, current->thread.evr, in save_user_regs() 522 if (__copy_to_user(&frame->mc_vregs, ¤t->thread.ckvr_state, in save_tm_user_regs() [all …]
|
D | signal_64.c | 122 err |= __copy_to_user(v_regs, &tsk->thread.vr_state, in setup_sigcontext() 169 err |= __copy_to_user(&sc->gp_regs, regs, GP_REGS_SIZE); in setup_sigcontext() 239 err |= __copy_to_user(v_regs, &tsk->thread.ckvr_state, in setup_tm_sigcontexts() 245 err |= __copy_to_user(tm_v_regs, in setup_tm_sigcontexts() 249 err |= __copy_to_user(tm_v_regs, in setup_tm_sigcontexts() 310 err |= __copy_to_user(&tm_sc->gp_regs, regs, GP_REGS_SIZE); in setup_tm_sigcontexts() 311 err |= __copy_to_user(&sc->gp_regs, in setup_tm_sigcontexts() 672 || __copy_to_user(&old_ctx->uc_sigmask, in SYSCALL_DEFINE3() 861 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in handle_rt_signal64()
|
/Linux-v5.4/arch/s390/kernel/ |
D | signal.c | 133 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs() 187 if (__copy_to_user(&sregs_ext->vxrs_low, vxrs, in save_sigregs_ext() 189 __copy_to_user(&sregs_ext->vxrs_high, in save_sigregs_ext() 315 if (__copy_to_user(&frame->sc, &sc, sizeof(frame->sc))) in setup_frame() 419 __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)) || in setup_rt_frame()
|
D | compat_signal.c | 81 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs32))) in save_sigregs32() 134 if (__copy_to_user(&sregs_ext->gprs_high, &gprs_high, in save_sigregs_ext32() 142 if (__copy_to_user(&sregs_ext->vxrs_low, vxrs, in save_sigregs_ext32() 144 __copy_to_user(&sregs_ext->vxrs_high, in save_sigregs_ext32()
|
/Linux-v5.4/arch/parisc/kernel/ |
D | signal.c | 212 err |= __copy_to_user(sc->sc_iaoq, regs->iaoq, sizeof(regs->iaoq)); in setup_sigcontext() 213 err |= __copy_to_user(sc->sc_iasq, regs->iasq, sizeof(regs->iasq)); in setup_sigcontext() 219 err |= __copy_to_user(sc->sc_gr, regs->gr, sizeof(regs->gr)); in setup_sigcontext() 220 err |= __copy_to_user(sc->sc_fr, regs->fr, sizeof(regs->fr)); in setup_sigcontext() 272 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
|
/Linux-v5.4/arch/riscv/kernel/ |
D | signal.c | 63 err = __copy_to_user(state, ¤t->thread.fstate, sizeof(*state)); in save_fp_state() 139 err = __copy_to_user(&sc->sc_regs, regs, sizeof(sc->sc_regs)); in setup_sigcontext() 187 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
|
/Linux-v5.4/arch/arm/kernel/ |
D | signal.c | 39 return __copy_to_user(frame, kframe, sizeof(*frame)); in preserve_crunch_context() 90 err = __copy_to_user(frame, kframe, sizeof(*kframe)); in preserve_iwmmxt_context() 148 return __copy_to_user(frame, &kframe, sizeof(kframe)); in preserve_vfp_context() 319 err |= __copy_to_user(&sf->uc.uc_mcontext, &context, sizeof(context)); in setup_sigframe() 321 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(*set)); in setup_sigframe()
|
/Linux-v5.4/arch/sh/kernel/ |
D | signal_64.c | 182 err |= __copy_to_user(&sc->sc_fpregs[0], ¤t->thread.xstate->hardfpu, in setup_sigcontext_fpu() 392 err |= __copy_to_user(frame->extramask, &set->sig[1], in setup_frame() 422 if (__copy_to_user(frame->retcode, in setup_frame() 485 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame() 514 if (__copy_to_user(frame->retcode, in setup_rt_frame()
|
D | signal_32.c | 110 return __copy_to_user(&sc->sc_fpregs[0], &tsk->thread.xstate->hardfpu, in save_sigcontext_fpu() 281 err |= __copy_to_user(frame->extramask, &set->sig[1], in setup_frame() 352 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
|
/Linux-v5.4/include/linux/ |
D | uaccess.h | 97 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() function 361 #define unsafe_copy_to_user(d,s,l,e) unsafe_op_wrap(__copy_to_user(d,s,l),e)
|
/Linux-v5.4/arch/mips/include/asm/ |
D | termios.h | 75 if (__copy_to_user(termio->c_cc, termios->c_cc, NCC)) in kernel_termios_to_user_termio()
|
/Linux-v5.4/arch/x86/kernel/fpu/ |
D | signal.c | 72 if (__copy_to_user(buf, &env, sizeof(env)) || in save_fsave_header() 95 err = __copy_to_user(&x->i387.sw_reserved, sw_bytes, sizeof(*sw_bytes)); in save_xstate_epilog()
|
/Linux-v5.4/arch/arc/kernel/ |
D | signal.c | 95 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch, in stash_usr_regs() 97 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t)); in stash_usr_regs()
|
/Linux-v5.4/arch/x86/kernel/ |
D | signal.c | 332 if (__copy_to_user(&frame->extramask, &set->sig[1], in __setup_frame() 421 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in __setup_rt_frame() 494 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in __setup_rt_frame() 580 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in x32_setup_rt_frame()
|
/Linux-v5.4/arch/arm64/kernel/ |
D | signal.c | 177 err = __copy_to_user(ctx->vregs, fpsimd->vregs, sizeof(fpsimd->vregs)); in preserve_fpsimd_context() 242 err |= __copy_to_user(&ctx->__reserved, reserved, sizeof(reserved)); in preserve_sve_context() 249 err |= __copy_to_user((char __user *)ctx + SVE_SIG_REGS_OFFSET, in preserve_sve_context() 624 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(*set)); in setup_sigframe()
|
/Linux-v5.4/arch/x86/um/ |
D | signal.c | 98 if (__copy_to_user(buf, env, 7 * sizeof(unsigned long))) in convert_fxsr_to_user() 381 err |= __copy_to_user(&frame->extramask, &mask->sig[1], in setup_signal_stack_sc() 524 err |= __copy_to_user(&frame->uc.uc_sigmask, set, in setup_signal_stack_si()
|
/Linux-v5.4/arch/x86/ia32/ |
D | ia32_signal.c | 282 if (__copy_to_user(frame->extramask, &set->sig[1], in ia32_setup_frame() 385 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in ia32_setup_rt_frame()
|