summaryrefslogtreecommitdiffstats
path: root/meta-filesystems/recipes-utils
diff options
context:
space:
mode:
Diffstat (limited to 'meta-filesystems/recipes-utils')
-rw-r--r--meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb2
-rw-r--r--meta-filesystems/recipes-utils/e2tools/e2tools_0.1.2.bb6
-rw-r--r--meta-filesystems/recipes-utils/ufs-utils/files/0001-ufs_cmds-fix-full_path-buffer-size-in-find_bsg_devic.patch39
-rw-r--r--meta-filesystems/recipes-utils/ufs-utils/ufs-utils_7.14.12.bb1
4 files changed, 45 insertions, 3 deletions
diff --git a/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
index 913b2c1d32..61ec508b43 100644
--- a/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
+++ b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
@@ -21,6 +21,8 @@ UPSTREAM_CHECK_COMMITS = "1"
21 21
22PV = "4.9+git" 22PV = "4.9+git"
23 23
24#i686-yoe-linux-ld.bfd: /usr/src/debug/glibc/2.41+git/stdio-common/../stdio-common/printf_fphex.c:123:(.text+0xdf): undefined reference to `__letf2'
25LDFLAGS:append:libc-glibc:toolchain-clang:x86 = " --rtlib=libgcc --unwindlib=libgcc"
24 26
25export HOSTCC = "${BUILD_CC}" 27export HOSTCC = "${BUILD_CC}"
26do_configure:prepend() { 28do_configure:prepend() {
diff --git a/meta-filesystems/recipes-utils/e2tools/e2tools_0.1.2.bb b/meta-filesystems/recipes-utils/e2tools/e2tools_0.1.2.bb
index 38fa8b439e..219735acd1 100644
--- a/meta-filesystems/recipes-utils/e2tools/e2tools_0.1.2.bb
+++ b/meta-filesystems/recipes-utils/e2tools/e2tools_0.1.2.bb
@@ -34,11 +34,11 @@ do_install_ptest() {
34 rm -rf "${D}${PTEST_PATH}/*" 34 rm -rf "${D}${PTEST_PATH}/*"
35 cp -r ../build "${D}${PTEST_PATH}" 35 cp -r ../build "${D}${PTEST_PATH}"
36 cp -r "${S}/build-aux" "${D}${PTEST_PATH}/build" 36 cp -r "${S}/build-aux" "${D}${PTEST_PATH}/build"
37 cp -r "${S}" "${D}${PTEST_PATH}" 37 cp -r "${UNPACKDIR}" "${D}${PTEST_PATH}/"
38 rm -rf ${D}${PTEST_PATH}/build/config.log \ 38 rm -rf ${D}${PTEST_PATH}/build/config.log \
39 ${D}${PTEST_PATH}/build/autom4te.cache \ 39 ${D}${PTEST_PATH}/build/autom4te.cache \
40 ${D}${PTEST_PATH}/*/.git ${D}${PTEST_PATH}/*/.github \ 40 ${D}${PTEST_PATH}/*/*/.git ${D}${PTEST_PATH}/*/*/.github \
41 ${D}${PTEST_PATH}/*/autom4te.cache 41 ${D}${PTEST_PATH}/*/*/autom4te.cache
42 sed -i -e 's;${TMPDIR};;g' ${D}${PTEST_PATH}/build/config.status 42 sed -i -e 's;${TMPDIR};;g' ${D}${PTEST_PATH}/build/config.status
43} 43}
44 44
diff --git a/meta-filesystems/recipes-utils/ufs-utils/files/0001-ufs_cmds-fix-full_path-buffer-size-in-find_bsg_devic.patch b/meta-filesystems/recipes-utils/ufs-utils/files/0001-ufs_cmds-fix-full_path-buffer-size-in-find_bsg_devic.patch
new file mode 100644
index 0000000000..7ae858a65e
--- /dev/null
+++ b/meta-filesystems/recipes-utils/ufs-utils/files/0001-ufs_cmds-fix-full_path-buffer-size-in-find_bsg_devic.patch
@@ -0,0 +1,39 @@
1From 989dcd297223d6896c5892532d14984326fa093d Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Fri, 18 Jul 2025 16:52:57 +0800
4Subject: [PATCH] ufs_cmds: fix full_path buffer size in find_bsg_device
5
6The full_path buffer consists of: path + '/' + files->d_name + '\0'
7So the buffer size should be: strlen(path) + strlen(files->d_name) + 2
8
9Fix crash when running 32-bit binary on 64-bit system:
10$ ufs-utils list_bsg
11malloc(): invalid next size (unsorted)
12Aborted (core dumped)
13
14Fix #58
15
16Upstream-Status: Backport
17[https://github.com/SanDisk-Open-Source/ufs-utils/commit/989dcd297223d6896c5892532d14984326fa093d]
18
19Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
20---
21 ufs_cmds.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24diff --git a/ufs_cmds.c b/ufs_cmds.c
25index ddb037c..a6faa27 100644
26--- a/ufs_cmds.c
27+++ b/ufs_cmds.c
28@@ -1520,7 +1520,7 @@ static int find_bsg_device(char* path, int *counter) {
29 if ((strcmp(files->d_name, ".") != 0) &&
30 (strcmp(files->d_name, "..") != 0)) {
31 char *full_path = (char *)malloc(strlen(path) +
32- strlen(files->d_name) + 1);
33+ strlen(files->d_name) + 2);
34 sprintf(full_path, "%s/%s",
35 path, files->d_name);
36 rc = find_bsg_device(full_path, counter);
37--
382.34.1
39
diff --git a/meta-filesystems/recipes-utils/ufs-utils/ufs-utils_7.14.12.bb b/meta-filesystems/recipes-utils/ufs-utils/ufs-utils_7.14.12.bb
index bcece228f5..0366654d7b 100644
--- a/meta-filesystems/recipes-utils/ufs-utils/ufs-utils_7.14.12.bb
+++ b/meta-filesystems/recipes-utils/ufs-utils/ufs-utils_7.14.12.bb
@@ -7,6 +7,7 @@ BRANCH ?= "dev"
7SRCREV = "dd2e655780424eadf7610de33e5966be19168a95" 7SRCREV = "dd2e655780424eadf7610de33e5966be19168a95"
8 8
9SRC_URI = "git://github.com/westerndigitalcorporation/ufs-utils.git;protocol=https;branch=${BRANCH} \ 9SRC_URI = "git://github.com/westerndigitalcorporation/ufs-utils.git;protocol=https;branch=${BRANCH} \
10 file://0001-ufs_cmds-fix-full_path-buffer-size-in-find_bsg_devic.patch \
10 " 11 "
11 12
12UPSTREAM_CHECK_COMMITS = "1" 13UPSTREAM_CHECK_COMMITS = "1"