mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "K.Prasad" <prasad@linux.vnet.ibm.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Roland McGrath <roland@redhat.com>,
	Alan Stern <stern@rowland.harvard.edu>,
	Ananth N Mavinakayanahalli <ananth@in.ibm.com>,
	Pekka Enberg <penberg@cs.helsinki.fi>,
	Vegard Nossum <vegardno@ifi.uio.no>,
	Oleg Nesterov <oleg@redhat.com>
Subject: [RFC Patch 0/2][Bugfix][x86][hw-breakpoint] Bugfixes for hw_breakpoint_handler
Date: Sat, 26 Dec 2009 23:55:19 +0530	[thread overview]
Message-ID: <20091226182519.GA9494@in.ibm.com> (raw)

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


                 reply	other threads:[~2009-12-26 18:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091226182519.GA9494@in.ibm.com \
    --to=prasad@linux.vnet.ibm.com \
    --cc=ananth@in.ibm.com \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=oleg@redhat.com \
    --cc=penberg@cs.helsinki.fi \
    --cc=roland@redhat.com \
    --cc=stern@rowland.harvard.edu \
    --cc=vegardno@ifi.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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