mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC Patch 0/2][Bugfix][x86][hw-breakpoint] Bugfixes for hw_breakpoint_handler
@ 2009-12-26 18:25 K.Prasad
  0 siblings, 0 replies; only message in thread
From: K.Prasad @ 2009-12-26 18:25 UTC (permalink / raw)
  To: LKML
  Cc: Ingo Molnar, Frederic Weisbecker, Roland McGrath, Alan Stern,
	Ananth N Mavinakayanahalli, Pekka Enberg, Vegard Nossum,
	Oleg Nesterov

Hi All,
	Please find a patchset of two patches that

Patch 1/2: Clears the arch-reserved bits from debug status register. This
helps easy bitwise operations - such as the check for non-trap bits in
hw_breakpoint_handler. A check for the same using
"if (dr6 & (~DR_TRAP_BITS))" throws incorrect results due to the 
presence of preset reserved bits.

This patch is copied to maintainers of code (such as kmemcheck, kprobe,
ptrace, etc) who make use of local dr6 value in do_debug() that verify
and handle exceptions.

Patch 2/2: Return NOTIFY_DONE from hw_breakpoint_handler() for user-space
breakpoints only (and not for kernel-space) since this could lead to
further processing in do_debug() with undesirable consequences.

Let me know if there are any concerns about the patch.

Thanks,
K.Prasad


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-26 18:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-26 18:25 [RFC Patch 0/2][Bugfix][x86][hw-breakpoint] Bugfixes for hw_breakpoint_handler K.Prasad

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

Powered by JetHome