]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b5a6e4dfd04831ea45168d17534b6f4db36774c
tree8c2805794d1fe5f4ad53a49ee45c66d5910f3c9b
parent4e4a08c91ee660cb7563d06315d3a7db588a7da2
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: 4033ada53ff1 ("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