Lines Matching refs:failed

104 		unsafe_put_user(val, &frame->mc_gregs[i], failed);  in __unsafe_save_general_regs()
108 failed: in __unsafe_save_general_regs()
121 unsafe_get_user(gregs[i], &sr->mc_gregs[i], failed); in __unsafe_restore_general_regs()
125 failed: in __unsafe_restore_general_regs()
148 unsafe_copy_to_user(&frame->mc_gregs, regs, GP_REGS_SIZE, failed); in __unsafe_save_general_regs()
151 failed: in __unsafe_save_general_regs()
159 unsafe_copy_from_user(regs, &sr->mc_gregs, PT_MSR * sizeof(elf_greg_t), failed); in __unsafe_restore_general_regs()
163 GP_REGS_SIZE - PT_ORIG_R3 * sizeof(elf_greg_t), failed); in __unsafe_restore_general_regs()
167 failed: in __unsafe_restore_general_regs()
273 unsafe_save_general_regs(regs, frame, failed); in __unsafe_save_user_regs()
279 ELF_NVRREG * sizeof(vector128), failed); in __unsafe_save_user_regs()
293 failed); in __unsafe_save_user_regs()
295 unsafe_copy_fpr_to_user(&frame->mc_fregs, current, failed); in __unsafe_save_user_regs()
310 unsafe_copy_vsx_to_user(&frame->mc_vsregs, current, failed); in __unsafe_save_user_regs()
318 ELF_NEVRREG * sizeof(u32), failed); in __unsafe_save_user_regs()
327 (u32 __user *)&frame->mc_vregs + ELF_NEVRREG, failed); in __unsafe_save_user_regs()
330 unsafe_put_user(msr, &frame->mc_gregs[PT_MSR], failed); in __unsafe_save_user_regs()
336 unsafe_put_user(0, &tm_frame->mc_gregs[PT_MSR], failed); in __unsafe_save_user_regs()
340 failed: in __unsafe_save_user_regs()
371 unsafe_save_general_regs(&current->thread.ckpt_regs, frame, failed); in save_tm_user_regs_unsafe()
372 unsafe_save_general_regs(regs, tm_frame, failed); in save_tm_user_regs_unsafe()
380 unsafe_put_user((msr >> 32), &tm_frame->mc_gregs[PT_MSR], failed); in save_tm_user_regs_unsafe()
385 ELF_NVRREG * sizeof(vector128), failed); in save_tm_user_regs_unsafe()
389 ELF_NVRREG * sizeof(vector128), failed); in save_tm_user_regs_unsafe()
393 ELF_NVRREG * sizeof(vector128), failed); in save_tm_user_regs_unsafe()
407 (u32 __user *)&frame->mc_vregs[32], failed); in save_tm_user_regs_unsafe()
410 (u32 __user *)&tm_frame->mc_vregs[32], failed); in save_tm_user_regs_unsafe()
413 (u32 __user *)&tm_frame->mc_vregs[32], failed); in save_tm_user_regs_unsafe()
415 unsafe_copy_ckfpr_to_user(&frame->mc_fregs, current, failed); in save_tm_user_regs_unsafe()
417 unsafe_copy_fpr_to_user(&tm_frame->mc_fregs, current, failed); in save_tm_user_regs_unsafe()
419 unsafe_copy_ckfpr_to_user(&tm_frame->mc_fregs, current, failed); in save_tm_user_regs_unsafe()
428 unsafe_copy_ckvsx_to_user(&frame->mc_vsregs, current, failed); in save_tm_user_regs_unsafe()
430 unsafe_copy_vsx_to_user(&tm_frame->mc_vsregs, current, failed); in save_tm_user_regs_unsafe()
432 unsafe_copy_ckvsx_to_user(&tm_frame->mc_vsregs, current, failed); in save_tm_user_regs_unsafe()
437 unsafe_put_user(msr, &frame->mc_gregs[PT_MSR], failed); in save_tm_user_regs_unsafe()
441 failed: in save_tm_user_regs_unsafe()
480 unsafe_restore_general_regs(regs, sr, failed); in restore_user_regs()
482 unsafe_get_user(msr, &sr->mc_gregs[PT_MSR], failed); in restore_user_regs()
499 sizeof(sr->mc_vregs), failed); in restore_user_regs()
506 unsafe_get_user(current->thread.vrsave, (u32 __user *)&sr->mc_vregs[32], failed); in restore_user_regs()
510 unsafe_copy_fpr_from_user(current, &sr->mc_fregs, failed); in restore_user_regs()
523 unsafe_copy_vsx_from_user(current, &sr->mc_vsregs, failed); in restore_user_regs()
546 sizeof(current->thread.spe), failed); in restore_user_regs()
552 unsafe_get_user(current->thread.spefscr, (u32 __user *)&sr->mc_vregs + ELF_NEVRREG, failed); in restore_user_regs()
558 failed: in restore_user_regs()
588 unsafe_restore_general_regs(&current->thread.ckpt_regs, sr, failed); in restore_tm_user_regs()
589 unsafe_get_user(current->thread.tm_tfhar, &sr->mc_gregs[PT_NIP], failed); in restore_tm_user_regs()
590 unsafe_get_user(msr, &sr->mc_gregs[PT_MSR], failed); in restore_tm_user_regs()
599 sizeof(sr->mc_vregs), failed); in restore_tm_user_regs()
610 (u32 __user *)&sr->mc_vregs[32], failed); in restore_tm_user_regs()
616 unsafe_copy_fpr_from_user(current, &sr->mc_fregs, failed); in restore_tm_user_regs()
624 unsafe_copy_ckvsx_from_user(current, &sr->mc_vsregs, failed); in restore_tm_user_regs()
637 unsafe_restore_general_regs(regs, tm_sr, failed); in restore_tm_user_regs()
642 sizeof(sr->mc_vregs), failed); in restore_tm_user_regs()
646 (u32 __user *)&tm_sr->mc_vregs[32], failed); in restore_tm_user_regs()
648 unsafe_copy_ckfpr_from_user(current, &tm_sr->mc_fregs, failed); in restore_tm_user_regs()
655 unsafe_copy_vsx_from_user(current, &tm_sr->mc_vsregs, failed); in restore_tm_user_regs()
660 unsafe_get_user(msr_hi, &tm_sr->mc_gregs[PT_MSR], failed); in restore_tm_user_regs()
711 failed: in restore_tm_user_regs()
760 unsafe_put_user(0, &frame->uc.uc_flags, failed); in handle_rt_signal32()
762 unsafe_compat_save_altstack(&frame->uc.uc_stack, regs->gpr[1], failed); in handle_rt_signal32()
764 unsafe_save_altstack(&frame->uc.uc_stack, regs->gpr[1], failed); in handle_rt_signal32()
766 unsafe_put_user(to_user_ptr(&frame->uc.uc_mcontext), &frame->uc.uc_regs, failed); in handle_rt_signal32()
771 &frame->uc.uc_link, failed); in handle_rt_signal32()
773 &frame->uc_transact.uc_regs, failed); in handle_rt_signal32()
775 unsafe_save_tm_user_regs(regs, mctx, tm_mctx, msr, failed); in handle_rt_signal32()
777 unsafe_put_user(0, &frame->uc.uc_link, failed); in handle_rt_signal32()
778 unsafe_save_user_regs(regs, mctx, tm_mctx, 1, failed); in handle_rt_signal32()
786 unsafe_put_user(PPC_RAW_LI(_R0, __NR_rt_sigreturn), &mctx->mc_pad[0], failed); in handle_rt_signal32()
787 unsafe_put_user(PPC_RAW_SC(), &mctx->mc_pad[1], failed); in handle_rt_signal32()
790 unsafe_put_sigset_t(&frame->uc.uc_sigmask, oldset, failed); in handle_rt_signal32()
820 failed: in handle_rt_signal32()
863 unsafe_put_user(to_user_ptr(ksig->ka.sa.sa_handler), &sc->handler, failed); in handle_signal32()
864 unsafe_put_user(oldset->sig[0], &sc->oldmask, failed); in handle_signal32()
866 unsafe_put_user((oldset->sig[0] >> 32), &sc->_unused[3], failed); in handle_signal32()
868 unsafe_put_user(oldset->sig[1], &sc->_unused[3], failed); in handle_signal32()
870 unsafe_put_user(to_user_ptr(mctx), &sc->regs, failed); in handle_signal32()
871 unsafe_put_user(ksig->sig, &sc->signal, failed); in handle_signal32()
874 unsafe_save_tm_user_regs(regs, mctx, tm_mctx, msr, failed); in handle_signal32()
876 unsafe_save_user_regs(regs, mctx, tm_mctx, 1, failed); in handle_signal32()
882 unsafe_put_user(PPC_RAW_LI(_R0, __NR_sigreturn), &mctx->mc_pad[0], failed); in handle_signal32()
883 unsafe_put_user(PPC_RAW_SC(), &mctx->mc_pad[1], failed); in handle_signal32()
908 failed: in handle_signal32()
925 unsafe_get_sigset_t(&set, &ucp->uc_sigmask, failed); in do_setcontext()
930 unsafe_get_user(cmcp, &ucp->uc_regs, failed); in do_setcontext()
934 unsafe_get_user(mcp, &ucp->uc_regs, failed); in do_setcontext()
944 failed: in do_setcontext()
963 unsafe_get_sigset_t(&set, &ucp->uc_sigmask, failed); in do_setcontext_tm()
964 unsafe_get_user(cmcp, &ucp->uc_regs, failed); in do_setcontext_tm()
980 failed: in do_setcontext_tm()
1053 unsafe_save_user_regs(regs, mctx, NULL, ctx_has_vsx_region, failed); in COMPAT_SYSCALL_DEFINE3()
1054 unsafe_put_sigset_t(&old_ctx->uc_sigmask, &current->blocked, failed); in COMPAT_SYSCALL_DEFINE3()
1055 unsafe_put_user(to_user_ptr(mctx), &old_ctx->uc_regs, failed); in COMPAT_SYSCALL_DEFINE3()
1083 failed: in COMPAT_SYSCALL_DEFINE3()