Skip to content

arm64: kgdb/kdb: Fix single-step debugging issues

Wei Li linux-arm-kernel lkml 1 version Applied

Status from this message: Applied to arm64 (for-next/fixes), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 18 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4arm64: kgdb: Fix single-step exception handling oopsarch/arm64/kernel/kgdb.c+1 -11 reply
2/4arm64: Extract kprobes_save_local_irqflag() and kprobes_restore_local_irqflag()arch/arm64/include/asm/debug-monitors.h arch/arm64/kernel/debug-monitors.c arch/arm64/kernel/probes/kprobes.c+32 -265 replies
3/4arm64: kgdb: Fix single-stepping into the irq handler wronglyarch/arm64/kernel/kgdb.c+11 -21 reply
4/4arm64: kgdb: Set PSTATE.SS to 1 to reenable single-steparch/arm64/include/asm/debug-monitors.h arch/arm64/kernel/debug-monitors.c arch/arm64/kernel/kgdb.c+5 -22 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchMasami HiramatsuDouglas Anderson
1/4R-b T-b
2/4R-b
3/4
4/4R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] arm64: kgdb/kdb: Fix single-step debugging issues

This patch set is to fix several issues of single-step debugging in kgdb/kdb on arm64.

It seems that these issues have been shelved a very long time, but i still hope to solve them, as the single-step debugging is an useful feature.

Note:
Based on patch "arm64: cacheflush: Fix KGDB trap detection",
https://www.spinics.net/lists/arm-kernel/msg803741.html

Wei Li (4):
arm64: kgdb: Fix single-step exception handling oops
arm64: Extract kprobes_save_local_irqflag() and
kprobes_restore_local_irqflag()
arm64: kgdb: Fix single-stepping into the irq handler wrongly
arm64: kgdb: Set PSTATE.SS to 1 to reenable single-step

 arch/arm64/include/asm/debug-monitors.h |  6 ++++++
 arch/arm64/kernel/debug-monitors.c      | 28 ++++++++++++++++++++++++-
 arch/arm64/kernel/kgdb.c                | 16 +++++++++++---
 arch/arm64/kernel/probes/kprobes.c      | 28 ++-----------------------
 4 files changed, 48 insertions(+), 30 deletions(-)
Signature · 1 line
2.17.1