This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: breakpoint assistance: single-step out of line
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Roland McGrath <roland at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: 16 Mar 2007 10:09:31 -0400
- Subject: Re: breakpoint assistance: single-step out of line
- References: <20070304213811.A6E181801C4@magilla.sf.frob.com>
Roland McGrath <roland@redhat.com> writes:
> The method of single-stepping over an out of line copy of the
> instruction clobbered by breakpoint insertion has been proven by
> kprobes. The complexities are mitigated in that implementation by
> the constrained context of the kernel and the fixed subset of
> possible machine code known to validly occur in any kernel or module
> text.
Another important aspect is that userspace may be hostile. Beyond
just containing oddball instruction sequences, it may deliberately
rewrite its own .text, or otherwise interfere with probing in order to
produce crashes or security breaches.
- FChE