Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 587827 Details for
Bug 825944
32 bit rawhide kernel can't load modules: "Accessing a corrupted shared library" (ELIBBAD)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix REL table digestion
modsign-fix-REL-handling.patch (text/plain), 1.41 KB, created by
David Howells
on 2012-05-30 19:33:57 UTC
(
hide
)
Description:
Fix REL table digestion
Filename:
MIME Type:
Creator:
David Howells
Created:
2012-05-30 19:33:57 UTC
Size:
1.41 KB
patch
obsolete
>commit a5ca2e0eb4b0250436e7c4ad2c6fe5ad082ec993 >Author: David Howells <dhowells@redhat.com> >Date: Wed May 30 20:31:27 2012 +0100 > >MODSIGN: Interpret REL table parameters properly > >Interpret REL table parameters properly in extract_elf_rel(), in particular >determine the symbol table correctly. Making that part of the code the same >as in extract_elf_rela() does the job. > >Signed-off-by: David Howells <dhowells@redhat.com> > >diff --git a/kernel/module-verify.c b/kernel/module-verify.c >index 3b0f5ec..cbee21c 100644 >--- a/kernel/module-verify.c >+++ b/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 }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 825944
: 587827