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, 29 Sep 2023 04:25:15 +0000 (05:25 +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 72a5dcdccf7b1d462fd75d1c066b483412c53b0c..6d9052fb7ad39d2346dca8a1d9291f7a7f05a021 100644 (file)
@@ -1343,9 +1343,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",