]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] kprobes: fix bug when probed on task and isr functions
authorKeshavamurthy Anil S <anil.s.keshavamurthy@intel.com>
Tue, 6 Sep 2005 22:19:35 +0000 (15:19 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:58:01 +0000 (16:58 -0700)
commitdeac66ae454cacf942c051b86d9232af546fb187
tree17a72e7a2dcf2d1a93a6afdef661f290b1888f1c
parentbce0649417d6e71f6df8ab7b11103d247913b142
[PATCH] kprobes: fix bug when probed on task and isr functions

This patch fixes a race condition where in system used to hang or sometime
crash within minutes when kprobes are inserted on ISR routine and a task
routine.

The fix has been stress tested on i386, ia64, pp64 and on x86_64.  To
reproduce the problem insert kprobes on schedule() and do_IRQ() functions
and you should see hang or system crash.

Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Acked-by: Prasanna S Panchamukhi <prasanna@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/kprobes.c
arch/ia64/kernel/kprobes.c
arch/ppc64/kernel/kprobes.c
arch/x86_64/kernel/kprobes.c
include/asm-ia64/kprobes.h
include/asm-ppc64/kprobes.h
kernel/kprobes.c