* Setting kernel data breakpoints on x86
@ 2005-11-01 21:30 Alan Stern
2005-11-02 7:14 ` Maneesh Soni
0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2005-11-01 21:30 UTC (permalink / raw)
To: Kernel development list
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.
Alan Stern
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Setting kernel data breakpoints on x86
2005-11-01 21:30 Setting kernel data breakpoints on x86 Alan Stern
@ 2005-11-02 7:14 ` Maneesh Soni
2005-11-02 16:26 ` Alan Stern
0 siblings, 1 reply; 3+ messages in thread
From: Maneesh Soni @ 2005-11-02 7:14 UTC (permalink / raw)
To: Alan Stern; +Cc: Kernel development list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Setting kernel data breakpoints on x86
2005-11-02 7:14 ` Maneesh Soni
@ 2005-11-02 16:26 ` Alan Stern
0 siblings, 0 replies; 3+ messages in thread
From: Alan Stern @ 2005-11-02 16:26 UTC (permalink / raw)
To: Maneesh Soni; +Cc: Kernel development list
On Wed, 2 Nov 2005, Maneesh Soni wrote:
> 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
Hi Maneesh:
That's exactly what I was looking for. Thanks!
Alan Stern
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-11-02 16:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-01 21:30 Setting kernel data breakpoints on x86 Alan Stern
2005-11-02 7:14 ` Maneesh Soni
2005-11-02 16:26 ` Alan Stern
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