]> git.baikalelectronics.ru Git - kernel.git/commit
prevent boosting kprobes on exception address
authorMasami Hiramatsu <mhiramat@redhat.com>
Mon, 16 Mar 2009 22:57:22 +0000 (18:57 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Mar 2009 16:11:48 +0000 (09:11 -0700)
commitb8160176f40e8c961c9c0c41f2049d22bf8af4c3
tree8466b965fee089fdafceaeaaf785fdea288b4bbd
parentce46eb8b21c58acb12911e7c3a08f2e360db3d5a
prevent boosting kprobes on exception address

Don't boost at the addresses which are listed on exception tables,
because major page fault will occur on those addresses.  In that case,
kprobes can not ensure that when instruction buffer can be freed since
some processes will sleep on the buffer.

kprobes-ia64 already has same check.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/kprobes.c