summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/unwind.h
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2016-12-16 10:05:06 -0600
committerThomas Gleixner <tglx@linutronix.de>2016-12-19 11:47:05 +0100
commit8b5e99f02264130782a10ba5c0c759797fb064ee (patch)
tree827075dc8ee236295639917752650c96df2884e9 /arch/x86/include/asm/unwind.h
parent8023e0e2a48d45e8d5363081fad9f7ed4402f953 (diff)
downloadlinux-8b5e99f02264130782a10ba5c0c759797fb064ee.tar.gz
linux-8b5e99f02264130782a10ba5c0c759797fb064ee.tar.bz2
linux-8b5e99f02264130782a10ba5c0c759797fb064ee.zip
x86/unwind: Dump stack data on warnings
The unwinder warnings are good at finding unexpected unwinder issues, but they often don't give enough data to be able to fully diagnose them. Print a one-time stack dump when a warning is detected. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Andy Lutomirski <luto@amacapital.net> Link: http://lkml.kernel.org/r/15607370e3ddb1732b6a73d5c65937864df16ac8.1481904011.git.jpoimboe@redhat.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/include/asm/unwind.h')
-rw-r--r--arch/x86/include/asm/unwind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/unwind.h b/arch/x86/include/asm/unwind.h
index c5a7f3a930dd..6fa75b17aec3 100644
--- a/arch/x86/include/asm/unwind.h
+++ b/arch/x86/include/asm/unwind.h
@@ -12,7 +12,7 @@ struct unwind_state {
struct task_struct *task;
int graph_idx;
#ifdef CONFIG_FRAME_POINTER
- unsigned long *bp;
+ unsigned long *bp, *orig_sp;
struct pt_regs *regs;
#else
unsigned long *sp;