Re: [PATCH 3/4] powerpc/tm: Unset MSR[TS] if not recheckpointing

2018-12-07 Thread Michal Suchánek
On Mon, 26 Nov 2018 18:12:00 -0200 Breno Leitao wrote: > There is a TM Bad Thing bug that can be caused when you return from a > signal context in a suspended transaction but with ucontext MSR[TS] unset. > > This forces regs->msr[TS] to be set at syscall entrance (since the CPU > state is

[PATCH 3/4] powerpc/tm: Unset MSR[TS] if not recheckpointing

2018-11-26 Thread Breno Leitao
There is a TM Bad Thing bug that can be caused when you return from a signal context in a suspended transaction but with ucontext MSR[TS] unset. This forces regs->msr[TS] to be set at syscall entrance (since the CPU state is transactional). It also calls treclaim() to flush the transaction state,