x86/dumpstack: Print registers for first stack frame
authorJosh Poimboeuf <jpoimboe@redhat.com>
Sun, 31 Dec 2017 16:18:07 +0000 (10:18 -0600)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Jan 2018 15:14:46 +0000 (16:14 +0100)
commit3ffdeb1a02be3086f1411a15c5b9c481fa28e21f
tree8c2805794d1fe5f4ad53a49ee45c66d5910f3c9b
parenta9cdbe72c4e8bf3b38781c317a79326e2e1a230d
x86/dumpstack: Print registers for first stack frame

In the stack dump code, if the frame after the starting pt_regs is also
a regs frame, the registers don't get printed.  Fix that.

Reported-by: Andy Lutomirski <luto@amacapital.net>
Tested-by: Alexander Tsoy <alexander@tsoy.me>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Toralf Förster <toralf.foerster@gmx.de>
Cc: stable@vger.kernel.org
Fixes: 3b3fa11bc700 ("x86/dumpstack: Print any pt_regs found on the stack")
Link: http://lkml.kernel.org/r/396f84491d2f0ef64eda4217a2165f5712f6a115.1514736742.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/dumpstack.c