]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Kprobes: Reference count the modules when probed on it
authorMao, Bibo <bibo.mao@intel.com>
Mon, 12 Dec 2005 08:37:00 +0000 (00:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 12 Dec 2005 16:57:41 +0000 (08:57 -0800)
commitb3e55c727ff7349c5db722fbdb8d99a151e8e0bf
tree90d437e565082afe25d68e530e793faeab4b49ac
parent3fe968f167975d10c639f03c4934f05a29da73c0
[PATCH] Kprobes: Reference count the modules when probed on it

When a Kprobes are inserted/removed on a modules, the modules must be ref
counted so as not to allow to unload while probes are registered on that
module.

Without this patch, the probed module is free to unload, and when the
probing module unregister the probe, the kpobes code while trying to
replace the original instruction might crash.

Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Signed-off-by: Mao Bibo <bibo.mao@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/kprobes.c