From: Andi Kleen Date: Tue, 26 Sep 2006 08:52:34 +0000 (+0200) Subject: [PATCH] i386: Terminate backtrace fallback early if unwinder stack pointer is zero X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=950fee84557416a3427dd404a13addc4be7b3e6c;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [PATCH] i386: Terminate backtrace fallback early if unwinder stack pointer is zero Cc: jbeulich@novell.com Signed-off-by: Andi Kleen --- diff --git a/arch/i386/kernel/traps.c b/arch/i386/kernel/traps.c index 4ced4285163b..86fa7e47f301 100644 --- a/arch/i386/kernel/traps.c +++ b/arch/i386/kernel/traps.c @@ -197,6 +197,8 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs, if (UNW_SP(&info) >= PAGE_OFFSET) { ops->warning(data, "Leftover inexact backtrace:\n"); stack = (void *)UNW_SP(&info); + if (!stack) + return; } else ops->warning(data, "Full inexact backtrace again:\n"); } else if (call_trace >= 1)