/arch/unicore32/kernel/ |
D | signal.c | 46 struct ucontext uc; member 60 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe() 64 err |= __get_user(regs->UCreg_00, &sf->uc.uc_mcontext.regs.UCreg_00); in restore_sigframe() 65 err |= __get_user(regs->UCreg_01, &sf->uc.uc_mcontext.regs.UCreg_01); in restore_sigframe() 66 err |= __get_user(regs->UCreg_02, &sf->uc.uc_mcontext.regs.UCreg_02); in restore_sigframe() 67 err |= __get_user(regs->UCreg_03, &sf->uc.uc_mcontext.regs.UCreg_03); in restore_sigframe() 68 err |= __get_user(regs->UCreg_04, &sf->uc.uc_mcontext.regs.UCreg_04); in restore_sigframe() 69 err |= __get_user(regs->UCreg_05, &sf->uc.uc_mcontext.regs.UCreg_05); in restore_sigframe() 70 err |= __get_user(regs->UCreg_06, &sf->uc.uc_mcontext.regs.UCreg_06); in restore_sigframe() 71 err |= __get_user(regs->UCreg_07, &sf->uc.uc_mcontext.regs.UCreg_07); in restore_sigframe() [all …]
|
/arch/arm/kernel/ |
D | signal.c | 133 struct ucontext uc; member 148 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe() 152 __get_user_error(regs->ARM_r0, &sf->uc.uc_mcontext.arm_r0, err); in restore_sigframe() 153 __get_user_error(regs->ARM_r1, &sf->uc.uc_mcontext.arm_r1, err); in restore_sigframe() 154 __get_user_error(regs->ARM_r2, &sf->uc.uc_mcontext.arm_r2, err); in restore_sigframe() 155 __get_user_error(regs->ARM_r3, &sf->uc.uc_mcontext.arm_r3, err); in restore_sigframe() 156 __get_user_error(regs->ARM_r4, &sf->uc.uc_mcontext.arm_r4, err); in restore_sigframe() 157 __get_user_error(regs->ARM_r5, &sf->uc.uc_mcontext.arm_r5, err); in restore_sigframe() 158 __get_user_error(regs->ARM_r6, &sf->uc.uc_mcontext.arm_r6, err); in restore_sigframe() 159 __get_user_error(regs->ARM_r7, &sf->uc.uc_mcontext.arm_r7, err); in restore_sigframe() [all …]
|
/arch/arm64/kernel/ |
D | signal32.c | 95 struct compat_ucontext uc; member 330 err = get_sigset_t(&set, &sf->uc.uc_sigmask); in compat_restore_sigframe() 336 __get_user_error(regs->regs[0], &sf->uc.uc_mcontext.arm_r0, err); in compat_restore_sigframe() 337 __get_user_error(regs->regs[1], &sf->uc.uc_mcontext.arm_r1, err); in compat_restore_sigframe() 338 __get_user_error(regs->regs[2], &sf->uc.uc_mcontext.arm_r2, err); in compat_restore_sigframe() 339 __get_user_error(regs->regs[3], &sf->uc.uc_mcontext.arm_r3, err); in compat_restore_sigframe() 340 __get_user_error(regs->regs[4], &sf->uc.uc_mcontext.arm_r4, err); in compat_restore_sigframe() 341 __get_user_error(regs->regs[5], &sf->uc.uc_mcontext.arm_r5, err); in compat_restore_sigframe() 342 __get_user_error(regs->regs[6], &sf->uc.uc_mcontext.arm_r6, err); in compat_restore_sigframe() 343 __get_user_error(regs->regs[7], &sf->uc.uc_mcontext.arm_r7, err); in compat_restore_sigframe() [all …]
|
D | signal.c | 43 struct ucontext uc; member 100 void *aux = sf->uc.uc_mcontext.__reserved; in restore_sigframe() 102 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe() 107 __get_user_error(regs->regs[i], &sf->uc.uc_mcontext.regs[i], in restore_sigframe() 109 __get_user_error(regs->sp, &sf->uc.uc_mcontext.sp, err); in restore_sigframe() 110 __get_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); in restore_sigframe() 111 __get_user_error(regs->pstate, &sf->uc.uc_mcontext.pstate, err); in restore_sigframe() 151 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn() 169 void *aux = sf->uc.uc_mcontext.__reserved; in setup_sigframe() 177 __put_user_error(regs->regs[i], &sf->uc.uc_mcontext.regs[i], in setup_sigframe() [all …]
|
/arch/m68k/kernel/ |
D | signal.c | 260 struct ucontext uc; member 348 static inline int rt_restore_fpu_state(struct ucontext __user *uc) in rt_restore_fpu_state() argument 358 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state() 362 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state() 367 if (__get_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate)) in rt_restore_fpu_state() 400 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state() 425 __copy_from_user(fpstate + 4, (long __user *)&uc->uc_fpstate + 1, in rt_restore_fpu_state() 499 static inline int rt_save_fpu_state(struct ucontext __user *uc, struct pt_regs *regs) in rt_save_fpu_state() argument 507 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpcntl, in rt_save_fpu_state() 510 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpregs, in rt_save_fpu_state() [all …]
|
/arch/parisc/kernel/ |
D | signal.c | 115 if (__copy_from_user(&compat_set, &compat_frame->uc.uc_sigmask, sizeof(compat_set))) in sys_rt_sigreturn() 121 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 131 &compat_frame->uc.uc_mcontext); in sys_rt_sigreturn() 133 if (restore_sigcontext32(&compat_frame->uc.uc_mcontext, in sys_rt_sigreturn() 137 usp, &compat_frame->uc.uc_stack); in sys_rt_sigreturn() 138 if (compat_restore_altstack(&compat_frame->uc.uc_stack)) in sys_rt_sigreturn() 144 &frame->uc.uc_mcontext); in sys_rt_sigreturn() 145 if (restore_sigcontext(&frame->uc.uc_mcontext, regs)) in sys_rt_sigreturn() 148 usp, &frame->uc.uc_stack); in sys_rt_sigreturn() 149 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn() [all …]
|
/arch/nios2/kernel/ |
D | signal.c | 34 struct ucontext uc; member 39 struct ucontext *uc, int *pr2) in rt_restore_ucontext() argument 42 unsigned long *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext() 48 err = __get_user(temp, &uc->uc_mcontext.version); in rt_restore_ucontext() 90 err |= restore_altstack(&uc->uc_stack); in rt_restore_ucontext() 112 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in do_rt_sigreturn() 117 if (rt_restore_ucontext(regs, sw, &frame->uc, &rval)) in do_rt_sigreturn() 127 static inline int rt_setup_ucontext(struct ucontext *uc, struct pt_regs *regs) in rt_setup_ucontext() argument 130 unsigned long *gregs = uc->uc_mcontext.gregs; in rt_setup_ucontext() 133 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext() [all …]
|
/arch/openrisc/kernel/ |
D | signal.c | 39 struct ucontext uc; member 88 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in _sys_rt_sigreturn() 93 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) in _sys_rt_sigreturn() 96 if (restore_altstack(&frame->uc.uc_stack)) in _sys_rt_sigreturn() 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() 174 err |= __save_altstack(&frame->uc.uc_stack, regs->sp); in setup_rt_frame() 175 err |= setup_sigcontext(regs, &frame->uc.uc_mcontext); in setup_rt_frame() 177 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame() 201 regs->gpr[5] = (unsigned long)&frame->uc; /* arg 3: ucontext */ in setup_rt_frame()
|
/arch/x86/kernel/ |
D | signal.c | 391 put_user_ex(&frame->uc, &frame->puc); in __setup_rt_frame() 395 put_user_ex(UC_FP_XSTATE, &frame->uc.uc_flags); in __setup_rt_frame() 397 put_user_ex(0, &frame->uc.uc_flags); in __setup_rt_frame() 398 put_user_ex(0, &frame->uc.uc_link); in __setup_rt_frame() 399 save_altstack_ex(&frame->uc.uc_stack, regs->sp); in __setup_rt_frame() 419 err |= setup_sigcontext(&frame->uc.uc_mcontext, fpstate, in __setup_rt_frame() 421 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in __setup_rt_frame() 431 regs->cx = (unsigned long)&frame->uc; in __setup_rt_frame() 475 put_user_ex(frame_uc_flags(regs), &frame->uc.uc_flags); in __setup_rt_frame() 476 put_user_ex(0, &frame->uc.uc_link); in __setup_rt_frame() [all …]
|
/arch/metag/kernel/ |
D | signal.c | 41 struct ucontext uc; member 83 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 88 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) in sys_rt_sigreturn() 91 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn() 165 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() 166 err |= __put_user(0, (unsigned long __user *)&frame->uc.uc_link); in setup_rt_frame() 167 err |= __save_altstack(&frame->uc.uc_stack, regs->REG_SP); in setup_rt_frame() 168 err |= setup_sigcontext(&frame->uc.uc_mcontext, in setup_rt_frame() 170 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame() 193 regs->REG_ARG3 = (unsigned long) &frame->uc; in setup_rt_frame()
|
/arch/tile/kernel/ |
D | compat_signal.c | 49 struct compat_ucontext uc; member 137 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in compat_sys_rt_sigreturn() 142 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) in compat_sys_rt_sigreturn() 145 if (compat_restore_altstack(&frame->uc.uc_stack)) in compat_sys_rt_sigreturn() 213 err |= __put_user(0, &frame->uc.uc_flags); in compat_setup_rt_frame() 214 err |= __put_user(0, &frame->uc.uc_link); in compat_setup_rt_frame() 215 err |= __compat_save_altstack(&frame->uc.uc_stack, regs->sp); in compat_setup_rt_frame() 216 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs); in compat_setup_rt_frame() 217 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in compat_setup_rt_frame() 238 regs->regs[2] = ptr_to_compat_reg(&frame->uc); in compat_setup_rt_frame()
|
D | signal.c | 86 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0() 91 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) in SYSCALL_DEFINE0() 94 if (restore_altstack(&frame->uc.uc_stack)) in SYSCALL_DEFINE0() 171 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() 172 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame() 173 err |= __save_altstack(&frame->uc.uc_stack, regs->sp); in setup_rt_frame() 174 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs); in setup_rt_frame() 175 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame() 196 regs->regs[2] = (unsigned long) &frame->uc; in setup_rt_frame()
|
/arch/avr32/kernel/ |
D | signal.c | 27 struct ucontext uc; member 80 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 85 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) in sys_rt_sigreturn() 88 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn() 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() 168 err |= __save_altstack(&frame->uc.uc_stack, regs->sp); in setup_rt_frame() 169 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs); in setup_rt_frame() 170 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame() 177 regs->r10 = (unsigned long) &frame->uc; in setup_rt_frame()
|
/arch/h8300/kernel/ |
D | signal.c | 68 struct ucontext uc; member 114 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 119 if (restore_sigcontext(&frame->uc.uc_mcontext, &er0)) in sys_rt_sigreturn() 122 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn() 174 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() 175 err |= __put_user(0, &frame->uc.uc_link); in setup_rt_frame() 176 err |= __save_altstack(&frame->uc.uc_stack, rdusp()); in setup_rt_frame() 177 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0]); in setup_rt_frame() 178 err |= copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame() 203 regs->er2 = (unsigned long)&frame->uc; in setup_rt_frame()
|
/arch/x86/um/ |
D | signal.c | 326 static int copy_ucontext_to_user(struct ucontext __user *uc, in copy_ucontext_to_user() argument 332 err |= __save_altstack(&uc->uc_stack, sp); in copy_ucontext_to_user() 333 err |= copy_sc_to_user(&uc->uc_mcontext, fp, ¤t->thread.regs, 0); in copy_ucontext_to_user() 334 err |= copy_to_user(&uc->uc_sigmask, set, sizeof(*set)); in copy_ucontext_to_user() 355 struct ucontext uc; member 425 err |= __put_user(&frame->uc, &frame->puc); in setup_signal_stack_si() 427 err |= copy_ucontext_to_user(&frame->uc, &frame->fpstate, mask, in setup_signal_stack_si() 448 PT_REGS_CX(regs) = (unsigned long) &frame->uc; in setup_signal_stack_si() 483 struct ucontext uc; member 510 err |= __put_user(0, &frame->uc.uc_flags); in setup_signal_stack_si() [all …]
|
D | stub_segv.c | 14 ucontext_t *uc = p; in stub_segv_handler() local 17 &uc->uc_mcontext); in stub_segv_handler()
|
/arch/m32r/kernel/ |
D | signal.c | 40 struct ucontext uc; member 99 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 104 if (restore_sigcontext(regs, &frame->uc.uc_mcontext, &result)) in sys_rt_sigreturn() 107 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn() 187 err |= __put_user(&frame->uc, &frame->puc); in setup_rt_frame() 193 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() 194 err |= __put_user(0, &frame->uc.uc_link); in setup_rt_frame() 195 err |= __save_altstack(&frame->uc.uc_stack, regs->spu); in setup_rt_frame() 196 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0]); in setup_rt_frame() 197 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame() [all …]
|
/arch/arc/kernel/ |
D | signal.c | 60 struct ucontext uc; member 96 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch, in stash_usr_regs() 97 sizeof(sf->uc.uc_mcontext.regs.scratch)); in stash_usr_regs() 98 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t)); in stash_usr_regs() 109 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_usr_regs() 111 &(sf->uc.uc_mcontext.regs.scratch), in restore_usr_regs() 112 sizeof(sf->uc.uc_mcontext.regs.scratch)); in restore_usr_regs() 177 if (restore_altstack(&sf->uc.uc_stack)) in SYSCALL_DEFINE0() 254 err |= __put_user(0, &sf->uc.uc_flags); in setup_rt_frame() 255 err |= __put_user(NULL, &sf->uc.uc_link); in setup_rt_frame() [all …]
|
/arch/blackfin/kernel/ |
D | signal.c | 37 struct ucontext uc; member 90 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 95 if (rt_restore_sigcontext(regs, &frame->uc.uc_mcontext, &r0)) in sys_rt_sigreturn() 98 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn() 157 err |= __put_user(&frame->uc, &frame->puc); in setup_rt_frame() 161 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() 162 err |= __put_user(0, &frame->uc.uc_link); in setup_rt_frame() 163 err |= __save_altstack(&frame->uc.uc_stack, rdusp()); in setup_rt_frame() 164 err |= rt_setup_sigcontext(&frame->uc.uc_mcontext, regs); in setup_rt_frame() 165 err |= copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame() [all …]
|
/arch/x86/include/asm/ |
D | sigframe.h | 54 struct ucontext_ia32 uc; member 64 struct ucontext uc; member 82 struct ucontext_x32 uc; member
|
/arch/microblaze/kernel/ |
D | signal.c | 55 struct ucontext uc; member 97 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 102 if (restore_sigcontext(regs, &frame->uc.uc_mcontext, &rval)) in sys_rt_sigreturn() 105 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn() 176 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() 177 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame() 178 err |= __save_altstack(&frame->uc.uc_stack, regs->r1); in setup_rt_frame() 179 err |= setup_sigcontext(&frame->uc.uc_mcontext, in setup_rt_frame() 181 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame() 228 regs->r7 = (unsigned long) &frame->uc; /* arg2: ucontext */ in setup_rt_frame()
|
/arch/frv/kernel/ |
D | signal.c | 55 struct ucontext uc; member 119 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 124 if (restore_sigcontext(&frame->uc.uc_mcontext, &gr8)) in sys_rt_sigreturn() 127 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn() 259 __put_user(&frame->uc, &frame->puc)) in setup_rt_frame() 266 if (__put_user(0, &frame->uc.uc_flags) || in setup_rt_frame() 267 __put_user(NULL, &frame->uc.uc_link) || in setup_rt_frame() 268 __save_altstack(&frame->uc.uc_stack, __frame->sp)) in setup_rt_frame() 271 if (setup_sigcontext(&frame->uc.uc_mcontext, set->sig[0])) in setup_rt_frame() 274 if (__copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set))) in setup_rt_frame()
|
D | Makefile | 5 heads-y := head-uc-fr401.o head-uc-fr451.o head-uc-fr555.o
|
/arch/cris/arch-v10/kernel/ |
D | signal.c | 58 struct ucontext uc; member 156 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 161 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) in sys_rt_sigreturn() 164 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn() 290 err |= __put_user(&frame->uc, &frame->puc); in setup_rt_frame() 296 err |= __clear_user(&frame->uc, offsetof(struct ucontext, uc_mcontext)); in setup_rt_frame() 298 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0]); in setup_rt_frame() 300 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame() 302 err |= __save_altstack(&frame->uc.uc_stack, rdusp()); in setup_rt_frame()
|
/arch/xtensa/kernel/ |
D | signal.c | 37 struct ucontext uc; member 137 struct sigcontext __user *sc = &frame->uc.uc_mcontext; in setup_sigcontext() 176 struct sigcontext __user *sc = &frame->uc.uc_mcontext; in restore_sigcontext() 258 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in xtensa_rt_sigreturn() 268 if (restore_altstack(&frame->uc.uc_stack)) in xtensa_rt_sigreturn() 362 err |= __put_user(0, &frame->uc.uc_flags); in setup_frame() 363 err |= __put_user(0, &frame->uc.uc_link); in setup_frame() 364 err |= __save_altstack(&frame->uc.uc_stack, regs->areg[1]); in setup_frame() 366 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_frame() 398 regs->areg[8] = (unsigned long) &frame->uc; in setup_frame()
|