[PATCH] powerpc/32: indirect function call use bctrl rather than blrl in ret_from_kernel_thread

Segher Boessenkool segher at kernel.crashing.org
Sat Aug 21 03:18:45 AEST 2021


On Fri, Aug 20, 2021 at 10:15:11PM +1000, Michael Ellerman wrote:
> Christophe Leroy <christophe.leroy at csgroup.eu> writes:
> > Copied from commit 89bbe4c798bc ("powerpc/64: indirect function call
> > use bctrl rather than blrl in ret_from_kernel_thread")
> >
> > blrl is not recommended to use as an indirect function call, as it may
> > corrupt the link stack predictor.
> 
> Do we know if any 32-bit CPUs have a link stack predictor or similar?

74xx do.


Segher


More information about the Linuxppc-dev mailing list