diff options
author | Scott Branden via Openembedded-core <openembedded-core@lists.openembedded.org> | 2020-02-06 12:57:43 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-08 13:20:02 +0000 |
commit | e4abc4dbf307f956a88c9ca97d7da4b954f4f40e (patch) | |
tree | 9ec792d969b469e3ad73cef3b6f6caa37ca9d4a4 | |
parent | ed4bdd0f9149ba24fac375fd3af8bb2a06423105 (diff) | |
download | poky-e4abc4dbf307f956a88c9ca97d7da4b954f4f40e.tar.gz |
cryptodev: update to Jan.23, 2020
* Remove backported patches:
0001-Fix-module-loading-with-Linux-v5.0-rc5.patch
Update to latest cryptodev dated Jan.23, 2020.
Fixes build on kernel v5.5+
(From OE-Core rev: 877d3ff61fbd55baa5e5fd00bd8a58b31e214cc9)
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-kernel/cryptodev/cryptodev.inc | 3 | ||||
-rw-r--r-- | meta/recipes-kernel/cryptodev/files/0001-Fix-module-loading-with-Linux-v5.0-rc5.patch | 59 |
2 files changed, 1 insertions, 61 deletions
diff --git a/meta/recipes-kernel/cryptodev/cryptodev.inc b/meta/recipes-kernel/cryptodev/cryptodev.inc index 9d8ba44058..f99f8bc9f0 100644 --- a/meta/recipes-kernel/cryptodev/cryptodev.inc +++ b/meta/recipes-kernel/cryptodev/cryptodev.inc | |||
@@ -4,9 +4,8 @@ LICENSE = "GPLv2" | |||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
5 | 5 | ||
6 | SRC_URI = "git://github.com/cryptodev-linux/cryptodev-linux \ | 6 | SRC_URI = "git://github.com/cryptodev-linux/cryptodev-linux \ |
7 | file://0001-Fix-module-loading-with-Linux-v5.0-rc5.patch \ | ||
8 | " | 7 | " |
9 | SRCREV = "fd8b15ef1c8398a69a37932ee48c74ab40329a29" | 8 | SRCREV = "a87053bee5680878c295b7d23cf0d7065576ac2b" |
10 | 9 | ||
11 | S = "${WORKDIR}/git" | 10 | S = "${WORKDIR}/git" |
12 | 11 | ||
diff --git a/meta/recipes-kernel/cryptodev/files/0001-Fix-module-loading-with-Linux-v5.0-rc5.patch b/meta/recipes-kernel/cryptodev/files/0001-Fix-module-loading-with-Linux-v5.0-rc5.patch deleted file mode 100644 index 34ec87272f..0000000000 --- a/meta/recipes-kernel/cryptodev/files/0001-Fix-module-loading-with-Linux-v5.0-rc5.patch +++ /dev/null | |||
@@ -1,59 +0,0 @@ | |||
1 | Upstream-Status: Backport [https://github.com/cryptodev-linux/cryptodev-linux/commit/f971e0c] | ||
2 | |||
3 | Backport patch from upstream to fix module cryptodev loading error. | ||
4 | |||
5 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
6 | |||
7 | From f971e0cd4a0ebe59fb2e8e17240399bf6901b09b Mon Sep 17 00:00:00 2001 | ||
8 | From: "Derald D. Woods" <woods.technical@gmail.com> | ||
9 | Date: Sun, 10 Feb 2019 13:22:19 -0600 | ||
10 | Subject: [PATCH] Fix module loading with Linux v5.0-rc5 | ||
11 | |||
12 | This commit fixes this module load error: | ||
13 | [...] | ||
14 | [ 29.112091] cryptodev: loading out-of-tree module taints kernel. | ||
15 | [ 29.128906] cryptodev: Unknown symbol crypto_givcipher_type (err -2) | ||
16 | [ 29.188842] cryptodev: Unknown symbol crypto_givcipher_type (err -2) | ||
17 | modprobe: can't load module cryptodev (extra/cryptodev.ko): unknown symbol in module, or unknown parameter | ||
18 | [...] | ||
19 | |||
20 | Upstream Linux support for unused GIVCIPHER, and others, was dropped here: | ||
21 | |||
22 | c79b411eaa72 (crypto: skcipher - remove remnants of internal IV generators) | ||
23 | |||
24 | Signed-off-by: Derald D. Woods <woods.technical@gmail.com> | ||
25 | --- | ||
26 | cryptlib.c | 9 +++++++-- | ||
27 | 1 file changed, 7 insertions(+), 2 deletions(-) | ||
28 | |||
29 | diff --git a/cryptlib.c b/cryptlib.c | ||
30 | index 6e66698..4a87037 100644 | ||
31 | --- a/cryptlib.c | ||
32 | +++ b/cryptlib.c | ||
33 | @@ -38,7 +38,9 @@ | ||
34 | #include "cryptodev_int.h" | ||
35 | #include "cipherapi.h" | ||
36 | |||
37 | +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0)) | ||
38 | extern const struct crypto_type crypto_givcipher_type; | ||
39 | +#endif | ||
40 | |||
41 | static void cryptodev_complete(struct crypto_async_request *req, int err) | ||
42 | { | ||
43 | @@ -157,8 +159,11 @@ int cryptodev_cipher_init(struct cipher_data *out, const char *alg_name, | ||
44 | |||
45 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)) | ||
46 | tfm = crypto_skcipher_tfm(out->async.s); | ||
47 | - if ((tfm->__crt_alg->cra_type == &crypto_ablkcipher_type) || | ||
48 | - (tfm->__crt_alg->cra_type == &crypto_givcipher_type)) { | ||
49 | + if ((tfm->__crt_alg->cra_type == &crypto_ablkcipher_type) | ||
50 | +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0)) | ||
51 | + || (tfm->__crt_alg->cra_type == &crypto_givcipher_type) | ||
52 | +#endif | ||
53 | + ) { | ||
54 | struct ablkcipher_alg *alg; | ||
55 | |||
56 | alg = &tfm->__crt_alg->cra_ablkcipher; | ||
57 | -- | ||
58 | 2.20.0 | ||
59 | |||