Commit 758556bd authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Rusty Russell

module: Fix load_module() error path

The load_module() error path frees a module but forgot to take it out
of the mod_tree, leaving a dangling entry in the tree, causing havoc.

Cc: Mathieu Desnoyers <>
Reported-by: default avatarArthur Marsh <>
Tested-by: default avatarArthur Marsh <>
Fixes: 93c2e105 ("module: Optimize __module_address() using a latched RB-tree")
Signed-off-by: default avatarPeter Zijlstra (Intel) <>
Signed-off-by: default avatarRusty Russell <>
parent 45820c29
......@@ -3557,6 +3557,7 @@ static int load_module(struct load_info *info, const char __user *uargs,
/* Unlink carefully: kallsyms could be walking list. */
/* Wait for RCU-sched synchronizing before releasing mod->list. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment