linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] arm64: unwind: fix broken exception stack dump
@ 2017-07-24 11:26 Ard Biesheuvel
  2017-07-24 11:26 ` [PATCH 1/4] arm64: avoid percpu indirection for irq stack ops Ard Biesheuvel
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Ard Biesheuvel @ 2017-07-24 11:26 UTC (permalink / raw)
  To: linux-arm-kernel

This fixes an issue in the code that dumps the exception stack. As it
turns out, it doesn't display what we think it does. Please refer to
patch #3 for the details.

Patches #1 and #2 are preparatory patches. Patch #4 removes the sp
member from struct stackframe because it is broken and no longer
needed after patch #3.

Mark and I ran into this issue while working on the vmapped stacks code,
and so these changes are now prerequisites for it, especially given how
dealing with multiple stacks is simplified by these changes.

Ard Biesheuvel (3):
  arm64: unwind: disregard frame.sp when validating frame pointer
  arm64: unwind: reference pt_regs via embedded stack frame
  arm64: unwind: remove sp from struct stackframe

Mark Rutland (1):
  arm64: avoid percpu indirection for irq stack ops

 arch/arm64/include/asm/irq.h        | 39 +++++----------
 arch/arm64/include/asm/ptrace.h     |  1 +
 arch/arm64/include/asm/stacktrace.h |  1 -
 arch/arm64/kernel/asm-offsets.c     |  1 +
 arch/arm64/kernel/entry.S           | 16 +++---
 arch/arm64/kernel/perf_callchain.c  |  1 -
 arch/arm64/kernel/process.c         |  5 +-
 arch/arm64/kernel/ptrace.c          |  2 +-
 arch/arm64/kernel/return_address.c  |  1 -
 arch/arm64/kernel/stacktrace.c      | 51 ++------------------
 arch/arm64/kernel/time.c            |  1 -
 arch/arm64/kernel/traps.c           | 29 ++---------
 12 files changed, 33 insertions(+), 115 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-07-25 13:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-24 11:26 [PATCH 0/4] arm64: unwind: fix broken exception stack dump Ard Biesheuvel
2017-07-24 11:26 ` [PATCH 1/4] arm64: avoid percpu indirection for irq stack ops Ard Biesheuvel
2017-07-24 11:26 ` [PATCH 2/4] arm64: unwind: disregard frame.sp when validating frame pointer Ard Biesheuvel
2017-07-24 11:26 ` [PATCH 3/4] arm64: unwind: reference pt_regs via embedded stack frame Ard Biesheuvel
2017-07-24 17:54   ` Mark Rutland
2017-07-24 18:34     ` Ard Biesheuvel
2017-07-24 19:09       ` Ard Biesheuvel
2017-07-25  9:53         ` Mark Rutland
2017-07-25 10:07           ` Ard Biesheuvel
2017-07-25 13:13     ` Will Deacon
2017-07-25 13:58       ` Mark Rutland
2017-07-24 11:26 ` [PATCH 4/4] arm64: unwind: remove sp from struct stackframe Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).