diff options
author | Josh Boyer <jwboyer@redhat.com> | 2012-07-18 14:04:10 -0400 |
---|---|---|
committer | Josh Boyer <jwboyer@redhat.com> | 2012-07-18 14:04:10 -0400 |
commit | 5a0e7f0b4568393f6db2f178f707e23bfc0d11ff (patch) | |
tree | 1cd6984c702a5c13e2cb09d8488df6699936e681 /modsign-fix-elf-rel.patch | |
parent | 5e516250e589dfa35f61bee2368387437acf5bd4 (diff) | |
download | kernel-5a0e7f0b4568393f6db2f178f707e23bfc0d11ff.tar.gz kernel-5a0e7f0b4568393f6db2f178f707e23bfc0d11ff.tar.xz kernel-5a0e7f0b4568393f6db2f178f707e23bfc0d11ff.zip |
Update modsign patch to latest upstream
Diffstat (limited to 'modsign-fix-elf-rel.patch')
-rw-r--r-- | modsign-fix-elf-rel.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/modsign-fix-elf-rel.patch b/modsign-fix-elf-rel.patch deleted file mode 100644 index bced16061..000000000 --- a/modsign-fix-elf-rel.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- a/kernel/module-verify.c -+++ a/kernel/module-verify.c -@@ -391,16 +391,19 @@ static int extract_elf_rel(struct module_verify_data *mvdata, - #endif - } __packed relocation; - -+ const Elf_Shdr *relsec, *symsec, *strsec; - const Elf_Rel *reloc; - const Elf_Sym *symbols, *symbol; - const char *strings; - unsigned long r_sym; - size_t nsyms, loop; - -- nsyms = mvdata->sections[secix].sh_size / sizeof(Elf_Sym); -- symbols = mvdata->buffer + mvdata->sections[secix].sh_offset; -- strings = mvdata->buffer + -- mvdata->sections[mvdata->sections[secix].sh_link].sh_offset; -+ relsec = &mvdata->sections[secix]; -+ symsec = &mvdata->sections[relsec->sh_link]; -+ strsec = &mvdata->sections[symsec->sh_link]; -+ nsyms = symsec->sh_size / sizeof(Elf_Sym); -+ symbols = mvdata->buffer + symsec->sh_offset; -+ strings = mvdata->buffer + strsec->sh_offset; - - /* Contribute the relevant bits from a join of - * { REL, SYMBOL, SECTION } |