summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2021-01-14 13:49:07 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-16 22:39:35 +0000
commitda33f74b58402bbd57fe6515d92fb7d1aed538af (patch)
tree33c190ab7b238b8e8f566aa0fee180295b80c660 /meta/recipes-support
parent7ab694e1682c134b33166b46238a34a48a318e76 (diff)
downloadpoky-da33f74b58402bbd57fe6515d92fb7d1aed538af.tar.gz
rng-tools: upgrade 6.10 -> 6.11
Remove backported patches. (From OE-Core rev: bcb0895c41ca97fdf1d53d8368ff46d5968cdc4a) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/rng-tools/rng-tools/0001-rngd-fix-debug-to-also-filter-syslog-calls.patch46
-rw-r--r--meta/recipes-support/rng-tools/rng-tools/a4b6d9ce64f132e463b9091d0536913ddaf11516.patch42
-rw-r--r--meta/recipes-support/rng-tools/rng-tools/dab16a5fd4efde8ef569b358e19b1fcbc7d0d938.patch51
-rw-r--r--meta/recipes-support/rng-tools/rng-tools_6.11.bb (renamed from meta/recipes-support/rng-tools/rng-tools_6.10.bb)5
4 files changed, 1 insertions, 143 deletions
diff --git a/meta/recipes-support/rng-tools/rng-tools/0001-rngd-fix-debug-to-also-filter-syslog-calls.patch b/meta/recipes-support/rng-tools/rng-tools/0001-rngd-fix-debug-to-also-filter-syslog-calls.patch
deleted file mode 100644
index 0733378668..0000000000
--- a/meta/recipes-support/rng-tools/rng-tools/0001-rngd-fix-debug-to-also-filter-syslog-calls.patch
+++ /dev/null
@@ -1,46 +0,0 @@
1From 213a869e8315ead2c739acfcbde712358a842dee Mon Sep 17 00:00:00 2001
2From: Yann Dirson <yann@blade-group.com>
3Date: Fri, 9 Oct 2020 15:12:26 +0200
4Subject: [PATCH] rngd: fix --debug to also filter syslog() calls
5
6Debug logs were only controlled by --debug flag while in --foreground
7mode. In --daemon mode /var/log/message got stuffed with details of
8entropy pool refilling, which is useless in production, and hamful
9when log rotation then gets rid of the more useful logs. This is
10especially true for embedded systems.
11
12This change makes the two modes consistently only produce debug logs when
13--debug is specified.
14
15Upstream-Status: Backport [213a869e8315ead2c739acfcbde712358a842dee]
16
17Signed-off-by: Yann Dirson <yann@blade-group.com>
18---
19 rngd.h | 8 ++++----
20 1 file changed, 4 insertions(+), 4 deletions(-)
21
22diff --git a/rngd.h b/rngd.h
23index 901b6f1..a79ea0f 100644
24--- a/rngd.h
25+++ b/rngd.h
26@@ -166,13 +166,13 @@ extern bool quiet;
27 #define message(priority,fmt,args...) do { \
28 if (quiet) \
29 break;\
30+ if (arguments->debug == false && LOG_PRI(priority) == LOG_DEBUG) \
31+ break;\
32 if (am_daemon) { \
33 syslog((priority), fmt, ##args); \
34 } else if (!msg_squash) { \
35- if ((LOG_PRI(priority) != LOG_DEBUG) || (arguments->debug == true)) {\
36- fprintf(stderr, fmt, ##args); \
37- fflush(stderr); \
38- } \
39+ fprintf(stderr, fmt, ##args); \
40+ fflush(stderr); \
41 } \
42 } while (0)
43
44--
452.28.0
46
diff --git a/meta/recipes-support/rng-tools/rng-tools/a4b6d9ce64f132e463b9091d0536913ddaf11516.patch b/meta/recipes-support/rng-tools/rng-tools/a4b6d9ce64f132e463b9091d0536913ddaf11516.patch
deleted file mode 100644
index 96301617b2..0000000000
--- a/meta/recipes-support/rng-tools/rng-tools/a4b6d9ce64f132e463b9091d0536913ddaf11516.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From a4b6d9ce64f132e463b9091d0536913ddaf11516 Mon Sep 17 00:00:00 2001
2From: Neil Horman <nhorman@tuxdriver.com>
3Date: Thu, 30 Apr 2020 16:57:35 -0400
4Subject: [PATCH] Remove name conflict with libc encrypt
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Forgot to fixup the funciton name conflict with libcs encrypt() function
10on power systems
11
12Upstream-Status: Backport [https://github.com/nhorman/rng-tools/commit/a4b6d9ce64f132e463b9091d0536913ddaf11516]
13Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
14Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
15Reported-by: Natanael Copa <ncopa@alpinelinux.org>
16Reported-by: "Milan P. Stanić" <mps@arvanta.net>
17---
18 rngd_darn.c | 4 ++--
19 1 file changed, 2 insertions(+), 2 deletions(-)
20
21diff --git a/rngd_darn.c b/rngd_darn.c
22index 35df7a1..9345895 100644
23--- a/rngd_darn.c
24+++ b/rngd_darn.c
25@@ -109,7 +109,7 @@ static int init_openssl(struct rng *ent_src)
26 return 0;
27 }
28
29-int encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key,
30+static int osslencrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key,
31 unsigned char *iv, unsigned char *ciphertext)
32 {
33 int len;
34@@ -150,7 +150,7 @@ static inline int openssl_mangle(unsigned char *tmp, struct rng *ent_src)
35 unsigned char ciphertext[CHUNK_SIZE * RDRAND_ROUNDS];
36
37 /* Encrypt the plaintext */
38- ciphertext_len = encrypt (tmp, strlen(tmp), key, iv_buf,
39+ ciphertext_len = osslencrypt (tmp, strlen(tmp), key, iv_buf,
40 ciphertext);
41 printf("Calling mangle with len %d\n", ciphertext_len);
42 if (!ciphertext_len)
diff --git a/meta/recipes-support/rng-tools/rng-tools/dab16a5fd4efde8ef569b358e19b1fcbc7d0d938.patch b/meta/recipes-support/rng-tools/rng-tools/dab16a5fd4efde8ef569b358e19b1fcbc7d0d938.patch
deleted file mode 100644
index 93103ef79f..0000000000
--- a/meta/recipes-support/rng-tools/rng-tools/dab16a5fd4efde8ef569b358e19b1fcbc7d0d938.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1From dab16a5fd4efde8ef569b358e19b1fcbc7d0d938 Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Mon, 30 Mar 2020 00:10:46 +0200
4Subject: [PATCH] rngd_jitter: disambiguate call to encrypt
5
6Commit 0f184ea7e792427fb20afe81d471b565aee96f0b disambiguate the call to
7encrypt in rngd_rdrand.c but did not update rngd_jitter.c.
8
9This raise the following build failure:
10
11rngd_jitter.c:75:12: error: conflicting types for 'encrypt'
12 static int encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key,
13 ^~~~~~~
14In file included from rngd_jitter.c:27:
15/home/dawncrow/buildroot-test/scripts/instance-0/output-1/host/powerpc-buildroot-linux-uclibc/sysroot/usr/include/unistd.h:1132:13: note: previous declaration of 'encrypt' was here
16 extern void encrypt (char *__block, int __edflag) __THROW __nonnull ((1));
17 ^~~~~~~
18Makefile:770: recipe for target 'rngd-rngd_jitter.o' failed
19
20Fixes:
21 - http://autobuild.buildroot.org/results/0ca6bf16e3acbc94065b88c4442d6595424b77cb
22
23Upstream-Status: Backport [https://github.com/nhorman/rng-tools/commit/dab16a5fd4efde8ef569b358e19b1fcbc7d0d938]
24Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
25Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
26---
27 rngd_jitter.c | 4 ++--
28 1 file changed, 2 insertions(+), 2 deletions(-)
29
30diff --git a/rngd_jitter.c b/rngd_jitter.c
31index c1b1aca..49a3825 100644
32--- a/rngd_jitter.c
33+++ b/rngd_jitter.c
34@@ -72,7 +72,7 @@ unsigned char *aes_buf;
35 char key[AES_BLOCK];
36 static unsigned char iv_buf[CHUNK_SIZE] __attribute__((aligned(128)));
37
38-static int encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key,
39+static int osslencrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key,
40 unsigned char *iv, unsigned char *ciphertext)
41 {
42 EVP_CIPHER_CTX *ctx;
43@@ -122,7 +122,7 @@ static inline int openssl_mangle(unsigned char *tmp, struct rng *ent_src)
44 unsigned char ciphertext[CHUNK_SIZE * RDRAND_ROUNDS];
45
46 /* Encrypt the plaintext */
47- ciphertext_len = encrypt (tmp, strlen(tmp), key, iv_buf,
48+ ciphertext_len = osslencrypt (tmp, strlen(tmp), key, iv_buf,
49 ciphertext);
50 if (!ciphertext_len)
51 return -1;
diff --git a/meta/recipes-support/rng-tools/rng-tools_6.10.bb b/meta/recipes-support/rng-tools/rng-tools_6.11.bb
index 40ec5ad671..61a0cef2e0 100644
--- a/meta/recipes-support/rng-tools/rng-tools_6.10.bb
+++ b/meta/recipes-support/rng-tools/rng-tools_6.11.bb
@@ -10,14 +10,11 @@ DEPENDS = "sysfsutils openssl"
10 10
11SRC_URI = "\ 11SRC_URI = "\
12 git://github.com/nhorman/rng-tools.git \ 12 git://github.com/nhorman/rng-tools.git \
13 file://a4b6d9ce64f132e463b9091d0536913ddaf11516.patch \
14 file://dab16a5fd4efde8ef569b358e19b1fcbc7d0d938.patch \
15 file://0001-rngd-fix-debug-to-also-filter-syslog-calls.patch \
16 file://init \ 13 file://init \
17 file://default \ 14 file://default \
18 file://rngd.service \ 15 file://rngd.service \
19" 16"
20SRCREV = "0be82200a66d9321451e0a0785bfae350b9cffdc" 17SRCREV = "2ea13473fd5bfea3c861dc0e23bd65e2afe8007b"
21 18
22S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"
23 20