Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix modpost failures in fedora 17

commit e88aa7b upstream.

The symbol table on x86-64 starts to have entries that have names


They are of type STT_FUNCTION and this one had a length of 18.  This
matched the device ID validation logic and it barfed because the
length did not meet the device type's criteria.

FATAL: arch/x86/crypto/aesni-intel: sizeof(struct x86cpu_device_id)=16 is not a modulo of the size of section __mod_x86cpu_device_table=18.
Fix definition of struct x86cpu_device_id in mod_devicetable.h

These are some kind of compiler tool internal stuff being emitted and
not something we want to inspect in modpost's device ID table
validation code.

So skip the symbol if it is not of type STT_OBJECT.

Signed-off-by: David S. Miller <>
Acked-by: Sam Ravnborg <>
Signed-off-by: Michal Marek <>
Signed-off-by: Jonathan Nieder <>
Signed-off-by: Ben Hutchings <>
  • Loading branch information...
commit a4177cb05f096ac09ec13cca378e649d5e697b2b 1 parent 50d52a1
@davem330 davem330 authored koenkooi committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 scripts/mod/file2alias.c
4 scripts/mod/file2alias.c
@@ -926,6 +926,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,
if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections)
+ /* We're looking for an object */
+ if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT)
+ return;
/* Handle all-NULL symbols allocated into .bss */
if (info->sechdrs[get_secindex(info, sym)].sh_type & SHT_NOBITS) {
zeros = calloc(1, sym->st_size);
Please sign in to comment.
Something went wrong with that request. Please try again.