Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d993ccb authored by Linus Torvalds's avatar Linus Torvalds
Browse files
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
parents 45820c29 758556bd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3557,6 +3557,7 @@ static int load_module(struct load_info *info, const char __user *uargs,
	mutex_lock(&module_mutex);
	/* Unlink carefully: kallsyms could be walking list. */
	list_del_rcu(&mod->list);
	mod_tree_remove(mod);
	wake_up_all(&module_wq);
	/* Wait for RCU-sched synchronizing before releasing mod->list. */
	synchronize_sched();