|
@@ -307,26 +307,6 @@ int unregister_module_notifier(struct notifier_block *nb)
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(unregister_module_notifier);
|
|
EXPORT_SYMBOL(unregister_module_notifier);
|
|
|
|
|
|
-struct load_info {
|
|
|
|
- const char *name;
|
|
|
|
- /* pointer to module in temporary copy, freed at end of load_module() */
|
|
|
|
- struct module *mod;
|
|
|
|
- Elf_Ehdr *hdr;
|
|
|
|
- unsigned long len;
|
|
|
|
- Elf_Shdr *sechdrs;
|
|
|
|
- char *secstrings, *strtab;
|
|
|
|
- unsigned long symoffs, stroffs;
|
|
|
|
- struct _ddebug *debug;
|
|
|
|
- unsigned int num_debug;
|
|
|
|
- bool sig_ok;
|
|
|
|
-#ifdef CONFIG_KALLSYMS
|
|
|
|
- unsigned long mod_kallsyms_init_off;
|
|
|
|
-#endif
|
|
|
|
- struct {
|
|
|
|
- unsigned int sym, str, mod, vers, info, pcpu;
|
|
|
|
- } index;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* We require a truly strong try_module_get(): 0 means success.
|
|
* We require a truly strong try_module_get(): 0 means success.
|
|
* Otherwise an error is returned due to ongoing or failed
|
|
* Otherwise an error is returned due to ongoing or failed
|
|
@@ -2778,7 +2758,7 @@ static int module_sig_check(struct load_info *info, int flags)
|
|
memcmp(mod + info->len - markerlen, MODULE_SIG_STRING, markerlen) == 0) {
|
|
memcmp(mod + info->len - markerlen, MODULE_SIG_STRING, markerlen) == 0) {
|
|
/* We truncate the module to discard the signature */
|
|
/* We truncate the module to discard the signature */
|
|
info->len -= markerlen;
|
|
info->len -= markerlen;
|
|
- err = mod_verify_sig(mod, &info->len);
|
|
|
|
|
|
+ err = mod_verify_sig(mod, info);
|
|
}
|
|
}
|
|
|
|
|
|
if (!err) {
|
|
if (!err) {
|