From: Mathias Krause Date: Tue, 2 Jul 2013 06:05:11 +0000 (+0930) Subject: module: don't modify argument of module_kallsyms_lookup_name() X-Git-Tag: v3.11-rc1~44^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f6de4d51f4a3ab06a85e91e708cc89a513ef30c;p=pandora-kernel.git 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 Signed-off-by: Rusty Russell --- Reading git-diff-tree failed