Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 52796312 authored by Zhou Chengming's avatar Zhou Chengming Committed by Jessica Yu
Browse files

module: fix ddebug_remove_module()


ddebug_remove_module() use mod->name to find the ddebug_table of the
module and remove it. But dynamic_debug_setup() use the first
_ddebug->modname to create ddebug_table for the module. It's ok when
the _ddebug->modname is the same with the mod->name.

But livepatch module is special, it may contain _ddebugs of other
modules, the modname of which is different from the name of livepatch
module. So ddebug_remove_module() can't use mod->name to find the
right ddebug_table and remove it. It can cause kernel crash when we cat
the file <debugfs>/dynamic_debug/control.

Signed-off-by: default avatarZhou Chengming <zhouchengming1@huawei.com>
Signed-off-by: default avatarJessica Yu <jeyu@kernel.org>
parent 4fd3e4ef
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