[PATCH 1/2] kprobe: fix: Add _ASM_NOKPROBE to x86 apic interrupt macro
From: Francis Deslauriers
Date: Fri Jul 14 2017 - 11:08:54 EST
Adding a Kprobe on the apic_timer_interrupt symbol can lead to a kernel
crash.
This symbol is defined by the apicinterrupt3 macro and adding the symbol
to the kprobe blacklist in this macro prevents this issue.
Signed-off-by: Francis Deslauriers <francis.deslauriers@xxxxxxxxxxxx>
---
arch/x86/entry/entry_64.S | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
index 4a4c083..67cf702 100644
--- a/arch/x86/entry/entry_64.S
+++ b/arch/x86/entry/entry_64.S
@@ -659,6 +659,7 @@ ENTRY(\sym)
interrupt \do_sym
jmp ret_from_intr
END(\sym)
+_ASM_NOKPROBE(\sym)
.endm
#ifdef CONFIG_TRACING
--
2.7.4