diff options
author | Miroslav Benes <mbenes@suse.cz> | 2018-06-05 15:59:21 +0200 |
---|---|---|
committer | Miroslav Benes <mbenes@suse.cz> | 2018-06-06 18:55:21 +0200 |
commit | 01b4468a079a96bc8ac351b9189ea93f4c79b016 (patch) | |
tree | ceaa81b09f6d07051e35fc9815fa1dff836fbe1a | |
parent | 14a2e1214f14a8f7a5a098aa8487fd5d36da6458 (diff) | |
download | linux-klp_deny_rmmod_v1.tar.gz |
module: Remove superfluous call to klp_module_going()klp_deny_rmmod_v1
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>
-rw-r--r-- | kernel/module.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index a6e43a5806a11..af29a0d3708f3 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1019,7 +1019,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(); |