Skip to content

RFC arm64 kgdb fixes for single stepping

[email protected] linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arm64: Pass registers to all single-step handling routinesarch/arm64/include/asm/debug-monitors.h arch/arm64/kernel/debug-monitors.c arch/arm64/kernel/hw_breakpoint.c +2 more+12 -120 replies
2/2arm64:kgdb: Fix kernel single-steppingarch/arm64/include/asm/ptrace.h arch/arm64/kernel/asm-offsets.c arch/arm64/kernel/debug-monitors.c +2 more+31 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] arm64 kgdb fixes for single stepping

I got a bug report about using kgdb on arm64, and it turns out it was fairly broken. Patch 2 has a description of what was going on. I am using a Marvell 8100 board.

The following patches fix the problem, but probably not in the best way. They are what I hacked out to show the problems.

I am not quite sure how this will interact with kprobes and hardware breakpoints which use the same code, but they would have been broken, too, so this is not making them any worse.