/linux-6.1.9/arch/ia64/kernel/ |
D | signal.c | 35 # define PUT_SIGSET(k,u) __copy_to_user((u)->sig, (k)->sig, sizeof(sigset_t)) 181 err = __copy_to_user(&sc->sc_fr[32], current->thread.fph, 96*16); in setup_sigcontext() 198 err |= __copy_to_user(&sc->sc_gr[1], &scr->pt.r1, 8); /* r1 */ in setup_sigcontext() 199 err |= __copy_to_user(&sc->sc_gr[8], &scr->pt.r8, 4*8); /* r8-r11 */ in setup_sigcontext() 200 err |= __copy_to_user(&sc->sc_gr[12], &scr->pt.r12, 2*8); /* r12-r13 */ in setup_sigcontext() 201 err |= __copy_to_user(&sc->sc_gr[15], &scr->pt.r15, 8); /* r15 */ in setup_sigcontext() 209 err |= __copy_to_user(&sc->sc_ar25, &scr->pt.ar_csd, 2*8); /* ar.csd & ar.ssd */ in setup_sigcontext() 210 err |= __copy_to_user(&sc->sc_gr[2], &scr->pt.r2, 2*8); /* r2-r3 */ in setup_sigcontext() 211 err |= __copy_to_user(&sc->sc_gr[16], &scr->pt.r16, 16*8); /* r16-r31 */ in setup_sigcontext()
|
D | ptrace.c | 824 retval |= __copy_to_user(&ppr->gr[1], &pt->r1, sizeof(long)); in ptrace_getregs() 825 retval |= __copy_to_user(&ppr->gr[2], &pt->r2, sizeof(long) *2); in ptrace_getregs() 837 retval |= __copy_to_user(&ppr->gr[8], &pt->r8, sizeof(long) * 4); in ptrace_getregs() 841 retval |= __copy_to_user(&ppr->gr[12], &pt->r12, sizeof(long) * 2); in ptrace_getregs() 842 retval |= __copy_to_user(&ppr->gr[14], &pt->r14, sizeof(long)); in ptrace_getregs() 843 retval |= __copy_to_user(&ppr->gr[15], &pt->r15, sizeof(long)); in ptrace_getregs() 847 retval |= __copy_to_user(&ppr->gr[16], &pt->r16, sizeof(long) * 16); in ptrace_getregs() 871 retval |= __copy_to_user(&ppr->fr[i], &fpval, sizeof (fpval)); in ptrace_getregs() 876 retval |= __copy_to_user(&ppr->fr[6], &pt->f6, in ptrace_getregs() 881 retval |= __copy_to_user(&ppr->fr[12], &sw->f12, in ptrace_getregs() [all …]
|
/linux-6.1.9/arch/openrisc/kernel/ |
D | signal.c | 112 err |= __copy_to_user(sc->regs.gpr, regs, 32 * sizeof(unsigned long)); in setup_sigcontext() 113 err |= __copy_to_user(&sc->regs.pc, ®s->pc, sizeof(unsigned long)); in setup_sigcontext() 114 err |= __copy_to_user(&sc->regs.sr, ®s->sr, sizeof(unsigned long)); in setup_sigcontext() 171 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
|
/linux-6.1.9/arch/sparc/kernel/ |
D | signal_32.c | 254 err = __copy_to_user(&sf->info.si_regs, regs, sizeof(struct pt_regs)); in setup_frame() 276 err |= __copy_to_user(sf->extramask, &oldset->sig[1], in setup_frame() 279 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP], in setup_frame() 285 err |= __copy_to_user(sf, rp, sizeof(struct reg_window32)); in setup_frame() 351 err |= __copy_to_user(&sf->regs.u_regs, regs->u_regs, sizeof(regs->u_regs)); in setup_rt_frame() 370 err |= __copy_to_user(&sf->mask, &oldset->sig[0], sizeof(sigset_t)); in setup_rt_frame() 376 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP], in setup_rt_frame() 382 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-6.1.9/arch/xtensa/kernel/ |
D | signal.c | 158 err |= __copy_to_user (sc->sc_a, regs->areg, 16 * 4); in setup_sigcontext() 166 err |= __copy_to_user(&frame->xtregs.cp, &ti->xtregs_cp, in setup_sigcontext() 169 err |= __copy_to_user(&frame->xtregs.opt, ®s->xtregs_opt, in setup_sigcontext() 171 err |= __copy_to_user(&frame->xtregs.user, &ti->xtregs_user, in setup_sigcontext() 373 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_frame()
|
/linux-6.1.9/arch/powerpc/kernel/ |
D | signal.c | 39 return __copy_to_user(to, buf, ELF_NFPREG * sizeof(double)); in copy_fpr_to_user() 66 return __copy_to_user(to, buf, ELF_NVSRHALFREG * sizeof(double)); in copy_vsx_to_user() 93 return __copy_to_user(to, buf, ELF_NFPREG * sizeof(double)); in copy_ckfpr_to_user() 120 return __copy_to_user(to, buf, ELF_NVSRHALFREG * sizeof(double)); in copy_ckvsx_to_user()
|
D | signal_64.c | 246 err |= __copy_to_user(v_regs, &tsk->thread.ckvr_state, in setup_tm_sigcontexts() 252 err |= __copy_to_user(tm_v_regs, in setup_tm_sigcontexts() 256 err |= __copy_to_user(tm_v_regs, in setup_tm_sigcontexts() 316 err |= __copy_to_user(&tm_sc->gp_regs, regs, GP_REGS_SIZE); in setup_tm_sigcontexts() 317 err |= __copy_to_user(&sc->gp_regs, in setup_tm_sigcontexts()
|
D | signal.h | 145 return __copy_to_user(to, task->thread.fp_state.fpr, in copy_fpr_to_user() 163 return __copy_to_user(to, task->thread.ckfp_state.fpr, in copy_ckfpr_to_user()
|
/linux-6.1.9/arch/csky/kernel/ |
D | signal.c | 34 return __copy_to_user(&sc->sc_user_fp, &user_fp, sizeof(user_fp)); in save_fpu_state() 107 err |= __copy_to_user(&sc->sc_pt_regs, regs, sizeof(struct pt_regs)); in setup_sigcontext() 153 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
|
/linux-6.1.9/arch/riscv/kernel/ |
D | compat_signal.c | 84 err = __copy_to_user(state, ¤t->thread.fstate, sizeof(*state)); in compat_save_fp_state() 169 err = __copy_to_user(&sc->sc_regs, &cregs, sizeof(sc->sc_regs)); in compat_setup_sigcontext() 216 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in compat_setup_rt_frame()
|
D | signal.c | 71 err = __copy_to_user(state, ¤t->thread.fstate, sizeof(*state)); in save_fp_state() 149 err = __copy_to_user(&sc->sc_regs, regs, sizeof(sc->sc_regs)); in setup_sigcontext() 196 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
|
/linux-6.1.9/arch/s390/kernel/ |
D | signal.c | 134 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs() 188 if (__copy_to_user(&sregs_ext->vxrs_low, vxrs, in save_sigregs_ext() 190 __copy_to_user(&sregs_ext->vxrs_high, in save_sigregs_ext() 316 if (__copy_to_user(&frame->sc, &sc, sizeof(frame->sc))) in setup_frame() 411 __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)) || in setup_rt_frame()
|
D | compat_signal.c | 82 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs32))) in save_sigregs32() 135 if (__copy_to_user(&sregs_ext->gprs_high, &gprs_high, in save_sigregs_ext32() 143 if (__copy_to_user(&sregs_ext->vxrs_low, vxrs, in save_sigregs_ext32() 145 __copy_to_user(&sregs_ext->vxrs_high, in save_sigregs_ext32()
|
/linux-6.1.9/arch/parisc/kernel/ |
D | signal.c | 197 err |= __copy_to_user(sc->sc_iaoq, regs->iaoq, sizeof(regs->iaoq)); in setup_sigcontext() 198 err |= __copy_to_user(sc->sc_iasq, regs->iasq, sizeof(regs->iasq)); in setup_sigcontext() 204 err |= __copy_to_user(sc->sc_gr, regs->gr, sizeof(regs->gr)); in setup_sigcontext() 205 err |= __copy_to_user(sc->sc_fr, regs->fr, sizeof(regs->fr)); in setup_sigcontext() 268 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
|
/linux-6.1.9/arch/arc/kernel/ |
D | signal.c | 77 err = __copy_to_user(&mctx->v2abi, &v2abi, sizeof(v2abi)); in save_arcv2_regs() 130 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch, in stash_usr_regs() 136 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t)); in stash_usr_regs()
|
/linux-6.1.9/arch/arm/kernel/ |
D | signal.c | 56 err = __copy_to_user(frame, kframe, sizeof(*kframe)); in preserve_iwmmxt_context() 114 return __copy_to_user(frame, &kframe, sizeof(kframe)); in preserve_vfp_context() 281 err |= __copy_to_user(&sf->uc.uc_mcontext, &context, sizeof(context)); in setup_sigframe() 283 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(*set)); in setup_sigframe()
|
/linux-6.1.9/include/linux/ |
D | uaccess.h | 109 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() function 399 #define unsafe_copy_to_user(d,s,l,e) unsafe_op_wrap(__copy_to_user(d,s,l),e)
|
/linux-6.1.9/arch/arm64/kernel/ |
D | signal.c | 178 err = __copy_to_user(ctx->vregs, fpsimd->vregs, sizeof(fpsimd->vregs)); in preserve_fpsimd_context() 251 err |= __copy_to_user(&ctx->__reserved, reserved, sizeof(reserved)); in preserve_sve_context() 259 err |= __copy_to_user((char __user *)ctx + SVE_SIG_REGS_OFFSET, in preserve_sve_context() 385 err |= __copy_to_user(&ctx->__reserved, reserved, sizeof(reserved)); in preserve_za_context() 393 err |= __copy_to_user((char __user *)ctx + ZA_SIG_REGS_OFFSET, in preserve_za_context() 796 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(*set)); in setup_sigframe()
|
/linux-6.1.9/arch/sh/kernel/ |
D | signal_32.c | 109 return __copy_to_user(&sc->sc_fpregs[0], &tsk->thread.xstate->hardfpu, in save_sigcontext_fpu() 280 err |= __copy_to_user(frame->extramask, &set->sig[1], in setup_frame() 351 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
|
/linux-6.1.9/mm/kasan/ |
D | kasan_test_module.c | 50 unused = __copy_to_user(usermem, kmem, size + 1); in copy_user_test()
|
/linux-6.1.9/arch/x86/kernel/fpu/ |
D | signal.c | 83 if (__copy_to_user(buf, &env, sizeof(env)) || in save_fsave_header() 127 err = __copy_to_user(&x->i387.sw_reserved, &sw_bytes, sizeof(sw_bytes)); in save_xstate_epilog()
|
/linux-6.1.9/arch/x86/um/ |
D | signal.c | 99 if (__copy_to_user(buf, env, 7 * sizeof(unsigned long))) in convert_fxsr_to_user() 382 err |= __copy_to_user(&frame->extramask, &mask->sig[1], in setup_signal_stack_sc() 525 err |= __copy_to_user(&frame->uc.uc_sigmask, set, in setup_signal_stack_si()
|
/linux-6.1.9/arch/nios2/include/asm/ |
D | uaccess.h | 165 if (__copy_to_user(__pu_ptr, &(__pu_val), \
|
/linux-6.1.9/arch/xtensa/include/asm/ |
D | uaccess.h | 79 retval = __copy_to_user(ptr, &__v64, 8) ? -EFAULT : 0; \
|