From d30d4a56c0ca094b98f06a2c08019b07ff2d92e7 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Fri, 2 Dec 2016 23:06:18 +0000 Subject: [PATCH] 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 --- kernel/module.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index 7f3ba597af6..367321ef16b 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1335,9 +1335,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", -- 2.30.2