]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
kprobes: Calculate the index correctly when freeing the out-of-line execution slot
authorMasami Hiramatsu <mhiramat@redhat.com>
Tue, 9 Mar 2010 15:22:19 +0000 (10:22 -0500)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Mar 2010 13:06:16 +0000 (14:06 +0100)
commit83ff56f46a8532488ee364bb93a9cb2a59490d33
treeeacccd619d004b2578bc14e6049eb7c03aac8bb0
parenta12b51c478899fe0b7e874a559b05ba35f1128ee
kprobes: Calculate the index correctly when freeing the out-of-line execution slot

From : Ananth N Mavinakayanahalli <ananth@in.ibm.com>

When freeing the instruction slot, the arithmetic to calculate
the index of the slot in the page needs to account for the total
size of the instruction on the various architectures.

Calculate the index correctly when freeing the out-of-line
execution slot.

Reported-by: Sachin Sant <sachinp@in.ibm.com>
Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
LKML-Reference: <4B9667AB.9050507@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/kprobes.c