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.
Signed-off-by: Christophe Leroy <redacted>
---
arch/powerpc/kernel/entry_32.S | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2021-08-20 12:15:19
Christophe Leroy [off-list ref] 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?
cheers
quoted hunk
This is not a performance critical path but this should be fixed for
consistency.
Signed-off-by: Christophe Leroy <redacted>
---
arch/powerpc/kernel/entry_32.S | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
On Fri, Aug 20, 2021 at 10:15:11PM +1000, Michael Ellerman wrote:
Christophe Leroy [off-list ref] writes:
quoted
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?
On Fri, Aug 20, 2021 at 12:18:45PM -0500, Segher Boessenkool wrote:
On Fri, Aug 20, 2021 at 10:15:11PM +1000, Michael Ellerman wrote:
quoted
Christophe Leroy [off-list ref] writes:
quoted
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.
7450 and later, that is. Will I ever get that right, sigh.
Segher
From: Michael Ellerman <hidden> Date: 2021-08-27 13:22:45
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.
[...]