]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita33393b1da3853af776dad455503bd429b6c5c44
tree9e0faa1eca3f840f7e51dc50016697f26585acd2
parentc71118555bb0dec770fc472e6d3c8f3af37371ff
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 cf139ca31085 ("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