|
@@ -19,6 +19,7 @@
|
|
#include <linux/uaccess.h>
|
|
#include <linux/uaccess.h>
|
|
#include <linux/hardirq.h>
|
|
#include <linux/hardirq.h>
|
|
#include <linux/kdebug.h>
|
|
#include <linux/kdebug.h>
|
|
|
|
+#include <linux/kprobes.h>
|
|
#include <linux/module.h>
|
|
#include <linux/module.h>
|
|
#include <linux/kexec.h>
|
|
#include <linux/kexec.h>
|
|
#include <linux/bug.h>
|
|
#include <linux/bug.h>
|
|
@@ -417,7 +418,8 @@ void unregister_undef_hook(struct undef_hook *hook)
|
|
raw_spin_unlock_irqrestore(&undef_lock, flags);
|
|
raw_spin_unlock_irqrestore(&undef_lock, flags);
|
|
}
|
|
}
|
|
|
|
|
|
-static int call_undef_hook(struct pt_regs *regs, unsigned int instr)
|
|
|
|
|
|
+static nokprobe_inline
|
|
|
|
+int call_undef_hook(struct pt_regs *regs, unsigned int instr)
|
|
{
|
|
{
|
|
struct undef_hook *hook;
|
|
struct undef_hook *hook;
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
@@ -490,6 +492,7 @@ die_sig:
|
|
|
|
|
|
arm_notify_die("Oops - undefined instruction", regs, &info, 0, 6);
|
|
arm_notify_die("Oops - undefined instruction", regs, &info, 0, 6);
|
|
}
|
|
}
|
|
|
|
+NOKPROBE_SYMBOL(do_undefinstr)
|
|
|
|
|
|
/*
|
|
/*
|
|
* Handle FIQ similarly to NMI on x86 systems.
|
|
* Handle FIQ similarly to NMI on x86 systems.
|