diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2016-11-17 07:04:58 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-11-17 07:48:39 +0100 |
commit | f4474c9f0bba17857b1a47c8dc89c07a0845c2b2 (patch) | |
tree | 57dc79aef94b80fe95c0a96f26908057ddc0b79d /include/asm-generic/bitsperlong.h | |
parent | x86/copy_user: Unify the code by removing the 64-bit asm _copy_*_user() variants (diff) | |
download | linux-f4474c9f0bba17857b1a47c8dc89c07a0845c2b2.tar.xz linux-f4474c9f0bba17857b1a47c8dc89c07a0845c2b2.zip |
x86/dumpstack: Handle NULL stack pointer in show_trace_log_lvl()
When show_trace_log_lvl() is called from show_regs(), it completely
fails to dump the stack. This bug was introduced when
show_stack_log_lvl() was removed with the following commit:
0ee1dd9f5e7e ("x86/dumpstack: Remove raw stack dump")
Previous callers of that function now call show_trace_log_lvl()
directly. That resulted in a subtle change, in that the 'stack'
argument can now be NULL in certain cases.
A NULL 'stack' pointer means that the stack dump should start from the
topmost stack frame unless 'regs' is valid, in which case it should
start from 'regs->sp'.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: 0ee1dd9f5e7e ("x86/dumpstack: Remove raw stack dump")
Link: http://lkml.kernel.org/r/c551842302a9c222d96a14e42e4003f059509f69.1479362652.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/asm-generic/bitsperlong.h')
0 files changed, 0 insertions, 0 deletions