This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]