--- /dev/null
+From eef3727cad147be181567195df98f0a53fd05fdb Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Wed, 15 Jan 2020 15:49:31 +0100
+Subject: modsign: print module name along with error message
+
+From: Jessica Yu <jeyu@kernel.org>
+
+[ Upstream commit e9f35f634e099894f4d6c3b039cd3de5281ee637 ]
+
+It is useful to know which module failed signature verification, so
+print the module name along with the error message.
+
+Signed-off-by: Jessica Yu <jeyu@kernel.org>
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+---
+ kernel/module.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/kernel/module.c b/kernel/module.c
+index ab1f97cfe18d..0338fdd6acd8 100644
+--- a/kernel/module.c
++++ b/kernel/module.c
+@@ -2917,7 +2917,7 @@ static int module_sig_check(struct load_info *info, int flags)
+ reason = "Loading of module with unavailable key";
+ decide:
+ if (is_module_sig_enforced()) {
+- pr_notice("%s is rejected\n", reason);
++ pr_notice("%s: %s is rejected\n", info->name, reason);
+ return -EKEYREJECTED;
+ }
+
+--
+2.30.2
+
-From 3b69672d8fd44e02cfb51250ecf90d3573a29e7e Mon Sep 17 00:00:00 2001
+From 38b7e23cda6251acddce2003201edaabfe946e2f Mon Sep 17 00:00:00 2001
From: Sasha Levin <sashal@kernel.org>
Date: Sat, 31 Oct 2020 23:06:45 +0300
Subject: module: merge repetitive strings in module_sig_check()
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/kernel/module.c b/kernel/module.c
-index ab1f97cfe18d..9fe3e9b85348 100644
+index 0338fdd6acd8..9fe3e9b85348 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2908,16 +2908,17 @@ static int module_sig_check(struct load_info *info, int flags)
+ reason = "module with unavailable key";
decide:
if (is_module_sig_enforced()) {
-- pr_notice("%s is rejected\n", reason);
+- pr_notice("%s: %s is rejected\n", info->name, reason);
+ pr_notice("%s: loading of %s is rejected\n",
+ info->name, reason);
return -EKEYREJECTED;
}
--
-2.30.1
+2.30.2
selinux-vsock-set-sid-for-socket-returned-by-accept.patch
ipv6-weaken-the-v4mapped-source-check.patch
+modsign-print-module-name-along-with-error-message.patch
module-merge-repetitive-strings-in-module_sig_check.patch
module-avoid-goto-s-in-module_sig_check.patch
module-harden-elf-info-handling.patch