/Linux-v5.4/arch/ia64/kernel/ |
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()
|
D | ptrace.c | 1021 retval |= __copy_from_user(&pt->r1, &ppr->gr[1], sizeof(long)); in ptrace_setregs() 1022 retval |= __copy_from_user(&pt->r2, &ppr->gr[2], sizeof(long) * 2); in ptrace_setregs() 1035 retval |= __copy_from_user(&pt->r8, &ppr->gr[8], sizeof(long) * 4); in ptrace_setregs() 1039 retval |= __copy_from_user(&pt->r12, &ppr->gr[12], sizeof(long) * 2); in ptrace_setregs() 1040 retval |= __copy_from_user(&pt->r14, &ppr->gr[14], sizeof(long)); in ptrace_setregs() 1041 retval |= __copy_from_user(&pt->r15, &ppr->gr[15], sizeof(long)); in ptrace_setregs() 1045 retval |= __copy_from_user(&pt->r16, &ppr->gr[16], sizeof(long) * 16); in ptrace_setregs() 1066 retval |= __copy_from_user(&fpval, &ppr->fr[i], sizeof(fpval)); in ptrace_setregs() 1073 retval |= __copy_from_user(&pt->f6, &ppr->fr[6], in ptrace_setregs() 1078 retval |= __copy_from_user(&sw->f12, &ppr->fr[12], in ptrace_setregs() [all …]
|
/Linux-v5.4/arch/openrisc/kernel/ |
D | signal.c | 52 err |= __copy_from_user(regs, sc->regs.gpr, 32 * sizeof(unsigned long)); in restore_sigcontext() 53 err |= __copy_from_user(®s->pc, &sc->regs.pc, sizeof(unsigned long)); in restore_sigcontext() 54 err |= __copy_from_user(®s->sr, &sc->regs.sr, sizeof(unsigned long)); in restore_sigcontext() 84 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in _sys_rt_sigreturn()
|
/Linux-v5.4/arch/parisc/kernel/ |
D | signal.c | 76 err |= __copy_from_user(regs->gr, sc->sc_gr, sizeof(regs->gr)); in restore_sigcontext() 77 err |= __copy_from_user(regs->fr, sc->sc_fr, sizeof(regs->fr)); in restore_sigcontext() 78 err |= __copy_from_user(regs->iaoq, sc->sc_iaoq, sizeof(regs->iaoq)); in restore_sigcontext() 79 err |= __copy_from_user(regs->iasq, sc->sc_iasq, sizeof(regs->iasq)); in restore_sigcontext() 120 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 324 err = __copy_from_user(&fdesc, ufdesc, sizeof(fdesc)); in setup_rt_frame() 337 err = __copy_from_user(&fdesc, ufdesc, sizeof(fdesc)); in setup_rt_frame()
|
/Linux-v5.4/arch/x86/kernel/fpu/ |
D | signal.c | 32 if (__copy_from_user(fx_sw, &buf->sw_reserved[0], sizeof(*fx_sw))) in check_for_xstate() 334 ret = __copy_from_user(&env, buf, sizeof(env)); in __fpu__restore_sig() 365 ret = __copy_from_user(&fpu->state.xsave, buf_fx, state_size); in __fpu__restore_sig() 381 ret = __copy_from_user(&fpu->state.fxsave, buf_fx, state_size); in __fpu__restore_sig() 397 ret = __copy_from_user(&fpu->state.fsave, buf_fx, state_size); in __fpu__restore_sig()
|
/Linux-v5.4/arch/csky/kernel/ |
D | signal.c | 21 err = __copy_from_user(&user_fp, &sc->sc_user_fp, sizeof(user_fp)); in restore_fpu_state() 57 err |= __copy_from_user(regs, &sc->sc_pt_regs, sizeof(struct pt_regs)); in restore_sigcontext() 79 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0()
|
/Linux-v5.4/arch/xtensa/kernel/ |
D | signal.c | 209 err |= __copy_from_user(regs->areg, sc->sc_a, 16 * 4); in restore_sigcontext() 223 err |= __copy_from_user(&ti->xtregs_cp, &frame->xtregs.cp, in restore_sigcontext() 226 err |= __copy_from_user(&ti->xtregs_user, &frame->xtregs.user, in restore_sigcontext() 228 err |= __copy_from_user(®s->xtregs_opt, &frame->xtregs.opt, in restore_sigcontext() 257 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in xtensa_rt_sigreturn()
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | signal_32.c | 170 if (__copy_from_user(regs, &sr->mc_gregs, in restore_general_regs() 174 if (__copy_from_user(®s->orig_gpr3, &sr->mc_gregs[PT_ORIG_R3], in restore_general_regs() 258 if (__copy_from_user(buf, from, ELF_NFPREG * sizeof(double))) in copy_fpr_from_user() 285 if (__copy_from_user(buf, from, ELF_NVSRHALFREG * sizeof(double))) in copy_vsx_from_user() 312 if (__copy_from_user(buf, from, ELF_NFPREG * sizeof(double))) in copy_ckfpr_from_user() 339 if (__copy_from_user(buf, from, ELF_NVSRHALFREG * sizeof(double))) in copy_ckvsx_from_user() 357 return __copy_from_user(task->thread.fp_state.fpr, from, in copy_fpr_from_user() 372 return __copy_from_user(task->thread.ckfp_state.fpr, from, in copy_ckfpr_from_user() 670 if (__copy_from_user(¤t->thread.vr_state, &sr->mc_vregs, in restore_user_regs() 717 if (__copy_from_user(current->thread.evr, &sr->mc_vregs, in restore_user_regs() [all …]
|
D | signal_64.c | 349 err |= __copy_from_user(regs->gpr, sc->gp_regs, sizeof(regs->gpr)); in restore_sigcontext() 386 err |= __copy_from_user(&tsk->thread.vr_state, v_regs, in restore_sigcontext() 445 err |= __copy_from_user(regs->gpr, tm_sc->gp_regs, sizeof(regs->gpr)); in restore_tm_sigcontexts() 446 err |= __copy_from_user(&tsk->thread.ckpt_regs, sc->gp_regs, in restore_tm_sigcontexts() 507 err |= __copy_from_user(&tsk->thread.ckvr_state, v_regs, in restore_tm_sigcontexts() 509 err |= __copy_from_user(&tsk->thread.vr_state, tm_v_regs, in restore_tm_sigcontexts() 695 if (__copy_from_user(&set, &new_ctx->uc_sigmask, sizeof(set))) in SYSCALL_DEFINE3() 726 if (__copy_from_user(&set, &uc->uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0()
|
/Linux-v5.4/arch/s390/kernel/ |
D | signal.c | 145 if (__copy_from_user(&user_sregs, sregs, sizeof(user_sregs))) in restore_sigregs() 205 if (__copy_from_user(vxrs, &sregs_ext->vxrs_low, in restore_sigregs_ext() 207 __copy_from_user(current->thread.fpu.vxrs + __NUM_VXRS_LOW, in restore_sigregs_ext() 224 if (__copy_from_user(&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE)) in SYSCALL_DEFINE0() 246 if (__copy_from_user(&set.sig, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0()
|
D | compat_signal.c | 94 if (__copy_from_user(&user_sregs, &sregs->regs, sizeof(user_sregs))) in restore_sigregs32() 160 if (__copy_from_user(&gprs_high, &sregs_ext->gprs_high, in restore_sigregs_ext32() 168 if (__copy_from_user(vxrs, &sregs_ext->vxrs_low, in restore_sigregs_ext32() 170 __copy_from_user(current->thread.fpu.vxrs + __NUM_VXRS_LOW, in restore_sigregs_ext32()
|
/Linux-v5.4/arch/riscv/kernel/ |
D | signal.c | 35 err = __copy_from_user(¤t->thread.fstate, state, sizeof(*state)); in restore_fp_state() 86 err = __copy_from_user(regs, &sc->sc_regs, sizeof(sc->sc_regs)); in restore_sigcontext() 108 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0()
|
/Linux-v5.4/arch/sparc/kernel/ |
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()
|
D | signal_32.c | 110 err |= __copy_from_user(regs, &sf->info.si_regs, sizeof(struct pt_regs)); in do_sigreturn() 130 err |= __copy_from_user(&set.sig[1], &sf->extramask, in do_sigreturn() 170 err |= __copy_from_user(®s->u_regs[UREG_G1], in do_rt_sigreturn() 181 err |= __copy_from_user(&set, &sf->mask, sizeof(sigset_t)); in do_rt_sigreturn()
|
/Linux-v5.4/arch/arm/kernel/ |
D | signal.c | 51 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_crunch_context() 104 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_iwmmxt_context() 156 err = __copy_from_user(&frame, *auxp, sizeof(frame)); in restore_vfp_context() 180 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe() 184 err |= __copy_from_user(&context, &sf->uc.uc_mcontext, sizeof(context)); in restore_sigframe()
|
/Linux-v5.4/arch/c6x/lib/ |
D | checksum.c | 18 missing = __copy_from_user(dst, src, len); in csum_partial_copy_from_user()
|
/Linux-v5.4/arch/powerpc/lib/ |
D | pmem.c | 37 copied = __copy_from_user(dest, src, size); in __copy_from_user_flushcache()
|
D | checksum_wrappers.c | 39 int missing = __copy_from_user(dst, src, len); in csum_and_copy_from_user()
|
/Linux-v5.4/arch/m68k/kernel/ |
D | signal.c | 341 if (__copy_from_user(current->thread.fpcntl, in rt_restore_fpu_state() 345 if (__copy_from_user(current->thread.fp, in rt_restore_fpu_state() 384 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state() 409 __copy_from_user(fpstate + 4, (long __user *)&uc->uc_fpstate + 1, in rt_restore_fpu_state() 795 __copy_from_user(&set.sig[1], &frame->extramask, in do_sigreturn() 818 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in do_rt_sigreturn()
|
/Linux-v5.4/arch/arm64/kernel/ |
D | signal.c | 203 err = __copy_from_user(fpsimd.vregs, ctx->vregs, in restore_fpsimd_context() 264 if (__copy_from_user(&sve, user->sve, sizeof(sve))) in restore_sve_fpsimd_context() 291 err = __copy_from_user(current->thread.sve_state, in restore_sve_fpsimd_context() 303 err = __copy_from_user(fpsimd.vregs, user->fpsimd->vregs, in restore_sve_fpsimd_context() 489 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe()
|
/Linux-v5.4/arch/ia64/lib/ |
D | csum_partial_copy.c | 120 if (__copy_from_user(dst, src, len) != 0 && errp) in csum_partial_copy_from_user()
|
/Linux-v5.4/arch/sh/kernel/ |
D | signal_32.c | 86 return __copy_from_user(&tsk->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu() 168 && __copy_from_user(&set.sig[1], &frame->extramask, in sys_sigreturn() 196 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn()
|
D | signal_64.c | 157 err |= __copy_from_user(¤t->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu() 267 && __copy_from_user(&set.sig[1], &frame->extramask, in sys_sigreturn() 299 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn()
|
/Linux-v5.4/arch/mips/include/asm/ |
D | termios.h | 50 if (__copy_from_user(termios->c_cc, termio->c_cc, NCC)) in user_termio_to_kernel_termios()
|
/Linux-v5.4/arch/arc/kernel/ |
D | signal.c | 108 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_usr_regs() 109 err |= __copy_from_user(&uregs.scratch, in restore_usr_regs()
|