]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9467e2f30a157148281a8f96a89a15cbb4c00b2e
tree5983f225848f30047b2f61ec6c04c7d779a302ac
parente098a631ab85a0359609c10d662099b7f943f8c8
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: ed717485df32 (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