]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
module: Wait for RCU synchronizing before releasing a module
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Sun, 9 Nov 2014 22:56:29 +0000 (09:26 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 11 Nov 2014 06:37:44 +0000 (17:07 +1030)
commit4f48795b6154852d07d971e402c35ecc460ddcb6
tree65ae9d457d88034c8105d1a94082653b90ca88d2
parent0df1f2487d2f0d04703f142813d53615d62a1da4
module: Wait for RCU synchronizing before releasing a module

Wait for RCU synchronizing on failure path of module loading
before releasing struct module, because the memory of mod->list
can still be accessed by list walkers (e.g. kallsyms).

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c