From: Ben Hutchings Date: Fri, 2 Dec 2016 23:06:18 +0000 (+0000) Subject: module: Disable matching missing version CRC X-Git-Tag: archive/raspbian/6.12.41-1+rpi1^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=256e86c89a3ce7e8d805d82264595acd8ae56844;p=linux.git module: Disable matching missing version CRC 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 --- diff --git a/kernel/module/version.c b/kernel/module/version.c index 53f43ac5a73..5dd5960f20a 100644 --- a/kernel/module/version.c +++ b/kernel/module/version.c @@ -46,9 +46,8 @@ 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", info->name, symname);