Re: powerpc/tm: Fix stack pointer corruption in __tm_recheckpoint

2016-07-06 Thread Michael Ellerman
On Wed, 2016-06-07 at 04:58:06 UTC, Michael Neuling wrote: > At the start of __tm_recheckpoint we save the kernel stack pointer > (r1) in SPRG SCRATCH0 (SPRG2) so that we can restore it after the > trecheckpoint. ... > > This patches moves the saving of r1 to the SPRG to the region where we > are

[PATCH] powerpc/tm: Fix stack pointer corruption in __tm_recheckpoint

2016-07-05 Thread Michael Neuling
At the start of __tm_recheckpoint we save the kernel stack pointer (r1) in SPRG SCRATCH0 (SPRG2) so that we can restore it after the trecheckpoint. Unfortunately, the same SPRG is used in the SLB miss handler. If an SLB miss is taken between the save and restore of r1 to the SPRG, the SPRG is cha