Commit 65e234ec2c4a0659ca22531dc1372a185f088517

Authored by Masami Hiramatsu
Committed by Frederic Weisbecker
1 parent 8222d718b3

kprobes: Prohibit to probe native_get_debugreg

Since do_debug() calls get_debugreg(), native_get_debugreg() will be
called from singlestepping. This can cause an int3 infinite loop.

We can't put it in the .text.kprobes section because it is inlined,
then we blacklist its name.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <20090827172332.8246.34194.stgit@localhost.localdomain>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -90,6 +90,7 @@
90 90 */
91 91 static struct kprobe_blackpoint kprobe_blacklist[] = {
92 92 {"preempt_schedule",},
  93 + {"native_get_debugreg",},
93 94 {NULL} /* Terminator */
94 95 };
95 96