Commit be7a9170 authored by Andi Kleen's avatar Andi Kleen Committed by Andi Kleen

[PATCH] Check for end of stack trace before falling back

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
parent c0b766f1
...@@ -292,6 +292,8 @@ void dump_trace(struct task_struct *tsk, struct pt_regs *regs, unsigned long * s ...@@ -292,6 +292,8 @@ void dump_trace(struct task_struct *tsk, struct pt_regs *regs, unsigned long * s
if ((long)UNW_SP(&info) < 0) { if ((long)UNW_SP(&info) < 0) {
ops->warning(data, "Leftover inexact backtrace:\n"); ops->warning(data, "Leftover inexact backtrace:\n");
stack = (unsigned long *)UNW_SP(&info); stack = (unsigned long *)UNW_SP(&info);
if (!stack)
return;
} else } else
ops->warning(data, "Full inexact backtrace again:\n"); ops->warning(data, "Full inexact backtrace again:\n");
} else if (call_trace >= 1) } else if (call_trace >= 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment