potatogim / rpms / kernel

Forked from rpms/kernel 3 years ago
Clone
f2c60e
From ea6e7d9d0fe3e448aef19b3943d4897ae0bef128 Mon Sep 17 00:00:00 2001
f2c60e
From: Fedora Kernel Team <kernel-team@fedoraproject.org>
f2c60e
Date: Thu, 3 Aug 2017 13:46:51 -0500
f2c60e
Subject: [PATCH] Fix for module sig verification
f2c60e
f2c60e
---
f2c60e
 kernel/module_signing.c | 2 +-
f2c60e
 1 file changed, 1 insertion(+), 1 deletion(-)
f2c60e
f2c60e
diff --git a/kernel/module_signing.c b/kernel/module_signing.c
f2c60e
index 937c844..d3d6f95 100644
f2c60e
--- a/kernel/module_signing.c
f2c60e
+++ b/kernel/module_signing.c
f2c60e
@@ -81,6 +81,6 @@ int mod_verify_sig(const void *mod, unsigned long *_modlen)
f2c60e
 	}
f2c60e
f2c60e
 	return verify_pkcs7_signature(mod, modlen, mod + modlen, sig_len,
f2c60e
-				      NULL, VERIFYING_MODULE_SIGNATURE,
f2c60e
+				      (void *)1UL, VERIFYING_MODULE_SIGNATURE,
f2c60e
 				      NULL, NULL);
f2c60e
 }
f2c60e
-- 
f2c60e
2.13.3
f2c60e