history of one ia64 kprobes patch
Frank Ch. Eigler
fche@redhat.com
Fri Mar 30 00:21:00 GMT 2007
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
More information about the Systemtap
mailing list