/linux/arch/ia64/kernel/ |
A D | signal.c | 37 # define GET_SIGSET(k,u) __copy_from_user((k)->sig, (u)->sig, sizeof(sigset_t)) 65 err |= __copy_from_user(&scr->pt.r1, &sc->sc_gr[1], 8); /* r1 */ in restore_sigcontext() 66 err |= __copy_from_user(&scr->pt.r8, &sc->sc_gr[8], 4*8); /* r8-r11 */ in restore_sigcontext() 67 err |= __copy_from_user(&scr->pt.r12, &sc->sc_gr[12], 2*8); /* r12-r13 */ in restore_sigcontext() 68 err |= __copy_from_user(&scr->pt.r15, &sc->sc_gr[15], 8); /* r15 */ in restore_sigcontext() 85 err |= __copy_from_user(&scr->pt.ar_csd, &sc->sc_ar25, 2*8); /* ar.csd & ar.ssd */ in restore_sigcontext() 86 err |= __copy_from_user(&scr->pt.r2, &sc->sc_gr[2], 2*8); /* r2-r3 */ in restore_sigcontext() 87 err |= __copy_from_user(&scr->pt.r16, &sc->sc_gr[16], 16*8); /* r16-r31 */ in restore_sigcontext() 93 err |= __copy_from_user(current->thread.fph, &sc->sc_fr[32], 96*16); in restore_sigcontext()
|
A D | ptrace.c | 1017 retval |= __copy_from_user(&pt->r1, &ppr->gr[1], sizeof(long)); in ptrace_setregs() 1018 retval |= __copy_from_user(&pt->r2, &ppr->gr[2], sizeof(long) * 2); in ptrace_setregs() 1031 retval |= __copy_from_user(&pt->r8, &ppr->gr[8], sizeof(long) * 4); in ptrace_setregs() 1035 retval |= __copy_from_user(&pt->r12, &ppr->gr[12], sizeof(long) * 2); in ptrace_setregs() 1036 retval |= __copy_from_user(&pt->r14, &ppr->gr[14], sizeof(long)); in ptrace_setregs() 1037 retval |= __copy_from_user(&pt->r15, &ppr->gr[15], sizeof(long)); in ptrace_setregs() 1062 retval |= __copy_from_user(&fpval, &ppr->fr[i], sizeof(fpval)); in ptrace_setregs() 1069 retval |= __copy_from_user(&pt->f6, &ppr->fr[6], in ptrace_setregs() 1074 retval |= __copy_from_user(&sw->f12, &ppr->fr[12], in ptrace_setregs() 1080 retval |= __copy_from_user(&fpval, &ppr->fr[i], in ptrace_setregs() [all …]
|
/linux/arch/parisc/kernel/ |
A D | signal.c | 75 err |= __copy_from_user(regs->gr, sc->sc_gr, sizeof(regs->gr)); in restore_sigcontext() 76 err |= __copy_from_user(regs->fr, sc->sc_fr, sizeof(regs->fr)); in restore_sigcontext() 77 err |= __copy_from_user(regs->iaoq, sc->sc_iaoq, sizeof(regs->iaoq)); in restore_sigcontext() 78 err |= __copy_from_user(regs->iasq, sc->sc_iasq, sizeof(regs->iasq)); in restore_sigcontext() 119 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 323 err = __copy_from_user(&fdesc, ufdesc, sizeof(fdesc)); in setup_rt_frame() 336 err = __copy_from_user(&fdesc, ufdesc, sizeof(fdesc)); in setup_rt_frame()
|
/linux/arch/openrisc/kernel/ |
A D | signal.c | 50 err |= __copy_from_user(regs, sc->regs.gpr, 32 * sizeof(unsigned long)); in restore_sigcontext() 51 err |= __copy_from_user(®s->pc, &sc->regs.pc, sizeof(unsigned long)); in restore_sigcontext() 52 err |= __copy_from_user(®s->sr, &sc->regs.sr, sizeof(unsigned long)); in restore_sigcontext() 82 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in _sys_rt_sigreturn()
|
/linux/arch/powerpc/kernel/ |
A D | signal.c | 48 if (__copy_from_user(buf, from, ELF_NFPREG * sizeof(double))) in copy_fpr_from_user() 75 if (__copy_from_user(buf, from, ELF_NVSRHALFREG * sizeof(double))) in copy_vsx_from_user() 102 if (__copy_from_user(buf, from, ELF_NFPREG * sizeof(double))) in copy_ckfpr_from_user() 129 if (__copy_from_user(buf, from, ELF_NVSRHALFREG * sizeof(double))) in copy_ckvsx_from_user()
|
A D | signal.h | 152 return __copy_from_user(task->thread.fp_state.fpr, from, in copy_fpr_from_user() 170 return __copy_from_user(task->thread.ckfp_state.fpr, from, in copy_ckfpr_from_user()
|
A D | signal_64.c | 449 err |= __copy_from_user(regs->gpr, tm_sc->gp_regs, sizeof(regs->gpr)); in restore_tm_sigcontexts() 450 err |= __copy_from_user(&tsk->thread.ckpt_regs, sc->gp_regs, in restore_tm_sigcontexts() 511 err |= __copy_from_user(&tsk->thread.ckvr_state, v_regs, in restore_tm_sigcontexts() 513 err |= __copy_from_user(&tsk->thread.vr_state, tm_v_regs, in restore_tm_sigcontexts()
|
/linux/arch/xtensa/kernel/ |
A D | signal.c | 217 err |= __copy_from_user(regs->areg, sc->sc_a, 16 * 4); in restore_sigcontext() 231 err |= __copy_from_user(&ti->xtregs_cp, &frame->xtregs.cp, in restore_sigcontext() 234 err |= __copy_from_user(&ti->xtregs_user, &frame->xtregs.user, in restore_sigcontext() 236 err |= __copy_from_user(®s->xtregs_opt, &frame->xtregs.opt, in restore_sigcontext() 265 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in xtensa_rt_sigreturn()
|
/linux/arch/csky/kernel/ |
A D | signal.c | 21 err = __copy_from_user(&user_fp, &sc->sc_user_fp, sizeof(user_fp)); in restore_fpu_state() 58 err |= __copy_from_user(regs, &sc->sc_pt_regs, sizeof(struct pt_regs)); in restore_sigcontext() 83 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0()
|
/linux/arch/s390/kernel/ |
A D | signal.c | 147 if (__copy_from_user(&user_sregs, sregs, sizeof(user_sregs))) in restore_sigregs() 207 if (__copy_from_user(vxrs, &sregs_ext->vxrs_low, in restore_sigregs_ext() 209 __copy_from_user(current->thread.fpu.vxrs + __NUM_VXRS_LOW, in restore_sigregs_ext() 226 if (__copy_from_user(&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE)) in SYSCALL_DEFINE0() 248 if (__copy_from_user(&set.sig, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0()
|
A D | compat_signal.c | 95 if (__copy_from_user(&user_sregs, &sregs->regs, sizeof(user_sregs))) in restore_sigregs32() 161 if (__copy_from_user(&gprs_high, &sregs_ext->gprs_high, in restore_sigregs_ext32() 169 if (__copy_from_user(vxrs, &sregs_ext->vxrs_low, in restore_sigregs_ext32() 171 __copy_from_user(current->thread.fpu.vxrs + __NUM_VXRS_LOW, in restore_sigregs_ext32()
|
/linux/arch/riscv/kernel/ |
A D | signal.c | 40 err = __copy_from_user(¤t->thread.fstate, state, sizeof(*state)); in restore_fp_state() 91 err = __copy_from_user(regs, &sc->sc_regs, sizeof(sc->sc_regs)); in restore_sigcontext() 113 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0()
|
/linux/arch/sparc/kernel/ |
A D | sigutil_32.c | 71 err = __copy_from_user(¤t->thread.float_regs[0], &fpu->si_float_regs[0], in restore_fpu_state() 76 err |= __copy_from_user(¤t->thread.fpqueue[0], in restore_fpu_state()
|
A D | signal_32.c | 108 err |= __copy_from_user(regs, &sf->info.si_regs, sizeof(struct pt_regs)); in do_sigreturn() 128 err |= __copy_from_user(&set.sig[1], &sf->extramask, in do_sigreturn() 168 err |= __copy_from_user(®s->u_regs[UREG_G1], in do_rt_sigreturn() 179 err |= __copy_from_user(&set, &sf->mask, sizeof(sigset_t)); in do_rt_sigreturn()
|
/linux/arch/x86/kernel/fpu/ |
A D | signal.c | 35 if (__copy_from_user(fx_sw, &fxbuf->sw_reserved[0], sizeof(*fx_sw))) in check_xstate_in_sigframe() 370 if (__copy_from_user(&env, buf, sizeof(env))) in __fpu_restore_sig() 402 if (__copy_from_user(&fpregs->fxsave, buf_fx, in __fpu_restore_sig()
|
/linux/arch/m68k/kernel/ |
A D | signal.c | 340 if (__copy_from_user(current->thread.fpcntl, in rt_restore_fpu_state() 344 if (__copy_from_user(current->thread.fp, in rt_restore_fpu_state() 383 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state() 408 __copy_from_user(fpstate + 4, (long __user *)&uc->uc_fpstate + 1, in rt_restore_fpu_state() 766 __copy_from_user(&set.sig[1], &frame->extramask, in do_sigreturn() 791 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in do_rt_sigreturn()
|
/linux/arch/arc/kernel/ |
A D | signal.c | 88 err = __copy_from_user(&v2abi, &mctx->v2abi, sizeof(v2abi)); in restore_arcv2_regs() 147 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_usr_regs() 148 err |= __copy_from_user(&uregs.scratch, in restore_usr_regs()
|
/linux/arch/arm/kernel/ |
A D | signal.c | 70 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_iwmmxt_context() 122 err = __copy_from_user(&frame, *auxp, sizeof(frame)); in restore_vfp_context() 146 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe() 150 err |= __copy_from_user(&context, &sf->uc.uc_mcontext, sizeof(context)); in restore_sigframe()
|
/linux/arch/arm64/kernel/ |
A D | signal.c | 204 err = __copy_from_user(fpsimd.vregs, ctx->vregs, in restore_fpsimd_context() 266 if (__copy_from_user(&sve, user->sve, sizeof(sve))) in restore_sve_fpsimd_context() 298 err = __copy_from_user(current->thread.sve_state, in restore_sve_fpsimd_context() 310 err = __copy_from_user(fpsimd.vregs, user->fpsimd->vregs, in restore_sve_fpsimd_context() 498 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe()
|
/linux/include/linux/ |
A D | uaccess.h | 107 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() function 390 #define unsafe_copy_from_user(d,s,l,e) unsafe_op_wrap(__copy_from_user(d,s,l),e)
|
/linux/arch/sh/kernel/ |
A D | signal_32.c | 85 return __copy_from_user(&tsk->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu() 167 && __copy_from_user(&set.sig[1], &frame->extramask, in sys_sigreturn() 195 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn()
|
/linux/arch/powerpc/lib/ |
A D | pmem.c | 74 copied = __copy_from_user(dest, src, size); in __copy_from_user_flushcache()
|
/linux/arch/mips/include/asm/ |
A D | termios.h | 50 if (__copy_from_user(termios->c_cc, termio->c_cc, NCC)) in user_termio_to_kernel_termios()
|
/linux/lib/ |
A D | test_kasan_module.c | 47 unused = __copy_from_user(kmem, usermem, size + 1); in copy_user_test()
|
/linux/arch/nios2/include/asm/ |
A D | uaccess.h | 105 if (__copy_from_user(&(val), ptr, size)) { \
|