powerpc/tm: Fix stack pointer corruption in __tm_recheckpoint

Michael Ellerman mpe at ellerman.id.au
Wed Jul 6 22:27:21 AEST 2016

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 guaranteed not to take any further SLB misses.
> Signed-off-by: Michael Neuling <mikey at neuling.org>
> Acked-by: Cyril Bur <cyrilbur at gmail.com>
> Cc: stable at vger.kernel.org # v3.9+

Applied to powerpc fixes, thanks.



More information about the Linuxppc-dev mailing list