mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
e2fsprogs: upgrade 1.46.1 -> 1.46.2
(From OE-Core rev: 89ed9395b247e741fe667e7321be996b27d4e0c0) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
21bd255395
commit
3ac289eb81
+24
@@ -0,0 +1,24 @@
|
||||
From 42ba67f9a51ef959e7fd8dac29b5398c121c6976 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Fri, 30 Apr 2021 23:45:56 +0200
|
||||
Subject: [PATCH] lib/ext2fs/unix_io.c: do unlock on error
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/tytso/e2fsprogs/pull/68]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
lib/ext2fs/unix_io.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c
|
||||
index 64eee342..528c2fbc 100644
|
||||
--- a/lib/ext2fs/unix_io.c
|
||||
+++ b/lib/ext2fs/unix_io.c
|
||||
@@ -398,7 +398,7 @@ static errcode_t raw_write_blk(io_channel channel,
|
||||
mutex_lock(data, BOUNCE_MTX);
|
||||
if (ext2fs_llseek(data->dev, location, SEEK_SET) < 0) {
|
||||
retval = errno ? errno : EXT2_ET_LLSEEK_FAILED;
|
||||
- goto error_out;
|
||||
+ goto error_unlock;
|
||||
}
|
||||
actual = write(data->dev, buf, size);
|
||||
mutex_unlock(data, BOUNCE_MTX);
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
From 3593063f735f453d43f461292e26913436c11ca3 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Sat, 1 May 2021 13:06:12 +0200
|
||||
Subject: [PATCH] lib/ext2fs/unix_io.c: revert parts of "libext2fs: fix
|
||||
potential races in unix_io"
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/tytso/e2fsprogs/pull/68]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
lib/ext2fs/unix_io.c | 15 ++++++++-------
|
||||
1 file changed, 8 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c
|
||||
index 528c2fbc..f4916b21 100644
|
||||
--- a/lib/ext2fs/unix_io.c
|
||||
+++ b/lib/ext2fs/unix_io.c
|
||||
@@ -311,10 +311,10 @@ bounce_read:
|
||||
size += really_read;
|
||||
goto short_read;
|
||||
}
|
||||
- actual = size;
|
||||
- if (actual > align_size)
|
||||
- actual = align_size;
|
||||
- actual -= offset;
|
||||
+ if ((actual + offset) > align_size)
|
||||
+ actual = align_size - offset;
|
||||
+ if (actual > size)
|
||||
+ actual = size;
|
||||
memcpy(buf, data->bounce + offset, actual);
|
||||
|
||||
really_read += actual;
|
||||
@@ -455,9 +455,10 @@ bounce_write:
|
||||
}
|
||||
}
|
||||
actual = size;
|
||||
- if (actual > align_size)
|
||||
- actual = align_size;
|
||||
- actual -= offset;
|
||||
+ if ((actual + offset) > align_size)
|
||||
+ actual = align_size - offset;
|
||||
+ if (actual > size)
|
||||
+ actual = size;
|
||||
memcpy(((char *)data->bounce) + offset, buf, actual);
|
||||
if (ext2fs_llseek(data->dev, aligned_blk * align_size, SEEK_SET) < 0) {
|
||||
retval = errno ? errno : EXT2_ET_LLSEEK_FAILED;
|
||||
--
|
||||
2.24.0
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
From 9263b8764702f2b26ddaaf80808ebab31a1dba3b Mon Sep 17 00:00:00 2001
|
||||
From 8957443bcbea43685c76eb3cbc5009f7fd529283 Mon Sep 17 00:00:00 2001
|
||||
From: Jackie Huang <jackie.huang@windriver.com>
|
||||
Date: Wed, 10 Aug 2016 11:19:44 +0800
|
||||
Subject: [PATCH] Fix missing check for permission denied.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 6e4c1644a3a8cacf7c1f5953cc378589bb046d5a Mon Sep 17 00:00:00 2001
|
||||
From 3b75308cc75adc249db6ca36e42fe93309b9a018 Mon Sep 17 00:00:00 2001
|
||||
From: Ross Burton <ross.burton@intel.com>
|
||||
Date: Mon, 23 Dec 2013 13:38:34 +0000
|
||||
Subject: [PATCH] e2fsprogs: silence debugfs
|
||||
@@ -14,10 +14,10 @@ Signed-off-by: Ross Burton <ross.burton@intel.com>
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
|
||||
index 132c5f9d..98063727 100644
|
||||
index b67a88bc..76dd5556 100644
|
||||
--- a/debugfs/debugfs.c
|
||||
+++ b/debugfs/debugfs.c
|
||||
@@ -2510,7 +2510,7 @@ static int source_file(const char *cmd_file, int ss_idx)
|
||||
@@ -2518,7 +2518,7 @@ static int source_file(const char *cmd_file, int ss_idx)
|
||||
cp = strchr(buf, '\r');
|
||||
if (cp)
|
||||
*cp = 0;
|
||||
|
||||
+3
-1
@@ -4,6 +4,8 @@ SRC_URI += "file://remove.ldconfig.call.patch \
|
||||
file://run-ptest \
|
||||
file://ptest.patch \
|
||||
file://mkdir_p.patch \
|
||||
file://0001-lib-ext2fs-unix_io.c-do-unlock-on-error.patch \
|
||||
file://0001-lib-ext2fs-unix_io.c-revert-parts-of-libext2fs-fix-p.patch \
|
||||
"
|
||||
|
||||
SRC_URI_append_class-native = " file://e2fsprogs-fix-missing-check-for-permission-denied.patch \
|
||||
@@ -11,7 +13,7 @@ SRC_URI_append_class-native = " file://e2fsprogs-fix-missing-check-for-permissio
|
||||
"
|
||||
|
||||
|
||||
SRCREV = "3114c623f56b0d61f5f34b85f7b23d28f6c848c0"
|
||||
SRCREV = "1eea0e2bd9a6760ebad834d5d2cf700fffe5ebe2"
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+(\.\d+)*)$"
|
||||
|
||||
EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \
|
||||
Reference in New Issue
Block a user