libbpf: upgrade 1.5.0 -> 1.6.2
PATCH 1/5 libbpf: upgrade 1.5.0 -> 1.6.2
From: Ankur Tyagi <[email protected]>
Dropped patches which are now merged in the upstream
Changelog:
https://github.com/libbpf/libbpf/releases/tag/v1.5.1
https://github.com/libbpf/libbpf/releases/tag/v1.6.0
https://github.com/libbpf/libbpf/releases/tag/v1.6.1
https://github.com/libbpf/libbpf/releases/tag/v1.6.2
---
...-empty-BTF-data-section-in-btf_parse.patch | 43 --------
.../libbpf/files/CVE-2025-29481.patch | 102 ------------------
.../{libbpf_1.5.0.bb => libbpf_1.6.2.bb} | 7 +-
3 files changed, 2 insertions(+), 150 deletions(-)
delete mode 100644 meta-oe/recipes-kernel/libbpf/files/0001-libbpf-check-for-empty-BTF-data-section-in-btf_parse.patch
delete mode 100644 meta-oe/recipes-kernel/libbpf/files/CVE-2025-29481.patch
rename meta-oe/recipes-kernel/libbpf/{libbpf_1.5.0.bb => libbpf_1.6.2.bb} (80%)meta-oe/recipes-kernel/libbpf/files/0001-libbpf-check-for-empty-BTF-data-section-in-btf_parse.patch deleted +0 -43
@@ -1,43 +0,0 @@ -From ff2eb6e134ebfc225b97b46182af3cc58ed481f6 Mon Sep 17 00:00:00 2001 -From: Changqing Li <[email protected]> -Date: Thu, 10 Apr 2025 11:50:04 +0800 -Subject: [PATCH] libbpf: check for empty BTF data section in btf_parse_elf - -A valid ELF file may contain a SHT_NOBITS .BTF section. This case is -not handled correctly in btf_parse_elf, which leads to a segfault. - -Add a null check for a buffer returned by elf_getdata() before -proceeding with its processing. - -Bug report: https://github.com/libbpf/libbpf/issues/894 - -Signed-off-by: Ihor Solodrai <[email protected]> -Acked-by: Mykyta Yatsenko <[email protected]> - -Upstream-Status: Backport [https://github.com/kernel-patches/bpf-rc/commit/b02b669fd9398d246c8c9ae901c0d8f5bb36a588] - -Signed-off-by: Changqing Li <[email protected]> ---- - btf.c | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/btf.c b/btf.c -index e9673c0e..21d38dcf 100644 ---- a/btf.c -+++ b/btf.c -@@ -1199,6 +1199,12 @@ static struct btf *btf_parse_elf(const char *path, struct btf *base_btf, - goto done; - } - -+ if (!secs.btf_data->d_buf) { -+ pr_warn("BTF data is empty in %s\n", path); -+ err = -ENODATA; -+ goto done; -+ } -+ - if (secs.btf_base_data) { - dist_base_btf = btf_new(secs.btf_base_data->d_buf, secs.btf_base_data->d_size, - NULL); --- -2.34.1 -
meta-oe/recipes-kernel/libbpf/files/CVE-2025-29481.patch deleted +0 -102
102 lines not on this page · raw message
meta-oe/recipes-kernel/libbpf/libbpf_1.6.2.bb renamed from meta-oe/recipes-kernel/libbpf/libbpf_1.5.0.bb +2 -5
@@ -8,11 +8,8 @@ LIC_FILES_CHKSUM = "file://../LICENSE.LGPL-2.1;md5=b370887980db5dd40659b50909238 DEPENDS = "zlib elfutils" -SRC_URI = "git://github.com/libbpf/libbpf.git;protocol=https;branch=master \ - file://0001-libbpf-check-for-empty-BTF-data-section-in-btf_parse.patch \ - file://CVE-2025-29481.patch;striplevel=2 \ -" -SRCREV = "09b9e83102eb8ab9e540d36b4559c55f3bcdb95d" +SRC_URI = "git://github.com/libbpf/libbpf.git;protocol=https;branch=${BPN}-${PV}" +SRCREV = "45e89348ec74617c11cd5241ccd0ffc91dfd03c4" PACKAGE_ARCH = "${MACHINE_ARCH}" COMPATIBLE_HOST = "(x86_64|i.86|arm|aarch64|riscv64|powerpc|powerpc64|mips64).*-linux"
PATCH 2/5 libtracefs: upgrade 1.8.1 -> 1.8.2
From: Ankur Tyagi <[email protected]>
New version added trace_sql.bash for tracefs_sql() bash completions.
Changelog:
https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/tag/?h=libtracefs-1.8.2
---
.../libtracefs/{libtracefs_1.8.1.bb => libtracefs_1.8.2.bb} | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
rename meta-oe/recipes-kernel/libtracefs/{libtracefs_1.8.1.bb => libtracefs_1.8.2.bb} (89%)meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb renamed from meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.1.bb +3 -1
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97 SECTION = "libs" DEPENDS = "libtraceevent bison-native flex-native" -SRCREV = "417c2e3aa21af670cc5c13db633dd35292f2d0fa" +SRCREV = "03790961bf2e83b7b61fb6d326fb1076a4293adb" SRC_URI = "git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git;branch=${BPN};protocol=https \ file://0001-makefile-Do-not-preserve-ownership-in-cp-command.patch \ "
@@ -19,3 +19,5 @@ inherit pkgconfig do_install() { oe_runmake install DESTDIR=${D} pkgconfig_dir=${libdir}/pkgconfig } + +FILES:${PN} += "${datadir}/bash-completion"
Re: [oe][meta-oe][PATCH 2/5] libtracefs: upgrade 1.8.1 -> 1.8.2
Quoted 39 lines · Ankur Tyagi via lists.openembedded.org
From: Ankur Tyagi <[email protected]>
New version added trace_sql.bash for
tracefs_sql()bash completions.Changelog:
https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/tag/?h=libtracefs-1.8.2
Signed-off-by Ankur Tyagi <[email protected]>--- .../libtracefs/{libtracefs_1.8.1.bb => libtracefs_1.8.2.bb} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename meta-oe/recipes-kernel/libtracefs/{libtracefs_1.8.1.bb =>libtracefs_1.8.2.bb} (89%)
meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb renamed from meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.1.bb +0
-0@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM ="file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97
SECTION = "libs"
DEPENDS = "libtraceevent bison-native flex-native"meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb renamed from meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.1.bb +1
-1-SRCREV = "417c2e3aa21af670cc5c13db633dd35292f2d0fa" +SRCREV = "03790961bf2e83b7b61fb6d326fb1076a4293adb" SRC_URI = "git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git;branch=${BPN};protocol=https
<http://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git;branch=$%7BBPN%7D;protocol=https>
\file://0001-makefile-Do-not-preserve-ownership-in-cp-command.patch \ "
meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb inherit pkgconfig · line 23
Quoted 5 lines
meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb renamed from meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.1.bb +2
-0@@ -19,3 +19,5 @@ inherit pkgconfig do_install() { oe_runmake install DESTDIR=${D} pkgconfig_dir=${libdir}/pkgconfig } + +FILES:${PN} += "${datadir}/bash-completion"
perhaps using inherit bash-completion is all you need.
Quoted 12 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#121678):
https://lists.openembedded.org/g/openembedded-devel/message/121678
Mute This Topic: https://lists.openembedded.org/mt/116287242/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe][meta-oe][PATCH 2/5] libtracefs: upgrade 1.8.1 -> 1.8.2
Quoted 29 lines · Khem Raj
Quoted 25 lines · Ankur Tyagi via lists.openembedded.org
From: Ankur Tyagi <[email protected]>
New version added trace_sql.bash for
tracefs_sql()bash completions.Changelog:
https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/tag/?h=libtracefs-1.8.2Signed-off-by Ankur Tyagi <[email protected]>--- .../libtracefs/{libtracefs_1.8.1.bb => libtracefs_1.8.2.bb} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename meta-oe/recipes-kernel/libtracefs/{libtracefs_1.8.1.bb => libtracefs_1.8.2.bb} (89%)meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb renamed from meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.1.bb +0
-0@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97 SECTION = "libs" DEPENDS = "libtraceevent bison-native flex-native"
Quoted 14 lines
meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb inherit pkgconfig · line 23
Quoted 11 lines
meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb renamed from meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.1.bb +3
-1-SRCREV = "417c2e3aa21af670cc5c13db633dd35292f2d0fa" +SRCREV = "03790961bf2e83b7b61fb6d326fb1076a4293adb" SRC_URI = "git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git;branch=${BPN};protocol=https \ file://0001-makefile-Do-not-preserve-ownership-in-cp-command.patch \ "@@ -19,3 +19,5 @@ inherit pkgconfig do_install() { oe_runmake install DESTDIR=${D} pkgconfig_dir=${libdir}/pkgconfig } + +FILES:${PN} += "${datadir}/bash-completion"perhaps using inherit bash-completion is all you need.
indeed, thank you for the review.
sending v2 now.
Quoted 11 lines
Quoted 11 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#121678): https://lists.openembedded.org/g/openembedded-devel/message/121678
Mute This Topic: https://lists.openembedded.org/mt/116287242/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 3/5 tbb: upgrade 2022.1.0 -> 2022.3.0
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://github.com/uxlfoundation/oneTBB/releases/tag/v2022.2.0
https://github.com/uxlfoundation/oneTBB/releases/tag/v2022.3.0
---
.../recipes-support/tbb/{tbb_2022.1.0.bb => tbb_2022.3.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-support/tbb/{tbb_2022.1.0.bb => tbb_2022.3.0.bb} (98%)meta-oe/recipes-support/tbb/tbb_2022.3.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2022.1.0.bb +1 -1
@@ -13,7 +13,7 @@ DEPENDS:append:class-target = " hwloc" PE = "1" BRANCH = "onetbb_2022" -SRCREV = "45587e94dfb6dfe00220c5f520020a5bc745e92f" +SRCREV = "f1862f38f83568d96e814e469ab61f88336cc595" SRC_URI = "git://github.com/oneapi-src/oneTBB.git;protocol=https;branch=${BRANCH} \ "
PATCH 4/5 libnvme: upgrade 1.12 -> 1.16.1
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Use PACKAGECONFIG to support liburing which is now disabled by default. Dropped patch which is now merged in the upstream.
Changelog:
https://github.com/linux-nvme/libnvme/releases/tag/v1.13
https://github.com/linux-nvme/libnvme/releases/tag/v1.14
https://github.com/linux-nvme/libnvme/releases/tag/v1.15
https://github.com/linux-nvme/libnvme/releases/tag/v1.16
https://github.com/linux-nvme/libnvme/releases/tag/v1.16.1
---
...k.c-fix-checking-of-HAVE_GLIBC_IOCTL.patch | 41 -------------------
.../{libnvme_1.12.bb => libnvme_1.16.1.bb} | 6 +--
2 files changed, 3 insertions(+), 44 deletions(-)
delete mode 100644 meta-oe/recipes-support/libnvme/files/0001-mock.c-fix-checking-of-HAVE_GLIBC_IOCTL.patch
rename meta-oe/recipes-support/libnvme/{libnvme_1.12.bb => libnvme_1.16.1.bb} (88%)meta-oe/recipes-support/libnvme/files/0001-mock.c-fix-checking-of-HAVE_GLIBC_IOCTL.patch deleted +0 -41
@@ -1,41 +0,0 @@ -From 14328a9a429fd84ddd1a3ed4fb0eb9643c61fa58 Mon Sep 17 00:00:00 2001 -From: Changqing Li <[email protected]> -Date: Mon, 7 Apr 2025 13:23:57 +0800 -Subject: [PATCH] mock.c: fix checking of HAVE_GLIBC_IOCTL - -Commit [ 0d8d0a55 build: do not include config.h globally ] -changed to always pass -DHAVE_GLIBC_IOCTL=[0|1], and this causes -a regression, for system without glibc ioctl, -DHAVE_GLIBC_IOCTL=0 -is passed, and causes error: -../git/test/ioctl/mock.c:123:5: error: conflicting types for 'ioctl'; have 'int(int, long unsigned int, ...)' - 123 | int ioctl(int fd, unsigned long request, ...) - | ^~~~~ -In file included from ../git/test/ioctl/mock.c:9: -pathto/usr/include/sys/ioctl.h:115:5: note: previous declaration of 'ioctl' with type 'int(int, int, ...)' - 115 | int ioctl (int, int, ...); - -Fixed by checking value of HAVE_GLIBC_IOCTL in mock.c - -Upstream-Status: Submitted [https://github.com/linux-nvme/libnvme/pull/985] - -Signed-off-by: Changqing Li <[email protected]> ---- - test/ioctl/mock.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/test/ioctl/mock.c b/test/ioctl/mock.c -index 7402b45c..da3caba8 100644 ---- a/test/ioctl/mock.c -+++ b/test/ioctl/mock.c -@@ -118,7 +118,7 @@ void end_mock_cmds(void) - } \ - }) - --#ifdef HAVE_GLIBC_IOCTL -+#if defined(HAVE_GLIBC_IOCTL) && HAVE_GLIBC_IOCTL == 1 - typedef int (*ioctl_func_t)(int, unsigned long, void *); - int ioctl(int fd, unsigned long request, ...) - #else --- -2.34.1 -
meta-oe/recipes-support/libnvme/libnvme_1.16.1.bb renamed from meta-oe/recipes-support/libnvme/libnvme_1.12.bb +3 -3
@@ -11,10 +11,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \ file://ccan/licenses/CC0;md5=c17af43b05840255a6fedc5eda9d56cc \ file://ccan/licenses/BSD-MIT;md5=838c366f69b72c5df05c96dff79b35f2" DEPENDS = "json-c" -SRCREV = "5ec1f5284ecb0eda481f3d2d61236fbc5b46164f" +SRCREV = "becae3d874b40bfedede672b4b2f58ae8c3be3b5" -SRC_URI = "git://github.com/linux-nvme/libnvme;protocol=https;branch=master \ - file://0001-mock.c-fix-checking-of-HAVE_GLIBC_IOCTL.patch" +SRC_URI = "git://github.com/linux-nvme/libnvme;protocol=https;branch=master" inherit meson pkgconfig
@@ -24,3 +23,4 @@ PACKAGECONFIG ??= "keyutils openssl" PACKAGECONFIG[keyutils] = "-Dkeyutils=enabled,-Dkeyutils=disabled,keyutils" PACKAGECONFIG[openssl] = "-Dopenssl=enabled,-Dopenssl=disabled,openssl" PACKAGECONFIG[python] = "-Dpython=enabled,-Dpython=disabled,python" +PACKAGECONFIG[liburing] = "-Dliburing=enabled,-Dliburing=disabled,liburing"
PATCH 5/5 liburing: upgrade 2.9 -> 2.12
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Dropped patch which is now merged upstream.
Changelog:
https://github.com/axboe/liburing/releases/tag/liburing-2.10
https://github.com/axboe/liburing/releases/tag/liburing-2.11
https://github.com/axboe/liburing/releases/tag/liburing-2.12
---
...ncluding-missing-string.h-for-memcpy.patch | 39 -------------------
.../{liburing_2.9.bb => liburing_2.12.bb} | 5 +--
2 files changed, 2 insertions(+), 42 deletions(-)
delete mode 100644 meta-oe/recipes-support/liburing/liburing/0001-test-Including-missing-string.h-for-memcpy.patch
rename meta-oe/recipes-support/liburing/{liburing_2.9.bb => liburing_2.12.bb} (91%)meta-oe/recipes-support/liburing/liburing/0001-test-Including-missing-string.h-for-memcpy.patch deleted +0 -39
@@ -1,39 +0,0 @@ -From c55874bc28f66d606527b940d4bd0f266bbaaa2c Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Mon, 17 Feb 2025 11:51:19 -0800 -Subject: [PATCH] test: Including missing string.h for memcpy - -Fixes -accept-test.c:39:2: error: call to undeclared library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] - -Upstream-Status: Submitted [https://github.com/axboe/liburing/pull/1351] -Signed-off-by: Khem Raj <[email protected]> ---- - test/232c93d07b74.c | 1 + - test/accept-test.c | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/test/232c93d07b74.c b/test/232c93d07b74.c -index d3053b9..d5677d3 100644 ---- a/test/232c93d07b74.c -+++ b/test/232c93d07b74.c -@@ -10,6 +10,7 @@ - #include <stdlib.h> - #include <stdint.h> - #include <assert.h> -+#include <string.h> - - #include <pthread.h> - #include <errno.h> -diff --git a/test/accept-test.c b/test/accept-test.c -index 99f6080..142b2de 100644 ---- a/test/accept-test.c -+++ b/test/accept-test.c -@@ -7,6 +7,7 @@ - #include <sys/socket.h> - #include <sys/un.h> - #include <assert.h> -+#include <string.h> - #include "liburing.h" - #include "helpers.h" -
meta-oe/recipes-support/liburing/liburing_2.12.bb renamed from meta-oe/recipes-support/liburing/liburing_2.9.bb +2 -3
@@ -9,9 +9,8 @@ SECTION = "libs" LICENSE = "LGPL-2.1-only | MIT" LIC_FILES_CHKSUM = "file://README;beginline=41;endline=44;md5=2b0e9926530c269f5ae95560370195af" -SRC_URI = "git://github.com/axboe/liburing.git;branch=master;protocol=https \ - file://0001-test-Including-missing-string.h-for-memcpy.patch" -SRCREV = "08468cc3830185c75f9e7edefd88aa01e5c2f8ab" +SRC_URI = "git://github.com/axboe/liburing.git;branch=master;protocol=https" +SRCREV = "e907d6a342e80b70874f93abd440b92b8a40b7bc" DEPENDS:append:libc-musl = " libucontext"