]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/unwind: Silence entry-related warnings
authorJosh Poimboeuf <jpoimboe@redhat.com>
Wed, 12 Apr 2017 18:47:12 +0000 (13:47 -0500)
committerIngo Molnar <mingo@kernel.org>
Fri, 14 Apr 2017 08:20:06 +0000 (10:20 +0200)
commita8b7a92318b6d7779f6d8e9aa6ba0e3de01a8943
tree6f71ebbdd24bbccb023f8d47b4c7a317b0658ba5
parent6bcdf9d51b9892dd5c6892d50cf5e9628efb8062
x86/unwind: Silence entry-related warnings

A few people have reported unwinder warnings like the following:

  WARNING: kernel stack frame pointer at ffffc90000fe7ff0 in rsync:1157 has bad value           (null)
  unwind stack type:0 next_sp:          (null) mask:2 graph_idx:0
  ffffc90000fe7f98ffffc90000fe7ff0 (0xffffc90000fe7ff0)
  ffffc90000fe7fa0ffffffffb7000f56 (trace_hardirqs_off_thunk+0x1a/0x1c)
  ffffc90000fe7fa80000000000000246 (0x246)
  ffffc90000fe7fb00000000000000000 ...
  ffffc90000fe7fc000007ffe3af639bc (0x7ffe3af639bc)
  ffffc90000fe7fc80000000000000006 (0x6)
  ffffc90000fe7fd000007f80af433fc5 (0x7f80af433fc5)
  ffffc90000fe7fd800007ffe3af638e0 (0x7ffe3af638e0)
  ffffc90000fe7fe000007ffe3af638e0 (0x7ffe3af638e0)
  ffffc90000fe7fe800007ffe3af63970 (0x7ffe3af63970)
  ffffc90000fe7ff00000000000000000 ...
  ffffc90000fe7ff8ffffffffb7b74b9a (entry_SYSCALL_64_after_swapgs+0x17/0x4f)

This warning can happen when unwinding a code path where an interrupt
occurred in x86 entry code before it set up the first stack frame.
Silently ignore any warnings for this case.

Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Reported-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
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>
Fixes: c32c47c68a0a ("x86/unwind: Warn on bad frame pointer")
Link: http://lkml.kernel.org/r/dbd6838826466a60dc23a52098185bc973ce2f1e.1492020577.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/unwind.h
arch/x86/kernel/unwind_frame.c