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

Florian Rommel posted 2 patches 1 year, 5 months ago
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(-)
[PATCH v2 0/2] kgdb: x86: fix breakpoint removal problems
Posted by Florian Rommel 1 year, 5 months ago
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/20240811232208.234261-1-mail@florommel.de/

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(-)

-- 
2.46.0