public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] kgdb: x86: fix breakpoint removal problems
@ 2024-08-12 17:43 Florian Rommel
  2024-08-12 17:43 ` [PATCH v2 1/2] x86/kgdb: convert early breakpoints to poke breakpoints Florian Rommel
  2024-08-12 17:43 ` [PATCH v2 2/2] x86/kgdb: fix hang on failed breakpoint removal Florian Rommel
  0 siblings, 2 replies; 14+ messages in thread
From: Florian Rommel @ 2024-08-12 17:43 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
	H . Peter Anvin, Jason Wessel, Daniel Thompson, Douglas Anderson,
	Lorena Kretzschmar, Stefan Saecherl, Peter Zijlstra,
	Christophe JAILLET, Randy Dunlap, Masami Hiramatsu, Andrew Morton,
	Christophe Leroy, Geert Uytterhoeven, kgdb-bugreport, x86,
	linux-kernel
  Cc: Florian Rommel

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


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

end of thread, other threads:[~2024-08-16 11:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 17:43 [PATCH v2 0/2] kgdb: x86: fix breakpoint removal problems Florian Rommel
2024-08-12 17:43 ` [PATCH v2 1/2] x86/kgdb: convert early breakpoints to poke breakpoints Florian Rommel
2024-08-12 18:54   ` Thomas Gleixner
2024-08-12 17:43 ` [PATCH v2 2/2] x86/kgdb: fix hang on failed breakpoint removal Florian Rommel
2024-08-12 21:04   ` Thomas Gleixner
2024-08-13 11:31     ` Daniel Thompson
2024-08-13 15:06       ` Florian Rommel
2024-08-13 16:21       ` Thomas Gleixner
2024-08-14  8:51         ` [PATCH WIP] x86/kgdb: trampolines for shadowed instructions Florian Rommel
2024-08-14 10:29           ` Daniel Thompson
2024-08-14 13:52             ` Thomas Gleixner
2024-08-15 19:51           ` kernel test robot
2024-08-16 11:12           ` kernel test robot
2024-08-13 15:05     ` [PATCH v2 2/2] x86/kgdb: fix hang on failed breakpoint removal Florian Rommel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox