Skip to content

Commit 9d993cc

Browse files
committed
Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
Pull module fix from Rusty Russell: "Single fix: missing rbtree removal in the module load failure path. Easy to trigger with bad params. Thanks to Peter Zijlstra and Arthur Marsh for going around on this one" * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux: module: Fix load_module() error path
2 parents 45820c2 + 758556b commit 9d993cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3557,6 +3557,7 @@ static int load_module(struct load_info *info, const char __user *uargs,
35573557
mutex_lock(&module_mutex);
35583558
/* Unlink carefully: kallsyms could be walking list. */
35593559
list_del_rcu(&mod->list);
3560+
mod_tree_remove(mod);
35603561
wake_up_all(&module_wq);
35613562
/* Wait for RCU-sched synchronizing before releasing mod->list. */
35623563
synchronize_sched();

0 commit comments

Comments
 (0)