]> git.baikalelectronics.ru Git - 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)
commit7795ba720b3c6c5a4324fe923b6ef2e814088f7e
tree65ae9d457d88034c8105d1a94082653b90ca88d2
parent07f3e0931c7df93ad87c2836ee1d7614860e3ab2
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