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>
Wed, 9 Feb 2022 08:35:55 +0000 (08:35 +0000)
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 84a9141a5e159a01642c6a67e4250e016de39797..3a36c3a82195a09c3bbcc426eac7de7af1c6bc84 100644 (file)
@@ -1276,9 +1276,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",