On Fri, 3 Sep 2021 22:57:06 +1000, Nicholas Piggin wrote: > If a system call is made with a transaction active, the kernel > immediately aborts it and returns. scv system calls disable irqs even > earlier in their interrupt handler, and tabort_syscall does not fix this > up. > > This can result in irq soft-mask state being messed up on the next > kernel entry, and crashing at BUG_ON(arch_irq_disabled_regs(regs)) in > the kernel exit handlers, or possibly worse. > > [...]
Applied to powerpc/fixes. [1/2] powerpc/64s: system call scv tabort fix for corrupt irq soft-mask state https://git.kernel.org/powerpc/c/b871895b148256f1721bc565d803860242755a0b [2/2] selftests/powerpc: Add scv versions of the basic TM syscall tests https://git.kernel.org/powerpc/c/5379ef2a60431232b9bb01c6d3580b875123d723 cheers