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/5.7.10-1+rpi1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0cda11d3cb8473b39dd09d0610e18407b9005d60;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.c b/kernel/module.c index af59c86f154..5ad6a2846c3 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1333,9 +1333,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",