ARM: allow unwinder to unwind recursive functions
PATCH 1/1 ARM: allow unwinder to unwind recursive functions
Allow the unwinder to unwind recursive functions if the stack makes progress, even if the PC is the same. This allows tracing through recursive __switchdev_handle_port_attr_set() and similar.
Signed-off-by Russell King <[email protected]>
--- arch/arm/kernel/unwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/unwind.c +1 -1
@@ -444,7 +444,7 @@ int unwind_frame(struct stackframe *frame) ctrl.vrs[PC ] = ctrl.vrs[LR ];/* check for infinite loop */ -if (frame->pc == ctrl.vrs[PC ]) +if (frame->pc == ctrl.vrs[PC ] && frame->sp == ctrl.vrs[SP ])return -URC_FAILURE ; frame->fp = ctrl.vrs[FP ];
Signature · 7 lines
2.20.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel