diff options
author | Masami Hiramatsu | 2009-09-08 18:47:55 +0200 |
---|---|---|
committer | Frederic Weisbecker | 2009-09-11 03:59:35 +0200 |
commit | a00e817f42663941ea0aa5f85a9d1c4f8b212839 (patch) | |
tree | 40d2f5e86bf58e4250066fa8cb606a8157e9019b /kernel/kprobes.c | |
parent | x86: Add MMX support for instruction decoder (diff) | |
download | kernel-qcow2-linux-a00e817f42663941ea0aa5f85a9d1c4f8b212839.tar.gz kernel-qcow2-linux-a00e817f42663941ea0aa5f85a9d1c4f8b212839.tar.xz kernel-qcow2-linux-a00e817f42663941ea0aa5f85a9d1c4f8b212839.zip |
kprobes/x86-32: Move irq-exit functions to kprobes section
Move irq-exit functions to .kprobes.text section to protect against
kprobes recursion.
When I ran kprobe stress test on x86-32, I found below symbols
cause unrecoverable recursive probing:
ret_from_exception
ret_from_intr
check_userspace
restore_all
restore_all_notrace
restore_nocheck
irq_return
And also, I found some interrupt/exception entry points that
cause similar problems.
This patch moves those symbols (including their container functions)
to .kprobes.text section to prevent any kprobes probing.
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Jim Keniston <jkenisto@us.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <20090908164755.24050.81182.stgit@dhcp-100-2-132.bos.redhat.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'kernel/kprobes.c')
-rw-r--r-- | kernel/kprobes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 3267d90bc9d6..00d01b0f9fee 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -91,6 +91,8 @@ static spinlock_t *kretprobe_table_lock_ptr(unsigned long hash) static struct kprobe_blackpoint kprobe_blacklist[] = { {"preempt_schedule",}, {"native_get_debugreg",}, + {"irq_entries_start",}, + {"common_interrupt",}, {NULL} /* Terminator */ }; |