Thread (14 messages) 14 messages, 4 authors, 2012-10-18
STALE4975d

[PATCH 2/2] ARM: unwind: enable dumping stacks for SMP && ARM_UNWIND

From: Russell King - ARM Linux <hidden>
Date: 2012-10-12 09:08:07

On Sun, Aug 26, 2012 at 03:46:56PM -0700, Colin Cross wrote:
Unwinding with CONFIG_ARM_UNWIND is much more complicated than
unwinding with CONFIG_FRAME_POINTER, but there are only a few points
that require validation in order to avoid faults or infinite loops.
Avoiding faults is easy by adding checks to verify that all accesses
relative to the frame's stack pointer remain inside the stack.

When CONFIG_FRAME_POINTER is not set it is possible for two frames to
have the same SP, so there is no way to avoid repeated calls to
unwind_frame continuing forever.
So here you admit that this patch can cause the unwinder to loop forever,
which would provide no way out of that.  Why do you think this patch is
suitable for mainline with such a problem?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help