powerpc/booke: Avoid link stack corruption in several places
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 24 Aug 2021 07:56:26 +0000 (07:56 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Aug 2021 03:35:47 +0000 (13:35 +1000)
commitf5007dbf4da729baa850b33a64dc3cc53757bdf8
tree9e0faa1eca3f840f7e51dc50016697f26585acd2
parent113ec9ccc8049c3772f0eab46b62c5d6654c09f7
powerpc/booke: Avoid link stack corruption in several places

Use bcl 20,31,+4 instead of bl in order to preserve link stack.

See commit c974809a26a1 ("powerpc/vdso: Avoid link stack corruption
in __get_datapage()") for details.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e9fbc285eceb720e6c0e032ef47fe8b05f669b48.1629791751.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/kernel/exceptions-64e.S
arch/powerpc/kernel/fsl_booke_entry_mapping.S
arch/powerpc/kernel/head_44x.S
arch/powerpc/kernel/head_fsl_booke.S
arch/powerpc/mm/nohash/tlb_low.S