diff options
-rw-r--r-- | arch/x86/kernel/alternative.c | 3 | ||||
-rw-r--r-- | arch/x86/kernel/ftrace.c | 3 | ||||
-rw-r--r-- | arch/x86/kernel/traps.c | 1 | ||||
-rw-r--r-- | kernel/rcu/tree.c | 2 |
4 files changed, 7 insertions, 2 deletions
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index ebeac487a20c..e8b628b1b279 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/stop_machine.h> | 11 | #include <linux/stop_machine.h> |
12 | #include <linux/slab.h> | 12 | #include <linux/slab.h> |
13 | #include <linux/kdebug.h> | 13 | #include <linux/kdebug.h> |
14 | #include <linux/kprobes.h> | ||
14 | #include <asm/text-patching.h> | 15 | #include <asm/text-patching.h> |
15 | #include <asm/alternative.h> | 16 | #include <asm/alternative.h> |
16 | #include <asm/sections.h> | 17 | #include <asm/sections.h> |
@@ -764,8 +765,8 @@ int poke_int3_handler(struct pt_regs *regs) | |||
764 | regs->ip = (unsigned long) bp_int3_handler; | 765 | regs->ip = (unsigned long) bp_int3_handler; |
765 | 766 | ||
766 | return 1; | 767 | return 1; |
767 | |||
768 | } | 768 | } |
769 | NOKPROBE_SYMBOL(poke_int3_handler); | ||
769 | 770 | ||
770 | /** | 771 | /** |
771 | * text_poke_bp() -- update instructions on live kernel on SMP | 772 | * text_poke_bp() -- update instructions on live kernel on SMP |
diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c index 8257a59704ae..3e3789c8f8e1 100644 --- a/arch/x86/kernel/ftrace.c +++ b/arch/x86/kernel/ftrace.c | |||
@@ -269,7 +269,7 @@ int ftrace_update_ftrace_func(ftrace_func_t func) | |||
269 | return ret; | 269 | return ret; |
270 | } | 270 | } |
271 | 271 | ||
272 | static int is_ftrace_caller(unsigned long ip) | 272 | static nokprobe_inline int is_ftrace_caller(unsigned long ip) |
273 | { | 273 | { |
274 | if (ip == ftrace_update_func) | 274 | if (ip == ftrace_update_func) |
275 | return 1; | 275 | return 1; |
@@ -299,6 +299,7 @@ int ftrace_int3_handler(struct pt_regs *regs) | |||
299 | 299 | ||
300 | return 1; | 300 | return 1; |
301 | } | 301 | } |
302 | NOKPROBE_SYMBOL(ftrace_int3_handler); | ||
302 | 303 | ||
303 | static int ftrace_write(unsigned long ip, const char *val, int size) | 304 | static int ftrace_write(unsigned long ip, const char *val, int size) |
304 | { | 305 | { |
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index 9b7c4ca8f0a7..e289ce1332ab 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c | |||
@@ -111,6 +111,7 @@ void ist_enter(struct pt_regs *regs) | |||
111 | /* This code is a bit fragile. Test it. */ | 111 | /* This code is a bit fragile. Test it. */ |
112 | RCU_LOCKDEP_WARN(!rcu_is_watching(), "ist_enter didn't work"); | 112 | RCU_LOCKDEP_WARN(!rcu_is_watching(), "ist_enter didn't work"); |
113 | } | 113 | } |
114 | NOKPROBE_SYMBOL(ist_enter); | ||
114 | 115 | ||
115 | void ist_exit(struct pt_regs *regs) | 116 | void ist_exit(struct pt_regs *regs) |
116 | { | 117 | { |
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 9180158756d2..74db52a0a466 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -62,6 +62,7 @@ | |||
62 | #include <linux/suspend.h> | 62 | #include <linux/suspend.h> |
63 | #include <linux/ftrace.h> | 63 | #include <linux/ftrace.h> |
64 | #include <linux/tick.h> | 64 | #include <linux/tick.h> |
65 | #include <linux/kprobes.h> | ||
65 | 66 | ||
66 | #include "tree.h" | 67 | #include "tree.h" |
67 | #include "rcu.h" | 68 | #include "rcu.h" |
@@ -872,6 +873,7 @@ void rcu_nmi_enter(void) | |||
872 | { | 873 | { |
873 | rcu_nmi_enter_common(false); | 874 | rcu_nmi_enter_common(false); |
874 | } | 875 | } |
876 | NOKPROBE_SYMBOL(rcu_nmi_enter); | ||
875 | 877 | ||
876 | /** | 878 | /** |
877 | * rcu_irq_enter - inform RCU that current CPU is entering irq away from idle | 879 | * rcu_irq_enter - inform RCU that current CPU is entering irq away from idle |