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/4.9.82-1+deb9u3+rpi1_jessie~8^2~20 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a4b27035a56b9d9f722cd75931a886c9a3f6db2d;p=linux-4.9.git module: Disable matching missing version CRC 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 fd798970491e..945a8827c76b 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1301,9 +1301,8 @@ static int check_version(Elf_Shdr *sechdrs, goto bad_version; } - /* Broken toolchain. Warn once, then let it go.. */ - pr_warn_once("%s: no symbol version for %s\n", mod->name, symname); - return 1; + pr_warn("%s: no symbol version for %s\n", mod->name, symname); + return 0; bad_version: pr_warn("%s: disagrees about version of symbol %s\n",