Lines Matching full:frame
103 struct sigframe_ia32 __user *frame = (struct sigframe_ia32 __user *)(regs->sp-8); in COMPAT_SYSCALL_DEFINE0() local
106 if (!access_ok(frame, sizeof(*frame))) in COMPAT_SYSCALL_DEFINE0()
108 if (__get_user(set.sig[0], &frame->sc.oldmask) in COMPAT_SYSCALL_DEFINE0()
109 || __get_user(((__u32 *)&set)[1], &frame->extramask[0])) in COMPAT_SYSCALL_DEFINE0()
114 if (ia32_restore_sigcontext(regs, &frame->sc)) in COMPAT_SYSCALL_DEFINE0()
119 signal_fault(regs, frame, "32bit sigreturn"); in COMPAT_SYSCALL_DEFINE0()
126 struct rt_sigframe_ia32 __user *frame; in COMPAT_SYSCALL_DEFINE0() local
129 frame = (struct rt_sigframe_ia32 __user *)(regs->sp - 4); in COMPAT_SYSCALL_DEFINE0()
131 if (!access_ok(frame, sizeof(*frame))) in COMPAT_SYSCALL_DEFINE0()
133 if (__get_user(set.sig[0], (__u64 __user *)&frame->uc.uc_sigmask)) in COMPAT_SYSCALL_DEFINE0()
138 if (ia32_restore_sigcontext(regs, &frame->uc.uc_mcontext)) in COMPAT_SYSCALL_DEFINE0()
141 if (compat_restore_altstack(&frame->uc.uc_stack)) in COMPAT_SYSCALL_DEFINE0()
147 signal_fault(regs, frame, "32bit rt sigreturn"); in COMPAT_SYSCALL_DEFINE0()
152 * Set up a signal frame.
237 struct sigframe_ia32 __user *frame; in ia32_setup_frame() local
252 frame = get_sigframe(ksig, regs, sizeof(*frame), &fp); in ia32_setup_frame()
262 restorer = &frame->retcode; in ia32_setup_frame()
265 if (!user_access_begin(frame, sizeof(*frame))) in ia32_setup_frame()
268 unsafe_put_user(sig, &frame->sig, Efault); in ia32_setup_frame()
269 unsafe_put_sigcontext32(&frame->sc, fp, regs, set, Efault); in ia32_setup_frame()
270 unsafe_put_user(set->sig[1], &frame->extramask[0], Efault); in ia32_setup_frame()
271 unsafe_put_user(ptr_to_compat(restorer), &frame->pretcode, Efault); in ia32_setup_frame()
276 unsafe_put_user(*((u64 *)&code), (u64 __user *)frame->retcode, Efault); in ia32_setup_frame()
280 regs->sp = (unsigned long) frame; in ia32_setup_frame()
303 struct rt_sigframe_ia32 __user *frame; in ia32_setup_rt_frame() local
320 frame = get_sigframe(ksig, regs, sizeof(*frame), &fp); in ia32_setup_rt_frame()
322 if (!user_access_begin(frame, sizeof(*frame))) in ia32_setup_rt_frame()
325 unsafe_put_user(sig, &frame->sig, Efault); in ia32_setup_rt_frame()
326 unsafe_put_user(ptr_to_compat(&frame->info), &frame->pinfo, Efault); in ia32_setup_rt_frame()
327 unsafe_put_user(ptr_to_compat(&frame->uc), &frame->puc, Efault); in ia32_setup_rt_frame()
331 unsafe_put_user(UC_FP_XSTATE, &frame->uc.uc_flags, Efault); in ia32_setup_rt_frame()
333 unsafe_put_user(0, &frame->uc.uc_flags, Efault); in ia32_setup_rt_frame()
334 unsafe_put_user(0, &frame->uc.uc_link, Efault); in ia32_setup_rt_frame()
335 unsafe_compat_save_altstack(&frame->uc.uc_stack, regs->sp, Efault); in ia32_setup_rt_frame()
342 unsafe_put_user(ptr_to_compat(restorer), &frame->pretcode, Efault); in ia32_setup_rt_frame()
348 unsafe_put_user(*((u64 *)&code), (u64 __user *)frame->retcode, Efault); in ia32_setup_rt_frame()
349 unsafe_put_sigcontext32(&frame->uc.uc_mcontext, fp, regs, set, Efault); in ia32_setup_rt_frame()
350 unsafe_put_user(*(__u64 *)set, (__u64 *)&frame->uc.uc_sigmask, Efault); in ia32_setup_rt_frame()
353 if (__copy_siginfo_to_user32(&frame->info, &ksig->info)) in ia32_setup_rt_frame()
357 regs->sp = (unsigned long) frame; in ia32_setup_rt_frame()
362 regs->dx = (unsigned long) &frame->info; in ia32_setup_rt_frame()
363 regs->cx = (unsigned long) &frame->uc; in ia32_setup_rt_frame()