Re: [PATCH v4 13/16] x86/dumpstack: Try harder to get a call trace on stack overflow

From: Andy Lutomirski
Date: Sun Jun 26 2016 - 13:00:32 EST


On Fri, Jun 24, 2016 at 8:35 AM, Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
> On Thu, Jun 23, 2016 at 09:23:08PM -0700, Andy Lutomirski wrote:
>> If we overflow the stack, print_context_stack will abort. Detect
>> this case and rewind back into the valid part of the stack so that
>> we can trace it.
>>
>> Signed-off-by: Andy Lutomirski <luto@xxxxxxxxxx>
>
> Reviewed-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
>

FWIW, I'm making a trivial change here for v4: task->stack ->
task_stack_page(task). Since it seems inconsequential, I'm keeping
your reviewed-by.

> --
> Josh



--
Andy Lutomirski
AMA Capital Management, LLC