summaryrefslogtreecommitdiffstats
path: root/Fix-for-module-sig-verification.patch
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2017-08-14 10:23:05 -0500
committerJustin M. Forbes <jforbes@fedoraproject.org>2017-08-14 10:23:05 -0500
commit32d17a689307a01a425e89dbd75e798361e4397f (patch)
tree0e2d8dfb6a21b95c5eace7986b2373d6b545dcb5 /Fix-for-module-sig-verification.patch
parent5c4de603f0fefc98cf69e52c76e166df76f4c58c (diff)
downloadkernel-32d17a689307a01a425e89dbd75e798361e4397f.tar.gz
kernel-32d17a689307a01a425e89dbd75e798361e4397f.tar.xz
kernel-32d17a689307a01a425e89dbd75e798361e4397f.zip
Fix for signed module loading (rhbz 1476467)
Diffstat (limited to 'Fix-for-module-sig-verification.patch')
-rw-r--r--Fix-for-module-sig-verification.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/Fix-for-module-sig-verification.patch b/Fix-for-module-sig-verification.patch
new file mode 100644
index 000000000..3a5de65eb
--- /dev/null
+++ b/Fix-for-module-sig-verification.patch
@@ -0,0 +1,24 @@
+From ea6e7d9d0fe3e448aef19b3943d4897ae0bef128 Mon Sep 17 00:00:00 2001
+From: Fedora Kernel Team <kernel-team@fedoraproject.org>
+Date: Thu, 3 Aug 2017 13:46:51 -0500
+Subject: [PATCH] Fix for module sig verification
+
+---
+ kernel/module_signing.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/kernel/module_signing.c b/kernel/module_signing.c
+index 937c844..d3d6f95 100644
+--- a/kernel/module_signing.c
++++ b/kernel/module_signing.c
+@@ -81,6 +81,6 @@ int mod_verify_sig(const void *mod, unsigned long *_modlen)
+ }
+
+ return verify_pkcs7_signature(mod, modlen, mod + modlen, sig_len,
+- NULL, VERIFYING_MODULE_SIGNATURE,
++ (void *)1UL, VERIFYING_MODULE_SIGNATURE,
+ NULL, NULL);
+ }
+--
+2.13.3
+