Roger Pau Monne writes ("[PATCH v2 for-4.8] libelf: fix symtab/strtab loading for 32bit domains"): > Commit ed04ca introduced a bug in the symtab/strtab loading for 32bit > guests, that corrupted the section headers array due to the padding > introduced by the elf_shdr union. > > The Elf section header array on 32bit should be accessible as an array of > Elf32_Shdr elements, and the union with Elf64_Shdr done in elf_shdr was > breaking this due to size differences between Elf32_Shdr and Elf64_Shdr. > > Fix this by copying each section header one by one, and using the proper > size depending on the bitness of the guest kernel. While there, also fix > elf_parse_bsdsyms so that it takes into account the size of the elf_ehdr > struct instead of the native Elf header size. > > Reported-by: Brian Marcotte <marco...@panix.com> > Signed-off-by: Roger Pau Monné <roger....@citrix.com>
Acked-by: Ian Jackson <ian.jack...@eu.citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel