This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
history of one ia64 kprobes patch
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: systemtap at sources dot redhat dot com
- Date: Thu, 29 Mar 2007 20:21:05 -0400
- Subject: history of one ia64 kprobes patch
Hi -
Once upon a time, about two years ago, a patch went into the kernel
for rejecting some kprobes placements in ia64.
http://tinyurl.com/ywwcsr
Signed-off-by: Rusty Lynch <rusty.ly...@intel.com>
arch/ia64/kernel/kprobes.c | 7 +++++++
1 files changed, 7 insertions(+)
Index: linux-2.6.12-mm1/arch/ia64/kernel/kprobes.c
===================================================================
--- linux-2.6.12-mm1.orig/arch/ia64/kernel/kprobes.c
+++ linux-2.6.12-mm1/arch/ia64/kernel/kprobes.c
@@ -270,6 +270,13 @@ static int valid_kprobe_addr(int templat
addr);
return -EINVAL;
}
+
+ if (slot == 1 && bundle_encoding[template][1] != L) {
+ printk(KERN_WARNING "Inserting kprobes on slot #1 "
+ "is not supported\n");
+ return -EINVAL;
+ }
+
return 0;
}
This test is in RHEL5 (inherited from 2.6.18), but does not appear in
the current git tree, and I can't seem to find when/why it came back
out.
(This is related to Red Hat bug #207107, for those of you RHers
playing along at home.)
- FChE