Home
last modified time | relevance | path

Searched refs:__put_user (Results 1 – 25 of 91) sorted by relevance

1234

/kernel/linux/linux-5.10/arch/alpha/kernel/
Dsignal.c81 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in SYSCALL_DEFINE3()
82 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) || in SYSCALL_DEFINE3()
83 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) in SYSCALL_DEFINE3()
277 err |= __put_user(on_sig_stack((unsigned long)sc), &sc->sc_onstack); in setup_sigcontext()
278 err |= __put_user(mask, &sc->sc_mask); in setup_sigcontext()
279 err |= __put_user(regs->pc, &sc->sc_pc); in setup_sigcontext()
280 err |= __put_user(8, &sc->sc_ps); in setup_sigcontext()
282 err |= __put_user(regs->r0 , sc->sc_regs+0); in setup_sigcontext()
283 err |= __put_user(regs->r1 , sc->sc_regs+1); in setup_sigcontext()
284 err |= __put_user(regs->r2 , sc->sc_regs+2); in setup_sigcontext()
[all …]
/kernel/linux/linux-5.10/arch/nios2/kernel/
Dsignal.c133 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext()
134 err |= __put_user(regs->r1, &gregs[0]); in rt_setup_ucontext()
135 err |= __put_user(regs->r2, &gregs[1]); in rt_setup_ucontext()
136 err |= __put_user(regs->r3, &gregs[2]); in rt_setup_ucontext()
137 err |= __put_user(regs->r4, &gregs[3]); in rt_setup_ucontext()
138 err |= __put_user(regs->r5, &gregs[4]); in rt_setup_ucontext()
139 err |= __put_user(regs->r6, &gregs[5]); in rt_setup_ucontext()
140 err |= __put_user(regs->r7, &gregs[6]); in rt_setup_ucontext()
141 err |= __put_user(regs->r8, &gregs[7]); in rt_setup_ucontext()
142 err |= __put_user(regs->r9, &gregs[8]); in rt_setup_ucontext()
[all …]
Dmisaligned.c111 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()
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dsignal32.c135 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()
157 err |= __put_user(compat_reg, &sc->sc_iasq[1]); in setup_sigcontext32()
161 err |= __put_user(compat_reg, &rf->rf_iasq[0]); in setup_sigcontext32()
162 err |= __put_user(compat_reg, &rf->rf_iasq[1]); in setup_sigcontext32()
172 err |= __put_user(compat_reg, &sc->sc_iaoq[0]); in setup_sigcontext32()
177 err |= __put_user(compat_reg, &rf->rf_iaoq[0]); in setup_sigcontext32()
[all …]
Dsignal.c204 err |= __put_user(regs->gr[31], &sc->sc_iaoq[0]); in setup_sigcontext()
205 err |= __put_user(regs->gr[31]+4, &sc->sc_iaoq[1]); in setup_sigcontext()
206 err |= __put_user(regs->sr[3], &sc->sc_iasq[0]); in setup_sigcontext()
207 err |= __put_user(regs->sr[3], &sc->sc_iasq[1]); in setup_sigcontext()
217 err |= __put_user(flags, &sc->sc_flags); in setup_sigcontext()
220 err |= __put_user(regs->sar, &sc->sc_sar); in setup_sigcontext()
288 err |= __put_user(in_syscall ? INSN_LDI_R25_1 : INSN_LDI_R25_0, in setup_rt_frame()
290 err |= __put_user(INSN_LDI_R20, in setup_rt_frame()
292 err |= __put_user(INSN_BLE_SR2_R0, in setup_rt_frame()
294 err |= __put_user(INSN_NOP, &frame->tramp[SIGRESTARTBLOCK_TRAMP+3]); in setup_rt_frame()
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dsignal_64.c104 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()
180 err |= __put_user(regs->tstate, &((*grp)[MC_TSTATE])); 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()
184 err |= __put_user(regs->u_regs[UREG_G1], &((*grp)[MC_G1])); in sparc64_get_context()
185 err |= __put_user(regs->u_regs[UREG_G2], &((*grp)[MC_G2])); in sparc64_get_context()
186 err |= __put_user(regs->u_regs[UREG_G3], &((*grp)[MC_G3])); in sparc64_get_context()
[all …]
Dsignal32.c393 err |= __put_user(regs->tnpc, &sf->info.si_regs.npc); in setup_frame32()
394 err |= __put_user(regs->y, &sf->info.si_regs.y); in setup_frame32()
398 err |= __put_user(psr, &sf->info.si_regs.psr); in setup_frame32()
400 err |= __put_user(regs->u_regs[i], &sf->info.si_regs.u_regs[i]); in setup_frame32()
401 err |= __put_user(sizeof(siginfo_extra_v8plus_t), &sf->extra_size); in setup_frame32()
402 err |= __put_user(SIGINFO_EXTRA_V8PLUS_MAGIC, &sf->v8plus.g_upper[0]); in setup_frame32()
404 err |= __put_user(((u32 *)regs->u_regs)[2*i], in setup_frame32()
406 err |= __put_user((regs->tstate & TSTATE_ASI) >> 24UL, in setup_frame32()
413 err |= __put_user((u64)fp, &sf->fpu_save); in setup_frame32()
415 err |= __put_user(0, &sf->fpu_save); in setup_frame32()
[all …]
Dsignal_32.c256 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()
275 err |= __put_user(oldset->sig[0], &sf->info.si_mask); in setup_frame()
307 err |= __put_user(0x821020d8, &sf->insns[0]); in setup_frame()
310 err |= __put_user(0x91d02010, &sf->insns[1]); in setup_frame()
344 err = __put_user(regs->pc, &sf->regs.pc); in setup_rt_frame()
345 err |= __put_user(regs->npc, &sf->regs.npc); in setup_rt_frame()
[all …]
Dsigutil_64.c28 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()
/kernel/linux/linux-5.10/arch/h8300/kernel/
Dsignal.c137 err |= __put_user(regs->er0, &sc->sc_er0); in setup_sigcontext()
138 err |= __put_user(regs->er1, &sc->sc_er1); in setup_sigcontext()
139 err |= __put_user(regs->er2, &sc->sc_er2); in setup_sigcontext()
140 err |= __put_user(regs->er3, &sc->sc_er3); in setup_sigcontext()
141 err |= __put_user(regs->er4, &sc->sc_er4); in setup_sigcontext()
142 err |= __put_user(regs->er5, &sc->sc_er5); in setup_sigcontext()
143 err |= __put_user(regs->er6, &sc->sc_er6); in setup_sigcontext()
144 err |= __put_user(rdusp(), &sc->sc_usp); in setup_sigcontext()
145 err |= __put_user(regs->pc, &sc->sc_pc); in setup_sigcontext()
146 err |= __put_user(regs->ccr, &sc->sc_ccr); in setup_sigcontext()
[all …]
/kernel/linux/linux-5.10/arch/hexagon/kernel/
Dsignal.c44 err |= __put_user(regs->sa0, &sc->sc_regs.sa0); in setup_sigcontext()
45 err |= __put_user(regs->lc0, &sc->sc_regs.lc0); in setup_sigcontext()
46 err |= __put_user(regs->sa1, &sc->sc_regs.sa1); in setup_sigcontext()
47 err |= __put_user(regs->lc1, &sc->sc_regs.lc1); in setup_sigcontext()
48 err |= __put_user(regs->m0, &sc->sc_regs.m0); in setup_sigcontext()
49 err |= __put_user(regs->m1, &sc->sc_regs.m1); in setup_sigcontext()
50 err |= __put_user(regs->usr, &sc->sc_regs.usr); in setup_sigcontext()
51 err |= __put_user(regs->preds, &sc->sc_regs.p3_0); in setup_sigcontext()
52 err |= __put_user(regs->gp, &sc->sc_regs.gp); in setup_sigcontext()
53 err |= __put_user(regs->ugp, &sc->sc_regs.ugp); in setup_sigcontext()
[all …]
/kernel/linux/linux-5.10/arch/ia64/kernel/
Dsignal.c39 # define PUT_SIGSET(k,u) __put_user((k)->sig[0], &(u)->sig[0])
187 err |= __put_user(flags, &sc->sc_flags); in setup_sigcontext()
188 err |= __put_user(nat, &sc->sc_nat); in setup_sigcontext()
190 err |= __put_user(cfm, &sc->sc_cfm); in setup_sigcontext()
191 err |= __put_user(scr->pt.cr_ipsr & IA64_PSR_UM, &sc->sc_um); in setup_sigcontext()
192 err |= __put_user(scr->pt.ar_rsc, &sc->sc_ar_rsc); in setup_sigcontext()
193 err |= __put_user(scr->pt.ar_unat, &sc->sc_ar_unat); /* ar.unat */ in setup_sigcontext()
194 err |= __put_user(scr->pt.ar_fpsr, &sc->sc_ar_fpsr); /* ar.fpsr */ in setup_sigcontext()
195 err |= __put_user(scr->pt.ar_pfs, &sc->sc_ar_pfs); in setup_sigcontext()
196 err |= __put_user(scr->pt.pr, &sc->sc_pr); /* predicates */ in setup_sigcontext()
[all …]
/kernel/linux/linux-5.10/arch/mips/kernel/
Dsignal.c82 __put_user(get_fpr64(&current->thread.fpu.fpr[i], 0), in copy_fp_to_sigcontext()
85 err |= __put_user(current->thread.fpu.fcr31, csr); in copy_fp_to_sigcontext()
188 err = __put_user(read_msa_csr(), &msa->csr); in save_msa_extcontext()
195 err = __put_user(current->thread.fpu.msacsr, &msa->csr); in save_msa_extcontext()
199 err |= __put_user(val, &msa->wr[i]); in save_msa_extcontext()
203 err |= __put_user(MSA_EXTCONTEXT_MAGIC, &msa->ext.magic); in save_msa_extcontext()
204 err |= __put_user(sizeof(*msa), &msa->ext.size); in save_msa_extcontext()
280 if (__put_user(END_EXTCONTEXT_MAGIC, (u32 *)buf)) in save_extcontext()
362 err = __put_user(0, &fpregs[0]) | in protected_save_fp_context()
363 __put_user(0, &fpregs[31]) | in protected_save_fp_context()
[all …]
Dsignal_o32.c58 err |= __put_user(regs->cp0_epc, &sc->sc_pc); in setup_sigcontext32()
60 err |= __put_user(0, &sc->sc_regs[0]); in setup_sigcontext32()
62 err |= __put_user(regs->regs[i], &sc->sc_regs[i]); 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()
67 err |= __put_user(rddsp(DSP_MASK), &sc->sc_dsp); 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()
[all …]
Dsignal32.c66 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]);
/kernel/linux/linux-5.10/arch/m68k/kernel/
Dsignal.c507 err |= __put_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate); in rt_save_fpu_state()
860 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext()
861 err |= __put_user(regs->d0, &gregs[0]); in rt_setup_ucontext()
862 err |= __put_user(regs->d1, &gregs[1]); in rt_setup_ucontext()
863 err |= __put_user(regs->d2, &gregs[2]); in rt_setup_ucontext()
864 err |= __put_user(regs->d3, &gregs[3]); in rt_setup_ucontext()
865 err |= __put_user(regs->d4, &gregs[4]); in rt_setup_ucontext()
866 err |= __put_user(regs->d5, &gregs[5]); in rt_setup_ucontext()
867 err |= __put_user(sw->d6, &gregs[6]); in rt_setup_ucontext()
868 err |= __put_user(sw->d7, &gregs[7]); in rt_setup_ucontext()
[all …]
/kernel/linux/linux-5.10/arch/sh/kernel/
Dsignal_32.c98 return __put_user(0, &sc->sc_ownedfp); in save_sigcontext_fpu()
100 if (__put_user(1, &sc->sc_ownedfp)) in save_sigcontext_fpu()
223 #define COPY(x) err |= __put_user(regs->x, &sc->sc_##x) in setup_sigcontext()
242 err |= __put_user(mask, &sc->oldmask); in setup_sigcontext()
293 err |= __put_user(MOVW(7), &frame->retcode[0]); in setup_frame()
294 err |= __put_user(TRAP_NOARG, &frame->retcode[1]); in setup_frame()
295 err |= __put_user(OR_R0_R0, &frame->retcode[2]); in setup_frame()
296 err |= __put_user(OR_R0_R0, &frame->retcode[3]); in setup_frame()
297 err |= __put_user(OR_R0_R0, &frame->retcode[4]); in setup_frame()
298 err |= __put_user(OR_R0_R0, &frame->retcode[5]); in setup_frame()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsignal_64.c116 err |= __put_user(v_regs, &sc->v_regs); in setup_sigcontext()
138 err |= __put_user(vrsave, (u32 __user *)&v_regs[33]); in setup_sigcontext()
140 err |= __put_user(0, &sc->v_regs); in setup_sigcontext()
167 err |= __put_user(&sc->gp_regs, &sc->regs); in setup_sigcontext()
170 err |= __put_user(msr, &sc->gp_regs[PT_MSR]); in setup_sigcontext()
171 err |= __put_user(softe, &sc->gp_regs[PT_SOFTE]); in setup_sigcontext()
172 err |= __put_user(signr, &sc->signal); in setup_sigcontext()
173 err |= __put_user(handler, &sc->handler); in setup_sigcontext()
175 err |= __put_user(set->sig[0], &sc->oldmask); in setup_sigcontext()
226 err |= __put_user(v_regs, &sc->v_regs); in setup_tm_sigcontexts()
[all …]
Dsignal_32.c116 if (__put_user(val, &frame->mc_gregs[i])) in save_general_regs()
272 if (__put_user(current->thread.vrsave, (u32 __user *)&frame->mc_vregs[32])) in save_user_regs()
311 if (__put_user(current->thread.spefscr, (u32 __user *)&frame->mc_vregs + ELF_NEVRREG)) in save_user_regs()
315 if (__put_user(msr, &frame->mc_gregs[PT_MSR])) in save_user_regs()
320 if (tm_frame && __put_user(0, &tm_frame->mc_gregs[PT_MSR])) in save_user_regs()
325 if (__put_user(PPC_INST_ADDI + sigret, &frame->tramp[0]) in save_user_regs()
326 || __put_user(PPC_INST_SC, &frame->tramp[1])) in save_user_regs()
363 if (__put_user((msr >> 32), &tm_frame->mc_gregs[PT_MSR])) in save_tm_user_regs()
397 if (__put_user(current->thread.ckvrsave, in save_tm_user_regs()
401 if (__put_user(current->thread.vrsave, in save_tm_user_regs()
[all …]
/kernel/linux/linux-5.10/arch/xtensa/kernel/
Dsignal.c140 #define COPY(x) err |= __put_user(regs->x, &sc->sc_##x) in setup_sigcontext()
151 err |= __put_user(0, &sc->sc_xtregs); in setup_sigcontext()
167 err |= __put_user(err ? NULL : &frame->xtregs, &sc->sc_xtregs); in setup_sigcontext()
301 err |= __put_user(0x22, &codemem[0]); in gen_return_code()
302 err |= __put_user(0x0a, &codemem[1]); in gen_return_code()
303 err |= __put_user(__NR_rt_sigreturn, &codemem[2]); in gen_return_code()
305 err |= __put_user(0x00, &codemem[3]); in gen_return_code()
306 err |= __put_user(0x05, &codemem[4]); in gen_return_code()
307 err |= __put_user(0x00, &codemem[5]); in gen_return_code()
311 err |= __put_user(0x22, &codemem[0]); in gen_return_code()
[all …]
/kernel/linux/linux-5.10/arch/x86/um/
Dsignal.c107 if (__put_user(*f, t) || in convert_fxsr_to_user()
108 __put_user(*(f + 1), t + 1) || in convert_fxsr_to_user()
109 __put_user(from->exponent, &to->exponent)) in convert_fxsr_to_user()
307 err |= __put_user(fpx.swd, &to_fp->fpstate.status); in copy_sc_to_user()
308 err |= __put_user(X86_FXSR_MAGIC, &to_fp->fpstate.magic); in copy_sc_to_user()
377 err |= __put_user(restorer, &frame->pretcode); in setup_signal_stack_sc()
378 err |= __put_user(sig, &frame->sig); in setup_signal_stack_sc()
391 err |= __put_user(0xb858, (short __user *)(frame->retcode+0)); in setup_signal_stack_sc()
392 err |= __put_user(__NR_sigreturn, (int __user *)(frame->retcode+2)); in setup_signal_stack_sc()
393 err |= __put_user(0x80cd, (short __user *)(frame->retcode+6)); in setup_signal_stack_sc()
[all …]
/kernel/linux/linux-5.10/arch/csky/abiv2/inc/abi/
Dvdso.h13 err |= __put_user(0xea07, ptr); in setup_vdso_page()
14 err |= __put_user(0x008b, ptr+1); in setup_vdso_page()
17 err |= __put_user(0xc000, ptr+2); in setup_vdso_page()
18 err |= __put_user(0x2020, ptr+3); in setup_vdso_page()
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dtermios.h67 err = __put_user(termios->c_iflag, &termio->c_iflag); in kernel_termios_to_user_termio()
68 err |= __put_user(termios->c_oflag, &termio->c_oflag); in kernel_termios_to_user_termio()
69 err |= __put_user(termios->c_cflag, &termio->c_cflag); in kernel_termios_to_user_termio()
70 err |= __put_user(termios->c_lflag, &termio->c_lflag); in kernel_termios_to_user_termio()
71 err |= __put_user(termios->c_line, &termio->c_line); in kernel_termios_to_user_termio()
/kernel/linux/linux-5.10/arch/csky/abiv1/inc/abi/
Dvdso.h10 err |= __put_user(0x67f1, ptr + 0); in setup_vdso_page()
12 err |= __put_user(0x20b1, ptr + 1); in setup_vdso_page()
14 err |= __put_user(0x0008, ptr + 2); in setup_vdso_page()
/kernel/linux/linux-5.10/arch/openrisc/kernel/
Dsignal.c168 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame()
169 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame()
184 err |= __put_user(0xa960, (short __user *)(frame->retcode + 0)); in setup_rt_frame()
185 err |= __put_user(__NR_rt_sigreturn, (short __user *)(frame->retcode + 2)); in setup_rt_frame()
186 err |= __put_user(0x20000001, (unsigned long __user *)(frame->retcode + 4)); in setup_rt_frame()
187 err |= __put_user(0x15000000, (unsigned long __user *)(frame->retcode + 8)); in setup_rt_frame()

1234