diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-02-19 20:30:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-20 15:18:30 +0000 |
commit | b6763fa411f6c83372a61c3ffdebcafb956726e4 (patch) | |
tree | 5cbfc2bdba9294d0660809c8d54213ea0c3ecfbb /meta/recipes-devtools/e2fsprogs | |
parent | 9908b430f3845584218dec32295c7c4034396fc7 (diff) | |
download | poky-b6763fa411f6c83372a61c3ffdebcafb956726e4.tar.gz |
e2fsprogs: upgrade 1.46.5 -> 1.47.0
(From OE-Core rev: 2a174dfdd7c42f52802ebf7cbaace324b5174947)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-Add-option-to-enable-disable-largefile-support.patch | 57 | ||||
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-ext2fs-Use-64bit-lseek-when-_FILE_OFFSET_BITS-is-64.patch | 37 | ||||
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs/extents.patch | 56 | ||||
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs/quiet-debugfs.patch | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb (renamed from meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb) | 5 |
6 files changed, 6 insertions, 159 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-Add-option-to-enable-disable-largefile-support.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-Add-option-to-enable-disable-largefile-support.patch deleted file mode 100644 index a770d0cf89..0000000000 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-Add-option-to-enable-disable-largefile-support.patch +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | From 6fab3346d448298a24cee1faeb5fc8507a3b9712 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 10 Nov 2022 20:34:54 -0800 | ||
4 | Subject: [PATCH] Add option to enable/disable largefile support | ||
5 | |||
6 | fallocate can be used to have 64bit off_t provided its compiled with | ||
7 | _FILE_OFFSET_BITS=64 which will be added automatically when | ||
8 | --enable-largefile is used. | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/tytso/e2fsprogs/pull/129] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | configure.ac | 3 +++ | ||
14 | misc/e4defrag.c | 6 +----- | ||
15 | 2 files changed, 4 insertions(+), 5 deletions(-) | ||
16 | |||
17 | diff --git a/configure.ac b/configure.ac | ||
18 | index dff3d1ca..ec1c5b64 100644 | ||
19 | --- a/configure.ac | ||
20 | +++ b/configure.ac | ||
21 | @@ -1800,6 +1800,9 @@ OS_IO_FILE="" | ||
22 | ;; | ||
23 | esac] | ||
24 | AC_SUBST(OS_IO_FILE) | ||
25 | + | ||
26 | +AC_SYS_LARGEFILE | ||
27 | + | ||
28 | dnl | ||
29 | dnl Make our output files, being sure that we create the some miscellaneous | ||
30 | dnl directories | ||
31 | diff --git a/misc/e4defrag.c b/misc/e4defrag.c | ||
32 | index 86e97ee3..e7175c37 100644 | ||
33 | --- a/misc/e4defrag.c | ||
34 | +++ b/misc/e4defrag.c | ||
35 | @@ -195,10 +195,6 @@ static struct frag_statistic_ino frag_rank[SHOW_FRAG_FILES]; | ||
36 | #error posix_fadvise not available! | ||
37 | #endif | ||
38 | |||
39 | -#ifndef HAVE_FALLOCATE64 | ||
40 | -#error fallocate64 not available! | ||
41 | -#endif /* ! HAVE_FALLOCATE64 */ | ||
42 | - | ||
43 | /* | ||
44 | * get_mount_point() - Get device's mount point. | ||
45 | * | ||
46 | @@ -1568,7 +1564,7 @@ static int file_defrag(const char *file, const struct stat64 *buf, | ||
47 | /* Allocate space for donor inode */ | ||
48 | orig_group_tmp = orig_group_head; | ||
49 | do { | ||
50 | - ret = fallocate64(donor_fd, 0, | ||
51 | + ret = fallocate(donor_fd, 0, | ||
52 | (ext2_loff_t)orig_group_tmp->start->data.logical * block_size, | ||
53 | (ext2_loff_t)orig_group_tmp->len * block_size); | ||
54 | if (ret < 0) { | ||
55 | -- | ||
56 | 2.38.1 | ||
57 | |||
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-ext2fs-Use-64bit-lseek-when-_FILE_OFFSET_BITS-is-64.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-ext2fs-Use-64bit-lseek-when-_FILE_OFFSET_BITS-is-64.patch deleted file mode 100644 index 20ed6ecb3b..0000000000 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-ext2fs-Use-64bit-lseek-when-_FILE_OFFSET_BITS-is-64.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | From 1a8aaa8ff7f4aca68b5ae964458e49ab16b4315f Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 14 Dec 2022 20:56:44 -0800 | ||
4 | Subject: [PATCH] ext2fs: Use 64bit lseek when _FILE_OFFSET_BITS is 64 | ||
5 | |||
6 | Use lseek() with 64bit off_t when _FILE_OFFSET_BITS is 64 | ||
7 | this fixes build with musl where there is no _llseek but lseek | ||
8 | is using off_t which is 64bit on musl | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/tytso/e2fsprogs/pull/129] | ||
11 | Signe-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | lib/ext2fs/llseek.c | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/lib/ext2fs/llseek.c b/lib/ext2fs/llseek.c | ||
17 | index 922a0d56..45f21d09 100644 | ||
18 | --- a/lib/ext2fs/llseek.c | ||
19 | +++ b/lib/ext2fs/llseek.c | ||
20 | @@ -51,7 +51,7 @@ extern long long llseek (int fd, long long offset, int origin); | ||
21 | |||
22 | #else /* ! HAVE_LLSEEK */ | ||
23 | |||
24 | -#if SIZEOF_LONG == SIZEOF_LONG_LONG | ||
25 | +#if SIZEOF_LONG == SIZEOF_LONG_LONG || _FILE_OFFSET_BITS+0 == 64 | ||
26 | |||
27 | #define my_llseek lseek | ||
28 | |||
29 | @@ -69,7 +69,7 @@ static int _llseek (unsigned int, unsigned long, | ||
30 | |||
31 | static _syscall5(int,_llseek,unsigned int,fd,unsigned long,offset_high, | ||
32 | unsigned long, offset_low,ext2_loff_t *,result, | ||
33 | - unsigned int, origin) | ||
34 | + unsigned int, origin); | ||
35 | #endif | ||
36 | |||
37 | static ext2_loff_t my_llseek (int fd, ext2_loff_t offset, int origin) | ||
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch index 92bd0d0c1f..b038e61eb7 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From cce489c96aa3f4272a19d2137c2a46b439636712 Mon Sep 17 00:00:00 2001 | 1 | From 5bc75654690a2d916190168b865770a7c93e65dd Mon Sep 17 00:00:00 2001 |
2 | From: Jackie Huang <jackie.huang@windriver.com> | 2 | From: Jackie Huang <jackie.huang@windriver.com> |
3 | Date: Wed, 10 Aug 2016 11:19:44 +0800 | 3 | Date: Wed, 10 Aug 2016 11:19:44 +0800 |
4 | Subject: [PATCH] Fix missing check for permission denied. | 4 | Subject: [PATCH] Fix missing check for permission denied. |
@@ -19,7 +19,7 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | 19 | 1 file changed, 1 insertion(+), 1 deletion(-) |
20 | 20 | ||
21 | diff --git a/lib/support/profile.c b/lib/support/profile.c | 21 | diff --git a/lib/support/profile.c b/lib/support/profile.c |
22 | index f54739e7..53ea68f1 100644 | 22 | index bdb14b17..1bd62406 100644 |
23 | --- a/lib/support/profile.c | 23 | --- a/lib/support/profile.c |
24 | +++ b/lib/support/profile.c | 24 | +++ b/lib/support/profile.c |
25 | @@ -335,7 +335,7 @@ profile_init(const char * const *files, profile_t *ret_profile) | 25 | @@ -335,7 +335,7 @@ profile_init(const char * const *files, profile_t *ret_profile) |
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/extents.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/extents.patch deleted file mode 100644 index 2c09bb276d..0000000000 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/extents.patch +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | CVE: CVE-2022-1304 | ||
2 | Upstream-Status: Backport [ ab51d587bb9b229b1fade1afd02e1574c1ba5c76 ] | ||
3 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
4 | |||
5 | From 347084c9c1ad20f47dae16f5a3dcd8628d5fc7b0 Mon Sep 17 00:00:00 2001 | ||
6 | From: Lukas Czerner <lczerner@redhat.com> | ||
7 | Date: Thu, 21 Apr 2022 19:31:48 +0200 | ||
8 | Subject: [PATCH] e2fsprogs: add sanity check to extent manipulation | ||
9 | |||
10 | It is possible to have a corrupted extent tree in such a way that a leaf | ||
11 | node contains zero extents in it. Currently if that happens and we try | ||
12 | to traverse the tree we can end up accessing wrong data, or possibly | ||
13 | even uninitialized memory. Make sure we don't do that. | ||
14 | |||
15 | Additionally make sure that we have a sane number of bytes passed to | ||
16 | memmove() in ext2fs_extent_delete(). | ||
17 | |||
18 | Note that e2fsck is currently unable to spot and fix such corruption in | ||
19 | pass1. | ||
20 | |||
21 | Signed-off-by: Lukas Czerner <lczerner@redhat.com> | ||
22 | Reported-by: Nils Bars <nils_bars@t-online.de> | ||
23 | Addressess: https://bugzilla.redhat.com/show_bug.cgi?id=2068113 | ||
24 | --- | ||
25 | lib/ext2fs/extent.c | 8 ++++++++ | ||
26 | 1 file changed, 8 insertions(+) | ||
27 | |||
28 | diff --git a/lib/ext2fs/extent.c b/lib/ext2fs/extent.c | ||
29 | index b324c7b0..1a206a16 100644 | ||
30 | --- a/lib/ext2fs/extent.c | ||
31 | +++ b/lib/ext2fs/extent.c | ||
32 | @@ -495,6 +495,10 @@ retry: | ||
33 | ext2fs_le16_to_cpu(eh->eh_entries); | ||
34 | newpath->max_entries = ext2fs_le16_to_cpu(eh->eh_max); | ||
35 | |||
36 | + /* Make sure there is at least one extent present */ | ||
37 | + if (newpath->left <= 0) | ||
38 | + return EXT2_ET_EXTENT_NO_DOWN; | ||
39 | + | ||
40 | if (path->left > 0) { | ||
41 | ix++; | ||
42 | newpath->end_blk = ext2fs_le32_to_cpu(ix->ei_block); | ||
43 | @@ -1630,6 +1634,10 @@ errcode_t ext2fs_extent_delete(ext2_extent_handle_t handle, int flags) | ||
44 | |||
45 | cp = path->curr; | ||
46 | |||
47 | + /* Sanity check before memmove() */ | ||
48 | + if (path->left < 0) | ||
49 | + return EXT2_ET_EXTENT_LEAF_BAD; | ||
50 | + | ||
51 | if (path->left) { | ||
52 | memmove(cp, cp + sizeof(struct ext3_extent_idx), | ||
53 | path->left * sizeof(struct ext3_extent_idx)); | ||
54 | -- | ||
55 | 2.25.1 | ||
56 | |||
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/quiet-debugfs.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/quiet-debugfs.patch index d695580c92..0a6904208d 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/quiet-debugfs.patch +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/quiet-debugfs.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 20bf59365646af0466c1910e8763b352380b26d6 Mon Sep 17 00:00:00 2001 | 1 | From 580ef6cae2d353f3aa5d5c52d6614bdc1df50f08 Mon Sep 17 00:00:00 2001 |
2 | From: Ross Burton <ross.burton@intel.com> | 2 | From: Ross Burton <ross.burton@intel.com> |
3 | Date: Mon, 23 Dec 2013 13:38:34 +0000 | 3 | Date: Mon, 23 Dec 2013 13:38:34 +0000 |
4 | Subject: [PATCH] e2fsprogs: silence debugfs | 4 | Subject: [PATCH] e2fsprogs: silence debugfs |
@@ -14,10 +14,10 @@ Signed-off-by: Ross Burton <ross.burton@intel.com> | |||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
15 | 15 | ||
16 | diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c | 16 | diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c |
17 | index b67a88bc..76dd5556 100644 | 17 | index 9b6321dc..8ebf3ddb 100644 |
18 | --- a/debugfs/debugfs.c | 18 | --- a/debugfs/debugfs.c |
19 | +++ b/debugfs/debugfs.c | 19 | +++ b/debugfs/debugfs.c |
20 | @@ -2518,7 +2518,7 @@ static int source_file(const char *cmd_file, int ss_idx) | 20 | @@ -2516,7 +2516,7 @@ static int source_file(const char *cmd_file, int ss_idx) |
21 | cp = strchr(buf, '\r'); | 21 | cp = strchr(buf, '\r'); |
22 | if (cp) | 22 | if (cp) |
23 | *cp = 0; | 23 | *cp = 0; |
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb index ceceb7edcc..2620610903 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb | |||
@@ -4,16 +4,13 @@ SRC_URI += "file://remove.ldconfig.call.patch \ | |||
4 | file://run-ptest \ | 4 | file://run-ptest \ |
5 | file://ptest.patch \ | 5 | file://ptest.patch \ |
6 | file://mkdir_p.patch \ | 6 | file://mkdir_p.patch \ |
7 | file://extents.patch \ | ||
8 | file://0001-Add-option-to-enable-disable-largefile-support.patch \ | ||
9 | file://0001-ext2fs-Use-64bit-lseek-when-_FILE_OFFSET_BITS-is-64.patch \ | ||
10 | " | 7 | " |
11 | SRC_URI:append:class-native = " \ | 8 | SRC_URI:append:class-native = " \ |
12 | file://e2fsprogs-fix-missing-check-for-permission-denied.patch \ | 9 | file://e2fsprogs-fix-missing-check-for-permission-denied.patch \ |
13 | file://quiet-debugfs.patch \ | 10 | file://quiet-debugfs.patch \ |
14 | " | 11 | " |
15 | 12 | ||
16 | SRCREV = "02540dedd3ddc52c6ae8aaa8a95ce75c3f8be1c0" | 13 | SRCREV = "f4c9cc4bedacde8408edda3520a32d3842290112" |
17 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+(\.\d+)*)$" | 14 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+(\.\d+)*)$" |
18 | 15 | ||
19 | EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \ | 16 | EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \ |