aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/api/fs/tracing_path.c
diff options
context:
space:
mode:
authorZhou Chengming <[email protected]>2017-07-07 03:15:58 +0000
committerJessica Yu <[email protected]>2017-07-25 13:08:32 +0000
commit5279631271b32201243c60308a8987bd585e4460 (patch)
treeaadd8b14c39efbee509876d18f4a5a796a8d13c0 /tools/lib/api/fs/tracing_path.c
parentmodpost: abort if module name is too long (diff)
downloadkernel-5279631271b32201243c60308a8987bd585e4460.tar.gz
kernel-5279631271b32201243c60308a8987bd585e4460.zip
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: Zhou Chengming <[email protected]> Signed-off-by: Jessica Yu <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions