module: Disable matching missing version CRC
authorBen Hutchings <ben@decadent.org.uk>
Fri, 2 Dec 2016 23:06:18 +0000 (23:06 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 9 Apr 2021 18:17:58 +0000 (19:17 +0100)
Forwarded: not-needed

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 908d46abe1656e8ebb330cda4f7cca97bfe34d8a..95e798144de43fb0bbd3fa0915c211368251e798 100644 (file)
@@ -1339,9 +1339,8 @@ static int check_version(const struct load_info *info,
                goto bad_version;
        }
 
-       /* Broken toolchain. Warn once, then let it go.. */
-       pr_warn_once("%s: no symbol version for %s\n", info->name, symname);
-       return 1;
+       pr_warn("%s: no symbol version for %s\n", info->name, symname);
+       return 0;
 
 bad_version:
        pr_warn("%s: disagrees about version of symbol %s\n",