module: Disable matching missing version CRC
authorBen Hutchings <ben@decadent.org.uk>
Fri, 2 Dec 2016 23:06:18 +0000 (23:06 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Sep 2017 17:27:56 +0000 (18:27 +0100)
This partly reverts commit cd3caefb4663e3811d37cc2afad3cce642d60061.
We want to fail closed if a symbol version CRC is missing, as the
alternative may allow subverting module signing.

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name module-disable-matching-missing-version-crc.patch

kernel/module.c

index 129db6ce6752aa65791f7744afc2c9d6bcde776f..e45b8b84f928bfffe814fb571d684bb90be5d388 100644 (file)
@@ -1301,9 +1301,8 @@ static int check_version(Elf_Shdr *sechdrs,
                goto bad_version;
        }
 
-       /* Broken toolchain. Warn once, then let it go.. */
-       pr_warn_once("%s: no symbol version for %s\n", mod->name, symname);
-       return 1;
+       pr_warn("%s: no symbol version for %s\n", mod->name, symname);
+       return 0;
 
 bad_version:
        pr_warn("%s: disagrees about version of symbol %s\n",