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>
Sat, 21 Jan 2023 14:35:48 +0000 (14: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 6a0fd245c04832ad95d12aecfa3204ecddab7bb0..00288f6c169517b5e0ffd76fa9911834cf345853 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",