/openbmc/linux/arch/ia64/kernel/ |
H A D | signal.c | 36 # define GET_SIGSET(k,u) __copy_from_user((k)->sig, (u)->sig, sizeof(sigset_t)) 64 err |= __copy_from_user(&scr->pt.r1, &sc->sc_gr[1], 8); /* r1 */ in restore_sigcontext() 65 err |= __copy_from_user(&scr->pt.r8, &sc->sc_gr[8], 4*8); /* r8-r11 */ in restore_sigcontext() 66 err |= __copy_from_user(&scr->pt.r12, &sc->sc_gr[12], 2*8); /* r12-r13 */ in restore_sigcontext() 67 err |= __copy_from_user(&scr->pt.r15, &sc->sc_gr[15], 8); /* r15 */ in restore_sigcontext() 84 err |= __copy_from_user(&scr->pt.ar_csd, &sc->sc_ar25, 2*8); /* ar.csd & ar.ssd */ in restore_sigcontext() 85 err |= __copy_from_user(&scr->pt.r2, &sc->sc_gr[2], 2*8); /* r2-r3 */ in restore_sigcontext() 86 err |= __copy_from_user(&scr->pt.r16, &sc->sc_gr[16], 16*8); /* r16-r31 */ in restore_sigcontext() 92 err |= __copy_from_user(current->thread.fph, &sc->sc_fr[32], 96*16); in restore_sigcontext()
|
H A D | ptrace.c | 960 retval |= __copy_from_user(&pt->r1, &ppr->gr[1], sizeof(long)); in ptrace_setregs() 961 retval |= __copy_from_user(&pt->r2, &ppr->gr[2], sizeof(long) * 2); in ptrace_setregs() 974 retval |= __copy_from_user(&pt->r8, &ppr->gr[8], sizeof(long) * 4); in ptrace_setregs() 978 retval |= __copy_from_user(&pt->r12, &ppr->gr[12], sizeof(long) * 2); in ptrace_setregs() 979 retval |= __copy_from_user(&pt->r14, &ppr->gr[14], sizeof(long)); in ptrace_setregs() 980 retval |= __copy_from_user(&pt->r15, &ppr->gr[15], sizeof(long)); in ptrace_setregs() 1005 retval |= __copy_from_user(&fpval, &ppr->fr[i], sizeof(fpval)); in ptrace_setregs() 1012 retval |= __copy_from_user(&pt->f6, &ppr->fr[6], in ptrace_setregs() 1017 retval |= __copy_from_user(&sw->f12, &ppr->fr[12], in ptrace_setregs() 1023 retval |= __copy_from_user(&fpval, &ppr->fr[i], in ptrace_setregs() [all …]
|
/openbmc/linux/arch/openrisc/kernel/ |
H A D | signal.c | 55 err |= __copy_from_user(regs, sc->regs.gpr, 32 * sizeof(unsigned long)); in restore_sigcontext() 56 err |= __copy_from_user(®s->pc, &sc->regs.pc, sizeof(unsigned long)); in restore_sigcontext() 57 err |= __copy_from_user(®s->sr, &sc->regs.sr, sizeof(unsigned long)); in restore_sigcontext() 58 err |= __copy_from_user(®s->fpcsr, &sc->fpcsr, sizeof(unsigned long)); in restore_sigcontext() 88 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in _sys_rt_sigreturn()
|
/openbmc/linux/arch/parisc/kernel/ |
H A D | signal.c | 65 err |= __copy_from_user(regs->gr, sc->sc_gr, sizeof(regs->gr)); in restore_sigcontext() 66 err |= __copy_from_user(regs->fr, sc->sc_fr, sizeof(regs->fr)); in restore_sigcontext() 67 err |= __copy_from_user(regs->iaoq, sc->sc_iaoq, sizeof(regs->iaoq)); in restore_sigcontext() 68 err |= __copy_from_user(regs->iasq, sc->sc_iasq, sizeof(regs->iasq)); in restore_sigcontext() 108 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 293 err = __copy_from_user(&fdesc, ufdesc, sizeof(fdesc)); in setup_rt_frame() 306 err = __copy_from_user(&fdesc, ufdesc, sizeof(fdesc)); in setup_rt_frame()
|
/openbmc/linux/arch/xtensa/kernel/ |
H A D | signal.c | 218 err |= __copy_from_user(regs->areg, sc->sc_a, 16 * 4); in restore_sigcontext() 232 err |= __copy_from_user(&ti->xtregs_cp, &frame->xtregs.cp, in restore_sigcontext() 235 err |= __copy_from_user(&ti->xtregs_user, &frame->xtregs.user, in restore_sigcontext() 237 err |= __copy_from_user(®s->xtregs_opt, &frame->xtregs.opt, in restore_sigcontext() 266 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in xtensa_rt_sigreturn()
|
/openbmc/linux/arch/powerpc/kernel/ |
H 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()
|
H 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()
|
H A D | signal_64.c | 457 err |= __copy_from_user(regs->gpr, tm_sc->gp_regs, sizeof(regs->gpr)); in restore_tm_sigcontexts() 458 err |= __copy_from_user(&tsk->thread.ckpt_regs, sc->gp_regs, in restore_tm_sigcontexts() 519 err |= __copy_from_user(&tsk->thread.ckvr_state, v_regs, in restore_tm_sigcontexts() 521 err |= __copy_from_user(&tsk->thread.vr_state, tm_v_regs, in restore_tm_sigcontexts()
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | compat_signal.c | 56 err = __copy_from_user(¤t->thread.fstate, state, sizeof(*state)); in compat_restore_fp_state() 109 err = __copy_from_user(&cregs, &sc->sc_regs, sizeof(sc->sc_regs)); in compat_restore_sigcontext() 134 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in COMPAT_SYSCALL_DEFINE0()
|
H A D | signal.c | 48 err = __copy_from_user(¤t->thread.fstate, state, sizeof(*state)); in restore_fp_state() 120 err = __copy_from_user(¤t->thread.vstate, &state->v_state, in __restore_v_state() 153 err = __copy_from_user(regs, &sc->sc_regs, sizeof(sc->sc_regs)); in restore_sigcontext() 243 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0()
|
/openbmc/linux/arch/csky/kernel/ |
H 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()
|
/openbmc/linux/arch/s390/kernel/ |
H A D | signal.c | 146 if (__copy_from_user(&user_sregs, sregs, sizeof(user_sregs))) in restore_sigregs() 206 if (__copy_from_user(vxrs, &sregs_ext->vxrs_low, in restore_sigregs_ext() 208 __copy_from_user(current->thread.fpu.vxrs + __NUM_VXRS_LOW, in restore_sigregs_ext() 225 if (__copy_from_user(&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE)) in SYSCALL_DEFINE0() 247 if (__copy_from_user(&set.sig, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0()
|
H 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()
|
/openbmc/linux/arch/sparc/kernel/ |
H 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()
|
H 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()
|
/openbmc/linux/arch/x86/kernel/fpu/ |
H A D | signal.c | 35 if (__copy_from_user(fx_sw, &fxbuf->sw_reserved[0], sizeof(*fx_sw))) in check_xstate_in_sigframe() 367 if (__copy_from_user(&env, buf, sizeof(env))) in __fpu_restore_sig() 399 if (__copy_from_user(&fpregs->fxsave, buf_fx, in __fpu_restore_sig()
|
/openbmc/linux/mm/kasan/ |
H A D | kasan_test_module.c | 47 unused = __copy_from_user(kmem, usermem, size + 1); in copy_user_test()
|
/openbmc/linux/arch/arc/kernel/ |
H A D | signal.c | 89 err = __copy_from_user(&v2abi, &mctx->v2abi, sizeof(v2abi)); in restore_arcv2_regs() 148 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_usr_regs() 149 err |= __copy_from_user(&uregs.scratch, in restore_usr_regs()
|
/openbmc/linux/arch/m68k/kernel/ |
H 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() 767 __copy_from_user(&set.sig[1], &frame->extramask, in do_sigreturn() 792 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in do_rt_sigreturn()
|
/openbmc/linux/arch/arm/kernel/ |
H A D | signal.c | 71 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_iwmmxt_context() 123 err = __copy_from_user(&frame, *auxp, sizeof(frame)); in restore_vfp_context() 147 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe() 151 err |= __copy_from_user(&context, &sf->uc.uc_mcontext, sizeof(context)); in restore_sigframe()
|
/openbmc/linux/arch/powerpc/lib/ |
H A D | pmem.c | 74 copied = __copy_from_user(dest, src, size); in __copy_from_user_flushcache()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | signal.c | 215 err = __copy_from_user(fpsimd.vregs, &(user->fpsimd->vregs), in restore_fpsimd_context() 336 err = __copy_from_user(current->thread.sve_state, in restore_sve_fpsimd_context() 352 err = __copy_from_user(fpsimd.vregs, user->fpsimd->vregs, in restore_sve_fpsimd_context() 485 err = __copy_from_user(current->thread.sme_state, in restore_za_context() 539 if (__copy_from_user(&nregs, &(user->zt->nregs), sizeof(nregs))) in restore_zt_context() 555 err = __copy_from_user(thread_zt_state(¤t->thread), in restore_zt_context() 776 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe()
|
/openbmc/linux/include/linux/ |
H A D | uaccess.h | 93 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() function 426 #define unsafe_copy_from_user(d,s,l,e) unsafe_op_wrap(__copy_from_user(d,s,l),e)
|
H A D | regset.h | 268 } else if (__copy_from_user(data, *ubuf, copy)) in user_regset_copyin()
|
/openbmc/linux/arch/sh/kernel/ |
H A D | signal_32.c | 85 return __copy_from_user(&tsk->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu() 170 && __copy_from_user(&set.sig[1], &frame->extramask, in sys_sigreturn() 198 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn()
|