diff options
Diffstat (limited to 'arch/powerpc/kernel/signal_64.c')
-rw-r--r-- | arch/powerpc/kernel/signal_64.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/signal_64.c b/arch/powerpc/kernel/signal_64.c index 7e49984d4331..70409bb90a95 100644 --- a/arch/powerpc/kernel/signal_64.c +++ b/arch/powerpc/kernel/signal_64.c | |||
@@ -676,7 +676,21 @@ int sys_rt_sigreturn(unsigned long r3, unsigned long r4, unsigned long r5, | |||
676 | if (__copy_from_user(&set, &uc->uc_sigmask, sizeof(set))) | 676 | if (__copy_from_user(&set, &uc->uc_sigmask, sizeof(set))) |
677 | goto badframe; | 677 | goto badframe; |
678 | set_current_blocked(&set); | 678 | set_current_blocked(&set); |
679 | |||
679 | #ifdef CONFIG_PPC_TRANSACTIONAL_MEM | 680 | #ifdef CONFIG_PPC_TRANSACTIONAL_MEM |
681 | /* | ||
682 | * If there is a transactional state then throw it away. | ||
683 | * The purpose of a sigreturn is to destroy all traces of the | ||
684 | * signal frame, this includes any transactional state created | ||
685 | * within in. We only check for suspended as we can never be | ||
686 | * active in the kernel, we are active, there is nothing better to | ||
687 | * do than go ahead and Bad Thing later. | ||
688 | * The cause is not important as there will never be a | ||
689 | * recheckpoint so it's not user visible. | ||
690 | */ | ||
691 | if (MSR_TM_SUSPENDED(mfmsr())) | ||
692 | tm_reclaim_current(0); | ||
693 | |||
680 | if (__get_user(msr, &uc->uc_mcontext.gp_regs[PT_MSR])) | 694 | if (__get_user(msr, &uc->uc_mcontext.gp_regs[PT_MSR])) |
681 | goto badframe; | 695 | goto badframe; |
682 | if (MSR_TM_ACTIVE(msr)) { | 696 | if (MSR_TM_ACTIVE(msr)) { |