提交 7816c45b 编写于 作者: R Roland Vossen 提交者: Greg Kroah-Hartman

modules: Enabled dynamic debugging for staging modules

Driver modules from the staging directory are marked 'tainted'
by module.c. Subsequently, tainted modules are denied dynamic
debugging. This is unwanted behavior, since staging modules should
be able to use the dynamic debugging mechanism.

Please merge this also into the staging-linus branch.
Signed-off-by: NRoland Vossen <rvossen@broadcom.com>
Acked-by: NJason Baron <jbaron@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 cb63e4c9
...@@ -2790,7 +2790,7 @@ static struct module *load_module(void __user *umod, ...@@ -2790,7 +2790,7 @@ static struct module *load_module(void __user *umod,
} }
/* This has to be done once we're sure module name is unique. */ /* This has to be done once we're sure module name is unique. */
if (!mod->taints) if (!mod->taints || mod->taints == (1U<<TAINT_CRAP))
dynamic_debug_setup(info.debug, info.num_debug); dynamic_debug_setup(info.debug, info.num_debug);
/* Find duplicate symbols */ /* Find duplicate symbols */
...@@ -2827,7 +2827,7 @@ static struct module *load_module(void __user *umod, ...@@ -2827,7 +2827,7 @@ static struct module *load_module(void __user *umod,
module_bug_cleanup(mod); module_bug_cleanup(mod);
ddebug: ddebug:
if (!mod->taints) if (!mod->taints || mod->taints == (1U<<TAINT_CRAP))
dynamic_debug_remove(info.debug); dynamic_debug_remove(info.debug);
unlock: unlock:
mutex_unlock(&module_mutex); mutex_unlock(&module_mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册