diff --git a/[refs] b/[refs] index a9ed54725b73..d3b2b10e81b7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: eded41c1c6466081e0eb00d38719c6e6ee81a5d4 +refs/heads/master: 511ca6ae43fbe0a7c9e0b50ad275f7ef24ef3b58 diff --git a/trunk/kernel/module.c b/trunk/kernel/module.c index 79c4d6f69dd7..60cdd0459eac 100644 --- a/trunk/kernel/module.c +++ b/trunk/kernel/module.c @@ -2045,7 +2045,8 @@ static void add_kallsyms(struct module *mod, struct load_info *info, mod->symtab = (void *)symsec->sh_addr; mod->num_symtab = symsec->sh_size / sizeof(Elf_Sym); - mod->strtab = info->strtab; + /* Make sure we get permanent strtab: don't use info->strtab. */ + mod->strtab = (void *)info->sechdrs[info->index.str].sh_addr; /* Set types up while we still have access to sections. */ for (i = 0; i < mod->num_symtab; i++)