OSDN Git Service

x86/dumpstack: Add a show_ip() function
authorBorislav Petkov <bp@suse.de>
Tue, 17 Apr 2018 16:11:22 +0000 (18:11 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 26 Apr 2018 14:15:27 +0000 (16:15 +0200)
commit7cccf0725cf7402514e09c52b089430005798b7f
treee47f08bcdbdd8be700811f4d6c75062a8aac251d
parentba54d856a9d8a9c56b87e20c88602b7e3cb568fb
x86/dumpstack: Add a show_ip() function

... which shows the Instruction Pointer along with the insn bytes around
it. Use it whenever rIP is printed. Drop the rIP < PAGE_OFFSET check since
probe_kernel_read() can handle any address properly.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Link: https://lkml.kernel.org/r/20180417161124.5294-8-bp@alien8.de
arch/x86/include/asm/stacktrace.h
arch/x86/kernel/dumpstack.c
arch/x86/kernel/process_32.c