x86/unwind: Show function name+offset in ORC error messages
authorJosh Poimboeuf <jpoimboe@redhat.com>
Fri, 20 Oct 2017 16:21:34 +0000 (11:21 -0500)
committerIngo Molnar <mingo@kernel.org>
Mon, 23 Oct 2017 11:30:36 +0000 (13:30 +0200)
commit58c3862b521ead4f69a24ef009a679cb3c519620
tree46690af4e8076e6a81b61ec2fe275ee7489b7400
parent98990a33b77dda9babf91cb235654f6729e5702e
x86/unwind: Show function name+offset in ORC error messages

Improve the warning messages to show the relevant function name+offset.
This makes it much easier to diagnose problems with the ORC metadata.

Before:

  WARNING: can't dereference iret registers at ffff8801c5f17fe0 for ip ffffffff95f0d94b

After:

  WARNING: can't dereference iret registers at ffff880178f5ffe0 for ip int3+0x5b/0x60

Reported-by: Andrei Vagin <avagin@virtuozzo.com>
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>
Fixes: ee9f8fce9964 ("x86/unwind: Add the ORC unwinder")
Link: http://lkml.kernel.org/r/6bada6b9eac86017e16bd79e1e77877935cb50bb.1508516398.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/unwind_orc.c