]> Git Repo - linux.git/commit
x86/unwinder: Handle stack overflows more gracefully
authorJosh Poimboeuf <[email protected]>
Mon, 4 Dec 2017 14:07:09 +0000 (15:07 +0100)
committerIngo Molnar <[email protected]>
Sun, 17 Dec 2017 12:59:52 +0000 (13:59 +0100)
commitb02fcf9ba1211097754b286043cd87a8b4907e75
tree9e14f3ad84e19475866cfbef770ebb78fcee2341
parentd3a09104018cf2ad5973dfa8a9c138ef9f5015a3
x86/unwinder: Handle stack overflows more gracefully

There are at least two unwinder bugs hindering the debugging of
stack-overflow crashes:

- It doesn't deal gracefully with the case where the stack overflows and
  the stack pointer itself isn't on a valid stack but the
  to-be-dereferenced data *is*.

- The ORC oops dump code doesn't know how to print partial pt_regs, for the
  case where if we get an interrupt/exception in *early* entry code
  before the full pt_regs have been saved.

Fix both issues.

http://lkml.kernel.org/r/20171126024031.uxi4numpbjm5rlbr@treble

Signed-off-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Borislav Petkov <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Boris Ostrovsky <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: David Laight <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: Eduardo Valentin <[email protected]>
Cc: Greg KH <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Juergen Gross <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/include/asm/kdebug.h
arch/x86/include/asm/unwind.h
arch/x86/kernel/dumpstack.c
arch/x86/kernel/process_64.c
arch/x86/kernel/unwind_orc.c
This page took 0.046322 seconds and 4 git commands to generate.