diff options
author | Mathias Krause <minipli@googlemail.com> | 2013-07-02 08:05:11 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-07-02 08:08:18 +0200 |
commit | 4f6de4d51f4a3ab06a85e91e708cc89a513ef30c (patch) | |
tree | 2cf8819fc71e7ec6fef2fc2487954aabc6b8a730 /tools | |
parent | modpost.c: Add .text.unlikely to TEXT_SECTIONS (diff) | |
download | linux-4f6de4d51f4a3ab06a85e91e708cc89a513ef30c.tar.xz linux-4f6de4d51f4a3ab06a85e91e708cc89a513ef30c.zip |
module: don't modify argument of module_kallsyms_lookup_name()
If we pass a pointer to a const string in the form "module:symbol"
module_kallsyms_lookup_name() will try to split the string at the colon,
i.e., will try to modify r/o data. That will, in fact, fail on a kernel
with enabled CONFIG_DEBUG_RODATA.
Avoid modifying the passed string in module_kallsyms_lookup_name(),
modify find_module_all() instead to pass it the module name length.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions