[SRU][BIONIC][PATCH 13/16] UBUNTU: SAUCE: Dump stack when X.509 certificates cannot be loaded

Dimitri John Ledkov dimitri.ledkov at canonical.com
Tue Nov 30 11:04:13 UTC 2021


From: Tim Gardner <tim.gardner at canonical.com>

BugLink: https://bugs.launchpad.net/bugs/1932029

Signed-off-by: Tim Gardner <tim.gardner at canonical.com>
(cherry picked from commit b5b4085dc5547a01593cd79dbf51bd9108f84e9f)
(xnox: cherry-pick is from impish:linux SAUCE)
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
---
 certs/common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/certs/common.c b/certs/common.c
index 16a220887a..23af4fc392 100644
--- a/certs/common.c
+++ b/certs/common.c
@@ -41,6 +41,7 @@ int load_certificate_list(const u8 cert_list[],
 		if (IS_ERR(key)) {
 			pr_err("Problem loading in-kernel X.509 certificate (%ld)\n",
 			       PTR_ERR(key));
+			WARN_ON_ONCE(1);
 		} else {
 			pr_notice("Loaded X.509 cert '%s'\n",
 				  key_ref_to_ptr(key)->description);
-- 
2.32.0




More information about the kernel-team mailing list