# Re: \[PATCH\] powerpc/32: indirect function call use bctrl rather than blrl in ret\_from\_kernel\_thread

- From: Michael Ellerman \<hidden\>
- Date: 2021-08-27 13:22:45 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/08/1490561
- Thread: https://ratatoskr.run/linuxppc-dev/2021/08/1483549/t.md

```text
On Fri, 20 Aug 2021 05:16:05 +0000 (UTC), Christophe Leroy wrote:
> 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.
> 
> This is not a performance critical path but this should be fixed for
> consistency.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/32: indirect function call use bctrl rather than blrl in ret_from_kernel_thread
      https://git.kernel.org/powerpc/c/113ec9ccc8049c3772f0eab46b62c5d6654c09f7

cheers
```
