mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Maneesh Soni <maneesh@in.ibm.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: Setting kernel data breakpoints on x86
Date: Wed, 2 Nov 2005 12:44:39 +0530	[thread overview]
Message-ID: <20051102071438.GA5050@in.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0511011625280.4473-100000@iolanthe.rowland.org>

On Tue, Nov 01, 2005 at 04:30:26PM -0500, Alan Stern wrote:
> I'm trying to debug a rather difficult data-overwriting problem, and it 
> would be a big help to be able to use a data breakpoint.
> 
> Is there any easy way of doing this?  I'd prefer not to use a kernel 
> debugger, because the address of the breakpoint and the time when it's 
> needed are determined dynamically.
> 
> Does anybody have a little lightweight procedure for setting one of the 
> x86's debug registers to point to a particular location in kernel memory 
> space?  I don't care if the whole system crashes when the debug exception 
> occurs, just so long as I can get a stack trace and find out where the 
> overwrite comes from.
> 
> 

Hi Alan

Probably watchpoint probes could be useful for this..

http://www.ussg.iu.edu/hypermail/linux/kernel/0508.3/1407.html

http://sourceware.org/ml/systemtap/2005-q3/msg00097.html

Thanks
Maneesh

-- 
Maneesh Soni
Linux Technology Center, 
IBM India Software Labs,
Bangalore, India
email: maneesh@in.ibm.com
Phone: 91-80-25044990

  reply	other threads:[~2005-11-02  7:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-01 21:30 Alan Stern
2005-11-02  7:14 ` Maneesh Soni [this message]
2005-11-02 16:26   ` Alan Stern

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=20051102071438.GA5050@in.ibm.com \
    --to=maneesh@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /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