aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiroslav Benes <mbenes@suse.cz>2018-06-05 15:59:21 +0200
committerMiroslav Benes <mbenes@suse.cz>2019-09-27 14:55:38 +0200
commitdd9668458f4b19bd789699e25f89ea138c3ab5e9 (patch)
tree581caffb50e627bb309ca60ff54a16776074169c
parent7aa3fc260cf54a837a3e30564868402180bc9d60 (diff)
downloadlinux-klp_deny_rmmod_v2r1.tar.gz
module: Remove superfluous call to klp_module_going()klp_deny_rmmod_v2r1
Now that patched modules cannot suddenly disappear we could theoretically remove klp_module_going() altogether. Unfortunately we cannot do that in practice. Loading of a patched module may fail and we need to execute right the actions implemented in klp_module_going(). Remove the call from delete_module syscall though, because that one is really superfluous. Signed-off-by: Miroslav Benes <mbenes@suse.cz> Acked-by: Jessica Yu <jeyu@kernel.org>
-rw-r--r--kernel/module.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 32873bcce7380..76e91cdc8149a 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1023,7 +1023,6 @@ SYSCALL_DEFINE2(delete_module, const char __user *, name_user,
mod->exit();
blocking_notifier_call_chain(&module_notify_list,
MODULE_STATE_GOING, mod);
- klp_module_going(mod);
ftrace_release_mod(mod);
async_synchronize_full();