• Keshavamurthy Anil S's avatar
    [PATCH] kprobes: fix unloading of self probed module · df019b1d
    Keshavamurthy Anil S authored
    When a kprobes modules is written in such a way that probes are inserted on
    itself, then unload of that moudle was not possible due to reference
    couning on the same module.
    
    The below patch makes a check and incrementes the module refcount only if
    it is not a self probed module.
    
    We need to allow modules to probe themself for kprobes performance
    measurements
    
    This patch has been tested on several x86_64, ppc64 and IA64 architectures.
    
    Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy>
    Signed-off-by: 's avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: 's avatarLinus Torvalds <torvalds@osdl.org>
    df019b1d
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
usr Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...