]> git.baikalelectronics.ru Git - kernel.git/commit
livepatch/module: remove livepatch module notifier
authorJessica Yu <jeyu@redhat.com>
Thu, 17 Mar 2016 00:55:39 +0000 (20:55 -0400)
committerJiri Kosina <jkosina@suse.cz>
Thu, 17 Mar 2016 08:45:10 +0000 (09:45 +0100)
commit410ee7ed43efde0e7c27f5d7ae7963baf16e0df3
treef8c4366009b357842b8b17b3bfddbfc3b634ff40
parent27b55834ab909ad9fd89fb75d1471522a7a7934a
livepatch/module: remove livepatch module notifier

Remove the livepatch module notifier in favor of directly enabling and
disabling patches to modules in the module loader. Hard-coding the
function calls ensures that ftrace_module_enable() is run before
klp_module_coming() during module load, and that klp_module_going() is
run before ftrace_release_mod() during module unload. This way, ftrace
and livepatch code is run in the correct order during the module
load/unload sequence without dependence on the module notifier call chain.

Signed-off-by: Jessica Yu <jeyu@redhat.com>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
include/linux/livepatch.h
kernel/livepatch/core.c
kernel/module.c