]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
kprobes: Use kernel_text_address() for checking probe address
authorMasami Hiramatsu <mhiramat@redhat.com>
Tue, 28 Jul 2009 23:47:23 +0000 (19:47 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 30 Jul 2009 23:44:06 +0000 (16:44 -0700)
commitec30c5f3a18722f8fcf8c83146a10b03ac4d9ff1
treefc343f7f608f4db5475abfdc8bbad3b0cfef69fd
parent90a09c9cf78344d18e2438c3b87363b949629fa3
kprobes: Use kernel_text_address() for checking probe address

Use kernel_text_address() for checking probe address instead of
__kernel_text_address(), because __kernel_text_address() returns true
for init functions even after relaseing those functions.

That will hit a BUG() in text_poke().

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