Skip to contentSkip to conversation

libkcapi: bump to version 1.1.3

PATCH New Fabrice Fontaine 3 participants 4 messages Aug 27, 2018 – Aug 29, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libkcapi: bump to version 1.1.3

Remove patch (already in version)

---
 .../0001-Fix-getrandom-call-in-kcapi-rng.c.patch   | 31 ----------------------
 package/libkcapi/libkcapi.hash                     |  2 +-
 package/libkcapi/libkcapi.mk                       |  2 +-
 3 files changed, 2 insertions(+), 33 deletions(-)
 delete mode 100644 package/libkcapi/0001-Fix-getrandom-call-in-kcapi-rng.c.patch
package/libkcapi/0001-Fix-getrandom-call-in-kcapi-rng.c.patch deleted +0 -31
deleted file mode 100644
index d83edd9261..0000000000
@@ -1,31 +0,0 @@
-From 581717cfb0e35c041246da0c0c591a6e9f7a40e5 Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Wed, 2 May 2018 21:03:45 +0200
-Subject: [PATCH] Fix getrandom call in kcapi-rng.c
-
-_GNU_SOURCE must be defined and unistd.h must be included to be able to
-use getrandom
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-
-[Upstream status: https://github.com/smuellerDD/libkcapi/pull/56]
----
- lib/kcapi-rng.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/lib/kcapi-rng.c b/lib/kcapi-rng.c
-index 45f4d18..9ceabd4 100644
---- a/lib/kcapi-rng.c
-+++ b/lib/kcapi-rng.c
-@@ -18,6 +18,8 @@
-  * DAMAGE.
-  */
- 
-+#define _GNU_SOURCE
-+#include <unistd.h>
- #include <linux/random.h>
- #ifdef HAVE_GETRANDOM
- #include <sys/random.h>
--- 
-2.14.1
-
package/libkcapi/libkcapi.hash +1 -1
index 9cb1e80ccb..b340ea84b6 100644
@@ -1,5 +1,5 @@
 # Locally calculated
-sha256 ac80211317750f6a545b1e5547cfb6ae450b37c11acb6d24982a581705eb5250	libkcapi-1.1.0.tar.xz
+sha256 19c044310eda0bf5403fae8df2eeffcfef33b67cb5b01def5f440d41ff16b55f	libkcapi-1.1.3.tar.xz
 sha256 b0336f8f07a6abf8b0a59d961f53601d7c4a7c09a8137805b730a34a976039f8	COPYING
 sha256 e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4	COPYING.gplv2
 sha256 13aa749a5b0a454917a944ed8fffc530b784f5ead522b1aacaf4ec8aa55a6239	COPYING.bsd
package/libkcapi/libkcapi.mk +1 -1
index 1a45f4f996..1557d2017a 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBKCAPI_VERSION = 1.1.0
+LIBKCAPI_VERSION = 1.1.3
 LIBKCAPI_SOURCE = libkcapi-$(LIBKCAPI_VERSION).tar.xz
 LIBKCAPI_SITE = http://www.chronox.de/libkcapi
 LIBKCAPI_AUTORECONF = YES
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 libkcapi: bump to version 1.1.3

Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Remove patch (already in version)

---

[snip]

package/libkcapi/libkcapi.mk line 7

Quoted 2 lines
package/libkcapi/libkcapi.mk +1 -1
-LIBKCAPI_VERSION = 1.1.0
+LIBKCAPI_VERSION = 1.1.3

Is this meant for master or next? E.G. does this fix any significant issues?

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 libkcapi: bump to version 1.1.3

Dear Peter,

Le mar. 28 ao?t 2018 ? 00:09, Peter Korsgaard <[email protected]> a ?crit :

Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Remove patch (already in version)

---

Quoted 8 lines

[snip]

package/libkcapi/libkcapi.mk line 7

Quoted 2 lines
package/libkcapi/libkcapi.mk +1 -1
-LIBKCAPI_VERSION = 1.1.0
+LIBKCAPI_VERSION = 1.1.3

Is this meant for master or next? E.G. does this fix any significant issues?

The bump does not fix any autobuilder issues but it fixes some significant issues especially on kcapi_hasher.
Issues on kcapi_hasher have been found by Coverity and are related to fd leak, buffer overrun, ...):
https://github.com/smuellerDD/libkcapi/commits/master/apps/kcapi-hasher.c
Here is an extract of the ChangeLog:

Changes 1.1.3
* Fix: default location of FIPS 140-2 HMAC control file is .<orig file>.hmac (was accidentally moved to <orig file>.hmac with 1.1.2)

Changes 1.1.2
* Fix: Bug fixes for GCC 8.1.0 regarding string length checks by Krzysztof Kozlowski
* Enhancement: ensure that tests execute on architectures other than X86 by Ondrej Mosn??ek
* Fix: Bug fix to initialize FDs at the correct time in kcapi-kernel-if.c by Ondrej Mosn??ek
* Test fix: Support test execution outside build environment by Ondrej Mosn??ek

Changes 1.1.1
* Fix: Bug fixes for kcapi_hasher by Ondrej Mosn??ek

So perhaps we could apply it to master.

Quoted 4 lines

--
Bye, Peter Korsgaard

Best Regards,

Fabrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180828/74179798/attachment.html>

#3 lore raw

PATCH 1/1 libkcapi: bump to version 1.1.3

In reply to Fabrice Fontaine

Hello Fabrice,

Quoted 9 lines · Fabrice Fontaine

Remove patch (already in version)

---
 .../0001-Fix-getrandom-call-in-kcapi-rng.c.patch   | 31 ----------------------
 package/libkcapi/libkcapi.hash                     |  2 +-
 package/libkcapi/libkcapi.mk                       |  2 +-
 3 files changed, 2 insertions(+), 33 deletions(-)
 delete mode 100644 package/libkcapi/0001-Fix-getrandom-call-in-kcapi-rng.c.patch

Since the number of changes were really small and only bug fixes, I applied to master. I hope I won't regret it :-)

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com