powerpc/tm: do not use r13 for tabort_syscall
authorNicholas Piggin <npiggin@gmail.com>
Mon, 25 Jul 2016 04:26:51 +0000 (14:26 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 29 Aug 2016 02:47:56 +0000 (12:47 +1000)
commitcc7786d3ee7e3c979799db834b528db2c0834c2e
tree5983f225848f30047b2f61ec6c04c7d779a302ac
parent7c379526d7e71d2041c8ca0bd9af4888916a14b9
powerpc/tm: do not use r13 for tabort_syscall

tabort_syscall runs with RI=1, so a nested recoverable machine
check will load the paca into r13 and overwrite what we loaded
it with, because exceptions returning to privileged mode do not
restore r13.

Fixes: b4b56f9ecab4 (powerpc/tm: Abort syscalls in active transactions)
Cc: stable@vger.kernel.org
Signed-off-by: Nick Piggin <npiggin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/entry_64.S