Home
last modified time | relevance | path

Searched refs:__get_user (Results 1 – 25 of 108) sorted by relevance

12345

/linux-6.1.9/arch/nios2/kernel/
Dsignal.c48 err = __get_user(temp, &uc->uc_mcontext.version); in rt_restore_ucontext()
52 err |= __get_user(regs->r1, &gregs[0]); in rt_restore_ucontext()
53 err |= __get_user(regs->r2, &gregs[1]); in rt_restore_ucontext()
54 err |= __get_user(regs->r3, &gregs[2]); in rt_restore_ucontext()
55 err |= __get_user(regs->r4, &gregs[3]); in rt_restore_ucontext()
56 err |= __get_user(regs->r5, &gregs[4]); in rt_restore_ucontext()
57 err |= __get_user(regs->r6, &gregs[5]); in rt_restore_ucontext()
58 err |= __get_user(regs->r7, &gregs[6]); in rt_restore_ucontext()
59 err |= __get_user(regs->r8, &gregs[7]); in rt_restore_ucontext()
60 err |= __get_user(regs->r9, &gregs[8]); in rt_restore_ucontext()
[all …]
Dmisaligned.c98 fault |= __get_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
99 fault |= __get_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
116 fault |= __get_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
117 fault |= __get_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
140 fault |= __get_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
141 fault |= __get_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
142 fault |= __get_user(d2, (u8 *)(addr+2)); in handle_unaligned_c()
143 fault |= __get_user(d3, (u8 *)(addr+3)); in handle_unaligned_c()
/linux-6.1.9/arch/alpha/kernel/
Dsignal.c69 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in SYSCALL_DEFINE3()
70 __get_user(new_ka.sa.sa_flags, &act->sa_flags) || in SYSCALL_DEFINE3()
71 __get_user(mask, &act->sa_mask)) in SYSCALL_DEFINE3()
153 long i, err = __get_user(regs->pc, &sc->sc_pc); in restore_sigcontext()
159 err |= __get_user(regs->r0, sc->sc_regs+0); in restore_sigcontext()
160 err |= __get_user(regs->r1, sc->sc_regs+1); in restore_sigcontext()
161 err |= __get_user(regs->r2, sc->sc_regs+2); in restore_sigcontext()
162 err |= __get_user(regs->r3, sc->sc_regs+3); in restore_sigcontext()
163 err |= __get_user(regs->r4, sc->sc_regs+4); in restore_sigcontext()
164 err |= __get_user(regs->r5, sc->sc_regs+5); in restore_sigcontext()
[all …]
/linux-6.1.9/arch/sparc/kernel/
Dsignal_64.c58 err = __get_user(pc, &((*grp)[MC_PC])); in sparc64_set_context()
59 err |= __get_user(npc, &((*grp)[MC_NPC])); in sparc64_set_context()
66 if (__get_user(set.sig[0], &ucp->uc_sigmask.sig[0])) in sparc64_set_context()
80 err |= __get_user(regs->y, &((*grp)[MC_Y])); in sparc64_set_context()
81 err |= __get_user(tstate, &((*grp)[MC_TSTATE])); in sparc64_set_context()
84 err |= __get_user(regs->u_regs[UREG_G1], (&(*grp)[MC_G1])); in sparc64_set_context()
85 err |= __get_user(regs->u_regs[UREG_G2], (&(*grp)[MC_G2])); in sparc64_set_context()
86 err |= __get_user(regs->u_regs[UREG_G3], (&(*grp)[MC_G3])); in sparc64_set_context()
87 err |= __get_user(regs->u_regs[UREG_G4], (&(*grp)[MC_G4])); in sparc64_set_context()
88 err |= __get_user(regs->u_regs[UREG_G5], (&(*grp)[MC_G5])); in sparc64_set_context()
[all …]
Dsignal32.c112 if (__get_user(pc, &sf->info.si_regs.pc) || in do_sigreturn32()
113 __get_user(npc, &sf->info.si_regs.npc)) in do_sigreturn32()
127 err = __get_user(regs->y, &sf->info.si_regs.y); in do_sigreturn32()
128 err |= __get_user(psr, &sf->info.si_regs.psr); in do_sigreturn32()
131 err |= __get_user(regs->u_regs[i], &sf->info.si_regs.u_regs[i]); in do_sigreturn32()
133 err |= __get_user(i, &sf->v8plus.g_upper[0]); in do_sigreturn32()
138 err |= __get_user(((u32 *)regs->u_regs)[2*i], &sf->v8plus.g_upper[i]); in do_sigreturn32()
139 err |= __get_user(asi, &sf->v8plus.asi); in do_sigreturn32()
152 err |= __get_user(fpu_save, &sf->fpu_save); in do_sigreturn32()
155 err |= __get_user(rwin_save, &sf->rwin_save); in do_sigreturn32()
[all …]
Dsignal_32.c100 err = __get_user(pc, &sf->info.si_regs.pc); in do_sigreturn()
101 err |= __get_user(npc, &sf->info.si_regs.npc); in do_sigreturn()
117 err |= __get_user(fpu_save, &sf->fpu_save); in do_sigreturn()
120 err |= __get_user(rwin_save, &sf->rwin_save); in do_sigreturn()
127 err |= __get_user(set.sig[0], &sf->info.si_mask); in do_sigreturn()
161 err = __get_user(pc, &sf->regs.pc); in do_rt_sigreturn()
162 err |= __get_user(npc, &sf->regs.npc); in do_rt_sigreturn()
165 err |= __get_user(regs->y, &sf->regs.y); in do_rt_sigreturn()
166 err |= __get_user(psr, &sf->regs.psr); in do_rt_sigreturn()
176 err |= __get_user(fpu_save, &sf->fpu_save); in do_rt_sigreturn()
[all …]
Dsigutil_64.c53 err |= __get_user(current_thread_info()->xfsr[0], &fpu->si_fsr); in restore_fpu_state()
54 err |= __get_user(current_thread_info()->gsr[0], &fpu->si_gsr); in restore_fpu_state()
91 err |= __get_user(t->rwbuf_stkptrs[i], in restore_rwin_state()
Dsigutil_32.c73 err |= __get_user(current->thread.fsr, &fpu->si_fsr); in restore_fpu_state()
74 err |= __get_user(current->thread.fpqdepth, &fpu->si_fpqdepth); in restore_fpu_state()
117 err |= __get_user(t->rwbuf_stkptrs[i], in restore_rwin_state()
/linux-6.1.9/arch/hexagon/kernel/
Dsignal.c73 err |= __get_user(regs->sa0, &sc->sc_regs.sa0); in restore_sigcontext()
74 err |= __get_user(regs->lc0, &sc->sc_regs.lc0); in restore_sigcontext()
75 err |= __get_user(regs->sa1, &sc->sc_regs.sa1); in restore_sigcontext()
76 err |= __get_user(regs->lc1, &sc->sc_regs.lc1); in restore_sigcontext()
77 err |= __get_user(regs->m0, &sc->sc_regs.m0); in restore_sigcontext()
78 err |= __get_user(regs->m1, &sc->sc_regs.m1); in restore_sigcontext()
79 err |= __get_user(regs->usr, &sc->sc_regs.usr); in restore_sigcontext()
80 err |= __get_user(regs->preds, &sc->sc_regs.p3_0); in restore_sigcontext()
81 err |= __get_user(regs->gp, &sc->sc_regs.gp); in restore_sigcontext()
82 err |= __get_user(regs->ugp, &sc->sc_regs.ugp); in restore_sigcontext()
[all …]
/linux-6.1.9/arch/parisc/kernel/
Dsignal32.c50 err |= __get_user(compat_reg,&sc->sc_gr[regn]); in restore_sigcontext32()
53 err |= __get_user(compat_regt,&rf->rf_gr[regn]); in restore_sigcontext32()
65 err |= __get_user(compat_reg, &sc->sc_iaoq[0]); in restore_sigcontext32()
67 err |= __get_user(compat_regt, &rf->rf_iaoq[0]); in restore_sigcontext32()
73 err |= __get_user(compat_reg, &sc->sc_iaoq[1]); in restore_sigcontext32()
75 err |= __get_user(compat_regt, &rf->rf_iaoq[1]); in restore_sigcontext32()
83 err |= __get_user(compat_reg, &sc->sc_iasq[0]); in restore_sigcontext32()
85 err |= __get_user(compat_regt, &rf->rf_iasq[0]); in restore_sigcontext32()
89 err |= __get_user(compat_reg, &sc->sc_iasq[1]); in restore_sigcontext32()
91 err |= __get_user(compat_regt, &rf->rf_iasq[1]); in restore_sigcontext32()
[all …]
/linux-6.1.9/arch/ia64/kernel/
Dsignal.c39 # define GET_SIGSET(k,u) __get_user((k)->sig[0], &(u)->sig[0])
52 err = __get_user(flags, &sc->sc_flags); in restore_sigcontext()
53 err |= __get_user(nat, &sc->sc_nat); in restore_sigcontext()
54 err |= __get_user(ip, &sc->sc_ip); /* instruction pointer */ in restore_sigcontext()
55 err |= __get_user(cfm, &sc->sc_cfm); in restore_sigcontext()
56 err |= __get_user(um, &sc->sc_um); /* user mask */ in restore_sigcontext()
57 err |= __get_user(rsc, &sc->sc_ar_rsc); in restore_sigcontext()
58 err |= __get_user(scr->pt.ar_unat, &sc->sc_ar_unat); in restore_sigcontext()
59 err |= __get_user(scr->pt.ar_fpsr, &sc->sc_ar_fpsr); in restore_sigcontext()
60 err |= __get_user(scr->pt.ar_pfs, &sc->sc_ar_pfs); in restore_sigcontext()
[all …]
Dptrace.c940 retval |= __get_user(pt->cr_iip, &ppr->cr_iip); in ptrace_setregs()
941 retval |= __get_user(psr, &ppr->cr_ipsr); in ptrace_setregs()
945 retval |= __get_user(pt->ar_pfs, &ppr->ar[PT_AUR_PFS]); in ptrace_setregs()
946 retval |= __get_user(rsc, &ppr->ar[PT_AUR_RSC]); in ptrace_setregs()
947 retval |= __get_user(pt->ar_bspstore, &ppr->ar[PT_AUR_BSPSTORE]); in ptrace_setregs()
948 retval |= __get_user(pt->ar_unat, &ppr->ar[PT_AUR_UNAT]); in ptrace_setregs()
949 retval |= __get_user(pt->ar_ccv, &ppr->ar[PT_AUR_CCV]); in ptrace_setregs()
950 retval |= __get_user(pt->ar_fpsr, &ppr->ar[PT_AUR_FPSR]); in ptrace_setregs()
952 retval |= __get_user(ec, &ppr->ar[PT_AUR_EC]); in ptrace_setregs()
953 retval |= __get_user(lc, &ppr->ar[PT_AUR_LC]); in ptrace_setregs()
[all …]
/linux-6.1.9/arch/mips/kernel/
Dsignal.c100 err |= __get_user(fpr_val, &fpregs[i]); in copy_fp_from_sigcontext()
103 err |= __get_user(current->thread.fpu.fcr31, csr); in copy_fp_from_sigcontext()
243 err |= __get_user(val, &msa->wr[i]); in restore_msa_extcontext()
292 err = __get_user(ext.magic, (unsigned int *)buf); in restore_extcontext()
299 err = __get_user(ext.size, (unsigned int *)(buf in restore_extcontext()
386 err = __get_user(used, used_math); in protected_restore_fp_context()
424 err = __get_user(tmp, &fpregs[0]) | in protected_restore_fp_context()
425 __get_user(tmp, &fpregs[31]) | in protected_restore_fp_context()
426 __get_user(tmp, csr); in protected_restore_fp_context()
501 err = __get_user(csr, fpcsr); in fpcsr_pending()
[all …]
Dsignal_o32.c95 err |= __get_user(regs->cp0_epc, &sc->sc_pc); in restore_sigcontext32()
96 err |= __get_user(regs->hi, &sc->sc_mdhi); in restore_sigcontext32()
97 err |= __get_user(regs->lo, &sc->sc_mdlo); in restore_sigcontext32()
99 err |= __get_user(treg, &sc->sc_hi1); mthi1(treg); in restore_sigcontext32()
100 err |= __get_user(treg, &sc->sc_lo1); mtlo1(treg); in restore_sigcontext32()
101 err |= __get_user(treg, &sc->sc_hi2); mthi2(treg); in restore_sigcontext32()
102 err |= __get_user(treg, &sc->sc_lo2); mtlo2(treg); in restore_sigcontext32()
103 err |= __get_user(treg, &sc->sc_hi3); mthi3(treg); in restore_sigcontext32()
104 err |= __get_user(treg, &sc->sc_lo3); mtlo3(treg); in restore_sigcontext32()
105 err |= __get_user(treg, &sc->sc_dsp); wrdsp(treg, DSP_MASK); in restore_sigcontext32()
[all …]
Dsignal32.c51 err |= __get_user(handler, &act->sa_handler);
53 err |= __get_user(new_ka.sa.sa_flags, &act->sa_flags);
54 err |= __get_user(mask, &act->sa_mask.sig[0]);
/linux-6.1.9/arch/m68k/kernel/
Dsignal.c350 if (__get_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate)) in rt_restore_fpu_state()
720 err = __get_user(temp, &uc->uc_mcontext.version); in rt_restore_ucontext()
724 err |= __get_user(regs->d0, &gregs[0]); in rt_restore_ucontext()
725 err |= __get_user(regs->d1, &gregs[1]); in rt_restore_ucontext()
726 err |= __get_user(regs->d2, &gregs[2]); in rt_restore_ucontext()
727 err |= __get_user(regs->d3, &gregs[3]); in rt_restore_ucontext()
728 err |= __get_user(regs->d4, &gregs[4]); in rt_restore_ucontext()
729 err |= __get_user(regs->d5, &gregs[5]); in rt_restore_ucontext()
730 err |= __get_user(sw->d6, &gregs[6]); in rt_restore_ucontext()
731 err |= __get_user(sw->d7, &gregs[7]); in rt_restore_ucontext()
[all …]
/linux-6.1.9/arch/powerpc/kernel/
Dsignal_64.c469 err |= __get_user(regs->nip, &tm_sc->gp_regs[PT_NIP]); in restore_tm_sigcontexts()
470 err |= __get_user(tsk->thread.tm_tfhar, &sc->gp_regs[PT_NIP]); in restore_tm_sigcontexts()
473 err |= __get_user(msr, &sc->gp_regs[PT_MSR]); in restore_tm_sigcontexts()
482 err |= __get_user(regs->ctr, &tm_sc->gp_regs[PT_CTR]); in restore_tm_sigcontexts()
483 err |= __get_user(regs->link, &tm_sc->gp_regs[PT_LNK]); in restore_tm_sigcontexts()
484 err |= __get_user(regs->xer, &tm_sc->gp_regs[PT_XER]); in restore_tm_sigcontexts()
485 err |= __get_user(regs->ccr, &tm_sc->gp_regs[PT_CCR]); in restore_tm_sigcontexts()
486 err |= __get_user(tsk->thread.ckpt_regs.ctr, in restore_tm_sigcontexts()
488 err |= __get_user(tsk->thread.ckpt_regs.link, in restore_tm_sigcontexts()
490 err |= __get_user(tsk->thread.ckpt_regs.xer, in restore_tm_sigcontexts()
[all …]
/linux-6.1.9/arch/loongarch/kernel/
Dsignal.c109 err |= __get_user(fpr_val, &regs[i]); in copy_fpu_from_sigcontext()
112 err |= __get_user(current->thread.fpu.fcc, fcc); in copy_fpu_from_sigcontext()
113 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_from_sigcontext()
144 err = __get_user(csr, fcsr); in fcsr_pending()
219 err = __get_user(tmp, &regs[0]) | in protected_restore_fpu_context()
220 __get_user(tmp, &regs[31]) | in protected_restore_fpu_context()
221 __get_user(tmp, fcc) | in protected_restore_fpu_context()
222 __get_user(tmp, fcsr); in protected_restore_fpu_context()
261 err |= __get_user(magic, &info->magic); in parse_extcontext()
262 err |= __get_user(size, &info->size); in parse_extcontext()
[all …]
/linux-6.1.9/tools/perf/util/include/asm/
Duaccess.h5 #define __get_user(src, dest) \ macro
11 #define get_user __get_user
/linux-6.1.9/arch/sh/kernel/
Dsignal_32.c119 #define COPY(x) err |= __get_user(regs->x, &sc->sc_##x) in restore_sigcontext()
141 err |= __get_user (owned_fp, &sc->sc_ownedfp); in restore_sigcontext()
148 err |= __get_user(*r0_p, &sc->sc_regs[0]); in restore_sigcontext()
165 if (__get_user(set.sig[0], &frame->sc.oldmask) in sys_sigreturn()
318 err |= __get_user(regs->pc, &funcptr->text); in setup_frame()
319 err |= __get_user(regs->regs[12], &funcptr->GOT); in setup_frame()
388 err |= __get_user(regs->pc, &funcptr->text); in setup_rt_frame()
389 err |= __get_user(regs->regs[12], &funcptr->GOT); in setup_rt_frame()
/linux-6.1.9/drivers/macintosh/
Dans-lcd.c74 __get_user(c, p); in anslcd_write()
105 __get_user(ch, temp); in anslcd_ioctl()
108 __get_user(ch, temp); in anslcd_ioctl()
/linux-6.1.9/kernel/
Dcompat.c184 __get_user(event->sigev_value.sival_int, in get_compat_sigevent()
186 __get_user(event->sigev_signo, &u_event->sigev_signo) || in get_compat_sigevent()
187 __get_user(event->sigev_notify, &u_event->sigev_notify) || in get_compat_sigevent()
188 __get_user(event->sigev_notify_thread_id, in get_compat_sigevent()
/linux-6.1.9/drivers/pci/
Dproc.c139 __get_user(val, buf); in proc_bus_pci_write()
148 __get_user(val, (__le16 __user *) buf); in proc_bus_pci_write()
157 __get_user(val, (__le32 __user *) buf); in proc_bus_pci_write()
166 __get_user(val, (__le16 __user *) buf); in proc_bus_pci_write()
175 __get_user(val, buf); in proc_bus_pci_write()
/linux-6.1.9/arch/x86/kernel/
Dstacktrace.c98 if (__get_user(frame->next_fp, &fp->next_fp) || in copy_stack_frame()
99 __get_user(frame->ret_addr, &fp->ret_addr)) in copy_stack_frame()
/linux-6.1.9/arch/microblaze/include/asm/
Duaccess.h98 __get_user(x, __gu_ptr) : -EFAULT; \
101 #define __get_user(x, ptr) \ macro

12345