/linux-6.3-rc2/arch/alpha/kernel/ |
A D | signal.c | 279 err |= __put_user(mask, &sc->sc_mask); in setup_sigcontext() 280 err |= __put_user(regs->pc, &sc->sc_pc); in setup_sigcontext() 281 err |= __put_user(8, &sc->sc_ps); in setup_sigcontext() 283 err |= __put_user(regs->r0 , sc->sc_regs+0); in setup_sigcontext() 284 err |= __put_user(regs->r1 , sc->sc_regs+1); in setup_sigcontext() 285 err |= __put_user(regs->r2 , sc->sc_regs+2); in setup_sigcontext() 313 err |= __put_user(sp, sc->sc_regs+30); in setup_sigcontext() 314 err |= __put_user(0, sc->sc_regs+31); in setup_sigcontext() 318 err |= __put_user(0, sc->sc_fpregs+31); in setup_sigcontext() 387 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() [all …]
|
/linux-6.3-rc2/arch/nios2/kernel/ |
A D | signal.c | 135 err |= __put_user(regs->r1, &gregs[0]); in rt_setup_ucontext() 136 err |= __put_user(regs->r2, &gregs[1]); in rt_setup_ucontext() 137 err |= __put_user(regs->r3, &gregs[2]); in rt_setup_ucontext() 138 err |= __put_user(regs->r4, &gregs[3]); in rt_setup_ucontext() 139 err |= __put_user(regs->r5, &gregs[4]); in rt_setup_ucontext() 140 err |= __put_user(regs->r6, &gregs[5]); in rt_setup_ucontext() 141 err |= __put_user(regs->r7, &gregs[6]); in rt_setup_ucontext() 142 err |= __put_user(regs->r8, &gregs[7]); in rt_setup_ucontext() 143 err |= __put_user(regs->r9, &gregs[8]); in rt_setup_ucontext() 159 err |= __put_user(sw->fp, &gregs[24]); in rt_setup_ucontext() [all …]
|
A D | misaligned.c | 111 fault |= __put_user(d0, (u8 *)(addr+0)); in handle_unaligned_c() 112 fault |= __put_user(d1, (u8 *)(addr+1)); in handle_unaligned_c() 133 fault |= __put_user(d0, (u8 *)(addr+0)); in handle_unaligned_c() 134 fault |= __put_user(d1, (u8 *)(addr+1)); in handle_unaligned_c() 135 fault |= __put_user(d2, (u8 *)(addr+2)); in handle_unaligned_c() 136 fault |= __put_user(d3, (u8 *)(addr+3)); in handle_unaligned_c()
|
/linux-6.3-rc2/arch/parisc/kernel/ |
A D | signal32.c | 135 err |= __put_user(compat_reg, &sc->sc_iaoq[0]); in setup_sigcontext32() 141 err |= __put_user(compat_reg, &rf->rf_iaoq[0]); in setup_sigcontext32() 146 err |= __put_user(compat_reg, &sc->sc_iaoq[1]); in setup_sigcontext32() 151 err |= __put_user(compat_reg, &rf->rf_iaoq[1]); in setup_sigcontext32() 156 err |= __put_user(compat_reg, &sc->sc_iasq[0]); in setup_sigcontext32() 161 err |= __put_user(compat_reg, &rf->rf_iasq[0]); in setup_sigcontext32() 172 err |= __put_user(compat_reg, &sc->sc_iaoq[0]); in setup_sigcontext32() 181 err |= __put_user(compat_reg, &sc->sc_iaoq[1]); in setup_sigcontext32() 214 err |= __put_user(flags, &sc->sc_flags); in setup_sigcontext32() 239 err |= __put_user(compat_reg, &sc->sc_sar); in setup_sigcontext32() [all …]
|
/linux-6.3-rc2/arch/hexagon/kernel/ |
A D | signal.c | 43 err |= __put_user(regs->sa0, &sc->sc_regs.sa0); in setup_sigcontext() 44 err |= __put_user(regs->lc0, &sc->sc_regs.lc0); in setup_sigcontext() 45 err |= __put_user(regs->sa1, &sc->sc_regs.sa1); in setup_sigcontext() 46 err |= __put_user(regs->lc1, &sc->sc_regs.lc1); in setup_sigcontext() 47 err |= __put_user(regs->m0, &sc->sc_regs.m0); in setup_sigcontext() 48 err |= __put_user(regs->m1, &sc->sc_regs.m1); in setup_sigcontext() 49 err |= __put_user(regs->usr, &sc->sc_regs.usr); in setup_sigcontext() 51 err |= __put_user(regs->gp, &sc->sc_regs.gp); in setup_sigcontext() 52 err |= __put_user(regs->ugp, &sc->sc_regs.ugp); in setup_sigcontext() 54 err |= __put_user(regs->cs0, &sc->sc_regs.cs0); in setup_sigcontext() [all …]
|
/linux-6.3-rc2/arch/sparc/kernel/ |
A D | signal_64.c | 104 err |= __put_user(fp, in sparc64_set_context() 106 err |= __put_user(i7, in sparc64_set_context() 174 err |= __put_user(current->blocked.sig[0], in sparc64_get_context() 181 err |= __put_user(regs->tpc, &((*grp)[MC_PC])); in sparc64_get_context() 182 err |= __put_user(regs->tnpc, &((*grp)[MC_NPC])); in sparc64_get_context() 183 err |= __put_user(regs->y, &((*grp)[MC_Y])); in sparc64_get_context() 204 err |= __put_user(fp, &(mcp->mc_fp)); in sparc64_get_context() 205 err |= __put_user(i7, &(mcp->mc_i7)); in sparc64_get_context() 389 err |= __put_user((u64)fpu_save, &sf->fpu_save); in setup_rt_frame() 391 err |= __put_user(0, &sf->fpu_save); in setup_rt_frame() [all …]
|
A D | signal32.c | 412 err |= __put_user((u64)fp, &sf->fpu_save); in setup_frame32() 414 err |= __put_user(0, &sf->fpu_save); in setup_frame32() 420 err |= __put_user((u64)rwp, &sf->rwin_save); in setup_frame32() 423 err |= __put_user(0, &sf->rwin_save); in setup_frame32() 448 err |= __put_user(rp->ins[6], &sf->ss.fp); in setup_frame32() 527 err |= __put_user(regs->y, &sf->regs.y); in setup_rt_frame32() 531 err |= __put_user(psr, &sf->regs.psr); in setup_rt_frame32() 546 err |= __put_user((u64)fp, &sf->fpu_save); in setup_rt_frame32() 548 err |= __put_user(0, &sf->fpu_save); in setup_rt_frame32() 557 err |= __put_user(0, &sf->rwin_save); in setup_rt_frame32() [all …]
|
A D | signal_32.c | 256 err |= __put_user(0, &sf->extra_size); in setup_frame() 262 err |= __put_user(fp, &sf->fpu_save); in setup_frame() 264 err |= __put_user(0, &sf->fpu_save); in setup_frame() 270 err |= __put_user(rwp, &sf->rwin_save); in setup_frame() 272 err |= __put_user(0, &sf->rwin_save); in setup_frame() 346 err |= __put_user(regs->y, &sf->regs.y); in setup_rt_frame() 350 err |= __put_user(psr, &sf->regs.psr); in setup_rt_frame() 352 err |= __put_user(0, &sf->extra_size); in setup_rt_frame() 358 err |= __put_user(fp, &sf->fpu_save); in setup_rt_frame() 360 err |= __put_user(0, &sf->fpu_save); in setup_rt_frame() [all …]
|
A D | sigutil_64.c | 28 err |= __put_user(current_thread_info()->xfsr[0], &fpu->si_fsr); in save_fpu_state() 29 err |= __put_user(current_thread_info()->gsr[0], &fpu->si_gsr); in save_fpu_state() 30 err |= __put_user(fprs, &fpu->si_fprs); in save_fpu_state() 61 int i, err = __put_user(wsaved, &rwin->wsaved); in save_rwin_state() 69 err |= __put_user(fp, &rwin->rwbuf_stkptrs[i]); in save_rwin_state()
|
A D | sigutil_32.c | 38 err |= __put_user(current->thread.fsr, &fpu->si_fsr); in save_fpu_state() 39 err |= __put_user(current->thread.fpqdepth, &fpu->si_fpqdepth); in save_fpu_state() 85 int i, err = __put_user(wsaved, &rwin->wsaved); in save_rwin_state() 95 err |= __put_user(fp, &rwin->rwbuf_stkptrs[i]); in save_rwin_state()
|
/linux-6.3-rc2/arch/ia64/kernel/ |
A D | signal.c | 38 # define PUT_SIGSET(k,u) __put_user((k)->sig[0], &(u)->sig[0]) 186 err |= __put_user(flags, &sc->sc_flags); in setup_sigcontext() 187 err |= __put_user(nat, &sc->sc_nat); in setup_sigcontext() 189 err |= __put_user(cfm, &sc->sc_cfm); in setup_sigcontext() 191 err |= __put_user(scr->pt.ar_rsc, &sc->sc_ar_rsc); in setup_sigcontext() 194 err |= __put_user(scr->pt.ar_pfs, &sc->sc_ar_pfs); in setup_sigcontext() 197 err |= __put_user(scr->pt.b6, &sc->sc_br[6]); /* b6 */ in setup_sigcontext() 271 err = __put_user(ksig->sig, &frame->arg0); in setup_frame() 272 err |= __put_user(&frame->info, &frame->arg1); in setup_frame() 273 err |= __put_user(&frame->sc, &frame->arg2); in setup_frame() [all …]
|
/linux-6.3-rc2/arch/mips/kernel/ |
A D | signal.c | 198 err |= __put_user(val, &msa->wr[i]); in save_msa_extcontext() 361 err = __put_user(0, &fpregs[0]) | in protected_save_fp_context() 362 __put_user(0, &fpregs[31]) | in protected_save_fp_context() 363 __put_user(0, csr); in protected_save_fp_context() 374 return __put_user(used, used_math); in protected_save_fp_context() 445 err |= __put_user(0, &sc->sc_regs[0]); in setup_sigcontext() 455 err |= __put_user(mfhi1(), &sc->sc_hi1); in setup_sigcontext() 456 err |= __put_user(mflo1(), &sc->sc_lo1); in setup_sigcontext() 457 err |= __put_user(mfhi2(), &sc->sc_hi2); in setup_sigcontext() 458 err |= __put_user(mflo2(), &sc->sc_lo2); in setup_sigcontext() [all …]
|
A D | signal_o32.c | 58 err |= __put_user(regs->cp0_epc, &sc->sc_pc); in setup_sigcontext32() 60 err |= __put_user(0, &sc->sc_regs[0]); in setup_sigcontext32() 64 err |= __put_user(regs->hi, &sc->sc_mdhi); in setup_sigcontext32() 65 err |= __put_user(regs->lo, &sc->sc_mdlo); in setup_sigcontext32() 68 err |= __put_user(mfhi1(), &sc->sc_hi1); in setup_sigcontext32() 69 err |= __put_user(mflo1(), &sc->sc_lo1); in setup_sigcontext32() 70 err |= __put_user(mfhi2(), &sc->sc_hi2); in setup_sigcontext32() 71 err |= __put_user(mflo2(), &sc->sc_lo2); in setup_sigcontext32() 72 err |= __put_user(mfhi3(), &sc->sc_hi3); in setup_sigcontext32() 73 err |= __put_user(mflo3(), &sc->sc_lo3); in setup_sigcontext32() [all …]
|
A D | signal32.c | 66 err |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags); 67 err |= __put_user((u32)(u64)old_ka.sa.sa_handler, 69 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); 70 err |= __put_user(0, &oact->sa_mask.sig[1]); 71 err |= __put_user(0, &oact->sa_mask.sig[2]); 72 err |= __put_user(0, &oact->sa_mask.sig[3]);
|
A D | ptrace.c | 79 __put_user((long)regs->lo, (__s64 __user *)&data->lo); in ptrace_getregs() 137 __put_user(style, &addr->style); in ptrace_get_watch_regs() 138 __put_user(boot_cpu_data.watch_reg_use_cnt, in ptrace_get_watch_regs() 141 __put_user(child->thread.watch.mips3264.watchlo[i], in ptrace_get_watch_regs() 146 __put_user(boot_cpu_data.watch_reg_masks[i], in ptrace_get_watch_regs() 150 __put_user(0, &addr->WATCH_STYLE.watchlo[i]); in ptrace_get_watch_regs() 151 __put_user(0, &addr->WATCH_STYLE.watchhi[i]); in ptrace_get_watch_regs() 152 __put_user(0, &addr->WATCH_STYLE.watch_masks[i]); in ptrace_get_watch_regs() 362 __put_user(get_fpr64(&fregs[i], 0), in ptrace_getfpregs() 369 __put_user(child->thread.fpu.fcr31, data + 64); in ptrace_getfpregs() [all …]
|
/linux-6.3-rc2/arch/m68k/kernel/ |
A D | signal.c | 837 err |= __put_user(regs->d0, &gregs[0]); in rt_setup_ucontext() 838 err |= __put_user(regs->d1, &gregs[1]); in rt_setup_ucontext() 839 err |= __put_user(regs->d2, &gregs[2]); in rt_setup_ucontext() 843 err |= __put_user(sw->d6, &gregs[6]); in rt_setup_ucontext() 844 err |= __put_user(sw->d7, &gregs[7]); in rt_setup_ucontext() 848 err |= __put_user(sw->a3, &gregs[11]); in rt_setup_ucontext() 849 err |= __put_user(sw->a4, &gregs[12]); in rt_setup_ucontext() 850 err |= __put_user(sw->a5, &gregs[13]); in rt_setup_ucontext() 851 err |= __put_user(sw->a6, &gregs[14]); in rt_setup_ucontext() 888 err |= __put_user(sig, &frame->sig); in setup_frame() [all …]
|
/linux-6.3-rc2/arch/sh/kernel/ |
A D | signal_32.c | 98 return __put_user(0, &sc->sc_ownedfp); in save_sigcontext_fpu() 100 if (__put_user(1, &sc->sc_ownedfp)) in save_sigcontext_fpu() 245 err |= __put_user(mask, &sc->oldmask); in setup_sigcontext() 296 err |= __put_user(MOVW(7), &frame->retcode[0]); in setup_frame() 298 err |= __put_user(OR_R0_R0, &frame->retcode[2]); in setup_frame() 299 err |= __put_user(OR_R0_R0, &frame->retcode[3]); in setup_frame() 300 err |= __put_user(OR_R0_R0, &frame->retcode[4]); in setup_frame() 301 err |= __put_user(OR_R0_R0, &frame->retcode[5]); in setup_frame() 349 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() 350 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame() [all …]
|
/linux-6.3-rc2/arch/xtensa/kernel/ |
A D | signal.c | 159 err |= __put_user(0, &sc->sc_xtregs); in setup_sigcontext() 308 err |= __put_user(0x22, &codemem[0]); in gen_return_code() 309 err |= __put_user(0x0a, &codemem[1]); in gen_return_code() 312 err |= __put_user(0x00, &codemem[3]); in gen_return_code() 313 err |= __put_user(0x05, &codemem[4]); in gen_return_code() 314 err |= __put_user(0x00, &codemem[5]); in gen_return_code() 318 err |= __put_user(0x22, &codemem[0]); in gen_return_code() 319 err |= __put_user(0xa0, &codemem[1]); in gen_return_code() 322 err |= __put_user(0x00, &codemem[3]); in gen_return_code() 323 err |= __put_user(0x50, &codemem[4]); in gen_return_code() [all …]
|
/linux-6.3-rc2/arch/x86/um/ |
A D | signal.c | 108 if (__put_user(*f, t) || in convert_fxsr_to_user() 109 __put_user(*(f + 1), t + 1) || in convert_fxsr_to_user() 110 __put_user(from->exponent, &to->exponent)) in convert_fxsr_to_user() 378 err |= __put_user(restorer, &frame->pretcode); in setup_signal_stack_sc() 379 err |= __put_user(sig, &frame->sig); in setup_signal_stack_sc() 423 err |= __put_user(restorer, &frame->pretcode); in setup_signal_stack_si() 424 err |= __put_user(sig, &frame->sig); in setup_signal_stack_si() 425 err |= __put_user(&frame->info, &frame->pinfo); in setup_signal_stack_si() 426 err |= __put_user(&frame->uc, &frame->puc); in setup_signal_stack_si() 511 err |= __put_user(0, &frame->uc.uc_flags); in setup_signal_stack_si() [all …]
|
/linux-6.3-rc2/arch/loongarch/kernel/ |
A D | signal.c | 93 err |= __put_user(current->thread.fpu.fcc, fcc); in copy_fpu_to_sigcontext() 152 err |= __put_user(csr, fcsr); in fcsr_pending() 178 err |= __put_user(FPU_CTX_MAGIC, &info->magic); in protected_save_fpu_context() 184 err = __put_user(0, ®s[0]) | in protected_save_fpu_context() 185 __put_user(0, ®s[31]) | in protected_save_fpu_context() 186 __put_user(0, fcc) | in protected_save_fpu_context() 187 __put_user(0, fcsr); in protected_save_fpu_context() 236 err |= __put_user(regs->csr_era, &sc->sc_pc); in setup_sigcontext() 239 err |= __put_user(0, &sc->sc_regs[0]); in setup_sigcontext() 248 err |= __put_user(0, &info->magic); in setup_sigcontext() [all …]
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | signal_64.c | 240 err |= __put_user(v_regs, &sc->v_regs); in setup_tm_sigcontexts() 241 err |= __put_user(tm_v_regs, &tm_sc->v_regs); in setup_tm_sigcontexts() 272 err |= __put_user(tsk->thread.vrsave, in setup_tm_sigcontexts() 275 err |= __put_user(tsk->thread.ckvrsave, in setup_tm_sigcontexts() 279 err |= __put_user(0, &sc->v_regs); in setup_tm_sigcontexts() 280 err |= __put_user(0, &tm_sc->v_regs); in setup_tm_sigcontexts() 314 err |= __put_user(&sc->gp_regs, &sc->regs); in setup_tm_sigcontexts() 321 err |= __put_user(signr, &sc->signal); in setup_tm_sigcontexts() 322 err |= __put_user(handler, &sc->handler); in setup_tm_sigcontexts() 634 err |= __put_user(PPC_RAW_SC(), &tramp[3]); in setup_trampoline() [all …]
|
/linux-6.3-rc2/arch/openrisc/kernel/ |
A D | signal.c | 166 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() 167 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame() 182 err |= __put_user(0xa960, (short __user *)(frame->retcode + 0)); in setup_rt_frame() 183 err |= __put_user(__NR_rt_sigreturn, (short __user *)(frame->retcode + 2)); in setup_rt_frame() 184 err |= __put_user(0x20000001, (unsigned long __user *)(frame->retcode + 4)); in setup_rt_frame() 185 err |= __put_user(0x15000000, (unsigned long __user *)(frame->retcode + 8)); in setup_rt_frame()
|
/linux-6.3-rc2/arch/arm/kernel/ |
A D | signal.c | 294 err |= __put_user(0, &aux->end_magic); in setup_sigframe() 388 if (__put_user(sigreturn_codes[idx], rc ) || in setup_return() 389 __put_user(sigreturn_codes[idx+1], rc+1) || in setup_return() 390 __put_user(sigreturn_codes[idx+2], rc+2) || in setup_return() 391 __put_user(retcode, rc+3)) in setup_return() 404 if (__put_user(sigreturn_codes[idx], rc) || in setup_return() 405 __put_user(sigreturn_codes[idx+1], rc+1)) in setup_return() 457 err = __put_user(0x5ac3c35a, &frame->uc.uc_flags); in setup_frame() 477 err |= __put_user(0, &frame->sig.uc.uc_flags); in setup_rt_frame() 478 err |= __put_user(NULL, &frame->sig.uc.uc_link); in setup_rt_frame()
|
/linux-6.3-rc2/arch/microblaze/kernel/ |
A D | signal.c | 123 #define COPY(x) {err |= __put_user(regs->x, &sc->regs.x); } in setup_sigcontext() 137 err |= __put_user(mask, &sc->oldmask); in setup_sigcontext() 172 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() 173 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame() 183 err |= __put_user(0x31800000 | __NR_rt_sigreturn , in setup_rt_frame() 186 err |= __put_user(0xb9cc0008, frame->tramp + 1); in setup_rt_frame()
|
/linux-6.3-rc2/include/linux/ |
A D | eventpoll.h | 81 if (__put_user(revents, &uevent->events) || in epoll_put_uevent() 82 __put_user(data, &uevent->data)) in epoll_put_uevent()
|