Skip to content

kgdb: x86: fix breakpoint removal problems

Florian Rommel linux-mm lkml llvm oe-kbuild-all 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Add missing stub implementation for kgdb_after_mark_readonly in [1/2] when KGDB disabled
- Link to v1: https://lore.kernel.org/all/[email protected]/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/kgdb: convert early breakpoints to poke breakpointsarch/x86/kernel/kgdb.c include/linux/kgdb.h init/main.c +1 more+25 -11 reply
2/2x86/kgdb: fix hang on failed breakpoint removalarch/x86/kernel/kgdb.c+24 -08 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] kgdb: x86: fix breakpoint removal problems

This series fixes two problems with KGDB on x86 concerning the removal of breakpoints, causing the kernel to hang. Note that breakpoint removal is not only performed when explicitly deleting a breakpoint, but also happens before continuing execution or single stepping.

v2:
- Add missing stub implementation for kgdb_after_mark_readonly in [1/2] when KGDB disabled
- Link to v1: https://lore.kernel.org/all/[email protected]/

Florian Rommel (2):
x86/kgdb: convert early breakpoints to poke breakpoints x86/kgdb: fix hang on failed breakpoint removal

 arch/x86/kernel/kgdb.c    | 38 ++++++++++++++++++++++++++++++++++++++
 include/linux/kgdb.h      |  4 ++++
 init/main.c               |  1 +
 kernel/debug/debug_core.c |  7 ++++++-
 4 files changed, 49 insertions(+), 1 deletion(-)
Signature · 1 line
2.46.0