Skip to contentSkip to conversation

zfs: upgrade 2.4.1 -> 2.4.3

PATCH New Khem Raj 1 participant 5 messages Jul 29

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/5 zfs: upgrade 2.4.1 -> 2.4.3

Two upstream stable point releases. The "2.4.99" that the automated version checker reports is the OpenZFS development/META tag on master, not a real release; 2.4.3 is the newest 2.4.x stable.

2.4.2:
* Linux mount API rewrite: a new fs_parse-based mount-parameter parser replaces the legacy options parser and zpl_parse_monolithic; support for the old mount API is removed and the build now refuses to build without fs_context. vfs_t lifetime is tied to fs_context.
* Linux 7.0/7.1 compatibility: fs_context shims, explicit setlease handler (also for directories), posix_acl_to_xattr() allocation, blk_queue_nonrot()->blk_queue_rot(), removal of the minimum kernel version check.
* dRAID fixes: checksum errors after rebuild with degraded disks, import failure after disk replacement, data corruption after disk clear, sequential-resilver reads from degraded vdevs.
* Data-integrity fixes: read corruption after block-clone-after- truncate, range-tree corruption race in dnode_sync(), a use-after-free in dmu_write_direct_done(), "kernel BUG at mm/usercopy.c".
* New feature: POSIX_FADV_DONTNEED support.
* Build: SPDX tags + spdxcheck enforcement, "make dist" uses pax tar, objtool taken from $kernelbuild.

2.4.3:
* Security/robustness hardening: enforce exact decompressed length for lz4/gzip/zstd, validate size fields/strings and reject un-terminated strings in packed nvlists, sharenfs invalid-character check, extended zfs_ioc_set_prop() secpolicy, key lookup failures always return EACCES, ZVOL encryption-key check for block cloning, and removal of /etc/sudoers.d/zfs.
* Correctness: double free for blocks cloned after DDT prune, off-by- one in the redaction handler dropping the last block, several lock-ordering/lockdep fixes, FreeBSD cache_vop_rename panic fix.
* Linux: properly apply ro/rw mount option to the superblock, Linux 5.6 fs_parse API mismatch fix, spl_kvmalloc strips __GFP_COMP before vmalloc().
* aarch64 build failure fixed by removing earlyclobber.

Supported kernel range is now 4.18 - 7.0.

---
 .../recipes-filesystems/zfs/{zfs_2.4.1.bb => zfs_2.4.3.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-filesystems/recipes-filesystems/zfs/{zfs_2.4.1.bb => zfs_2.4.3.bb} (98%)
meta-filesystems/recipes-filesystems/zfs/zfs_2.4.3.bb renamed from meta-filesystems/recipes-filesystems/zfs/zfs_2.4.1.bb +1 -1
similarity index 98%
rename from meta-filesystems/recipes-filesystems/zfs/zfs_2.4.1.bb
rename to meta-filesystems/recipes-filesystems/zfs/zfs_2.4.3.bb
index 5c02d58242..241ae19209 100644
@@ -4,7 +4,7 @@ LICENSE = "CDDL-1.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=7087caaf1dc8a2856585619f4a787faa"
 HOMEPAGE = "https://github.com/openzfs/zfs"
 
-SRCREV = "1c702dda346a59e05cfd3029569bbb1d5d91c54b"
+SRCREV = "83020cf8259d057d4cc9102010c05f07ffdfc136"
 SRC_URI = "git://github.com/openzfs/zfs;protocol=https;branch=zfs-2.4-release;tag=${BP} \
            file://0001-Define-strndupa-if-it-does-not-exist.patch \
            file://aaf28a4630af60496c9d33db1d06a7d7d8983422.patch \
author
#1 lore raw

PATCH 2/5 yaffs2-utils: update to latest git (20221209 -> 20260629)

Advance the SRCREV by 14 commits to the current master tip (474b3acb, committed 2026-06-29) and bump PV to that commit date per the recipe's date-based versioning convention.

Notable changes in this range (Aleph One / Charles Manning):
* yaffs_guts.c: fix the size of the allocated buffer for unmanaged buffers (real bugfix).
* Fully deinitialise the cache when unmounting (real bugfix).
* yaffs_guts.c: use AND instead of remainder for hash calculation.
* Move Linux attribute handling out of the core into yaffs_linux_attribs.c (affects only the out-of-tree kernel module, which this recipe does not build).
* Remove K&R function declarations, silence gcc warnings on the dtest filename array, several benign typo/whitespace cleanups, and power-fail stress-test reporting improvements.

---
 .../recipes-filesystems/yaffs2/yaffs2-utils_git.bb            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb +2 -2
index d30309a95a..38165387f4 100644
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://utils/mkyaffs2image.c;beginline=11;endline=13;md5=5f5
                     "
 
 # The commit date of SRCREV
-PV = "20221209"
+PV = "20260629"
 
 DEPENDS = "mtd-utils"
 
@@ -21,7 +21,7 @@ SRC_URI = "git://github.com/Aleph-One-Ltd/yaffs2;protocol=https;branch=master \
            file://0004-utils-Makefile-fix-symbolic-links.patch \
            "
 
-SRCREV = "68030683543cccb4d942e3fedbcad1dc267e261c"
+SRCREV = "474b3acb927d27b2305618aaf24456b9d33fe91b"
 
 UPSTREAM_CHECK_COMMITS = "1"
 
author
#2 lore raw

PATCH 3/5 nilfs-utils: upgrade v2.2.11 -> v2.3.1

In reply to Khem Raj

Move from the v2.2.y stable branch to the v2.3.y line (tag v2.3.1, 2026-06-19). v2.3.x carries all v2.2.6..v2.2.16 backports plus the 2.3.0 rework.

Security:
* CVE-2026-55392: validate s_log_block_size in nilfs_sb_is_valid(). A crafted NILFS2 image with s_log_block_size > 6 caused oversized shifts / huge allocations in nilfs-tune, dumpseg and any tool reading a device.

2.3.0 highlights:
* Utilities (lscp, lssu, nilfs-clean, ...) accept file/directory arguments and auto-resolve the backing device.
* cleanerd: cap segments per cleaning step by free segments (avoids stalling near ENOSPC) and against 32-bit size_t overflow; clean SIGINT exit, SIGUSR1 state dump.
* Library refactor with an API/ABI break: obsolete APIs and internal structs removed from public headers, new segment I/O / resize / freeze-thaw APIs, types unified to uint32_t/uint64_t/bool.
* mkfs.nilfs2 sets the block-count read-only-compat flag by default.

Packaging-relevant build-system changes:
* Soname bump libnilfs/libnilfsgc 2 -> 3; libnilfscleaner is no longer a shared library (now an internal convenience lib), so libnilfscleaner.so.* correctly disappears from the runtime package.
* New pkg-config producer files (nilfs.pc, nilfsgc.pc) land in ${libdir}/pkgconfig -> require inherit pkgconfig.
* LT_INIT([disable-static]) means static libs are no longer installed.
* The old --with-base-sbindir knob was replaced upstream by an --enable-usrmerge=(no|sbin|bin|auto) mechanism. Drop the local 0001-configure.ac-Add-knob-to-define-base-sbindir.patch and select the hierarchy explicitly from DISTRO_FEATURES, because the "auto" default probes the build host and is wrong when cross compiling. LDCONFIG=true is still required.

---
 ...e.ac-Add-knob-to-define-base-sbindir.patch | 35 -------------------
 .../nilfs-utils/nilfs-utils_v2.2.11.bb        | 16 ---------
 .../nilfs-utils/nilfs-utils_v2.3.1.bb         | 18 ++++++++++
 3 files changed, 18 insertions(+), 51 deletions(-)
 delete mode 100644 meta-filesystems/recipes-utils/nilfs-utils/nilfs-utils/0001-configure.ac-Add-knob-to-define-base-sbindir.patch
 delete mode 100644 meta-filesystems/recipes-utils/nilfs-utils/nilfs-utils_v2.2.11.bb
 create mode 100644 meta-filesystems/recipes-utils/nilfs-utils/nilfs-utils_v2.3.1.bb
meta-filesystems/recipes-utils/nilfs-utils/nilfs-utils/0001-configure.ac-Add-knob-to-define-base-sbindir.patch deleted +0 -35
deleted file mode 100644
index e53d2bdc8b..0000000000
@@ -1,35 +0,0 @@
-From 1b8f420ec8852355580dd925c0316798d4fa7449 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Thu, 3 Jul 2025 19:32:12 -0700
-Subject: [PATCH] configure.ac: Add knob to define base sbindir
-
-This helps when distros use converged directories with usrmerge
-set --with-base-sbindir=DIR accordingly so it respects the
-distro policy
-
-Upstream-Status: Pending
-Signed-off-by: Khem Raj <[email protected]>
----
- configure.ac | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 9a2f5ff..ce2c853 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -186,7 +186,14 @@ AC_SYS_LARGEFILE
- AC_PREFIX_DEFAULT([/usr])
- test "x$prefix" = "xNONE" && prefix="/usr"
- test "x$exec_prefix" = "xNONE" && exec_prefix="${prefix}"
--AC_SUBST([root_sbindir], [/sbin])
-+
-+AC_ARG_WITH([base-sbindir],
-+    [AS_HELP_STRING([--with-base-sbindir=DIR],
-+        [specify root system binary directory @<:@default=/sbin@:>@])],
-+    [root_sbindir="$withval"],
-+    [root_sbindir="/sbin"])
-+
-+AC_SUBST([root_sbindir])
- AC_SUBST([sbindir], [${exec_prefix}/sbin])
- AC_SUBST([sysconfdir], [/etc])
- AC_SUBST([localstatedir], [/var])
meta-filesystems/recipes-utils/nilfs-utils/nilfs-utils_v2.2.11.bb deleted +0 -16
deleted file mode 100644
index b68f68a02e..0000000000
@@ -1,16 +0,0 @@
-SUMMARY = "nilfs-utils is a set of utilities for managing the NILFS filesystem."
-HOMEPAGE = "https://nilfs.sourceforge.io/"
-
-LICENSE = "GPL-2.0-only AND LGPL-2.1-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=385034ac639a62b8415db9814582ee98"
-SRC_URI = "git://github.com/nilfs-dev/nilfs-utils.git;protocol=https;branch=v2.2.y;tag=${PV} \
-           file://0001-configure.ac-Add-knob-to-define-base-sbindir.patch"
-
-SRCREV = "507064bb3604d0fd88f5e3f6422d9ade73a26120"
-
-DEPENDS = "util-linux util-linux-libuuid"
-
-inherit autotools
-
-# make install is trying to run ldconfig, not suitable for cross builds
-EXTRA_OECONF += "LDCONFIG=true --with-base-sbindir=${base_sbindir}"
meta-filesystems/recipes-utils/nilfs-utils/nilfs-utils_v2.3.1.bb new file +18 -0
new file mode 100644
index 0000000000..be9442c5e1
@@ -0,0 +1,18 @@
+SUMMARY = "nilfs-utils is a set of utilities for managing the NILFS filesystem."
+HOMEPAGE = "https://nilfs.sourceforge.io/"
+
+LICENSE = "GPL-2.0-only AND LGPL-2.1-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=385034ac639a62b8415db9814582ee98"
+SRC_URI = "git://github.com/nilfs-dev/nilfs-utils.git;protocol=https;branch=v2.3.y;tag=${PV}"
+
+SRCREV = "805edb2a35178dc1d3d64a553af607fb500ab21d"
+
+DEPENDS = "util-linux util-linux-libuuid"
+
+inherit autotools pkgconfig
+
+# make install is trying to run ldconfig, not suitable for cross builds.
+# The UsrMerge hierarchy is autodetected by probing the build host, which is
+# wrong when cross compiling, so select it explicitly from DISTRO_FEATURES.
+EXTRA_OECONF += "LDCONFIG=true \
+                 ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '--enable-usrmerge=sbin', '--enable-usrmerge=no', d)}"
author
#3 lore raw

PATCH 4/5 xfstests: upgrade 2025.04.27 -> 2026.07.21

In reply to Khem Raj

387 commits across 21 fortnightly releases (739 files changed, +16397/-2042). 114 new tests added (xfs x44, generic x32, btrfs x16, f2fs x14, ext4 x3, overlay x2, selftest x2, ceph x1) and one removed (xfs/539).

Major themes:
* Multi-block atomic writes: new common/atomicwrites, fio atomic-write helpers, fsx atomic-write support, and O_[D]SYNC / sudden-shutdown / bigalloc / hardware-AWU atomic tests.
* XFS zoned / RT-device work: common/zoned with zloop helpers, zoned growfs, zone-alignment mkfs checks, zone GC low-space, external and internal realtime device support.
* New xfs_healer test family (background repair service).
* file_getattr(2)/file_setattr(2) support (new src/file_attr.c, AC_HAVE_FILE_GETATTR probe), VFS delegation tests, and a new fsnotify/fanotify error-reporting helper (src/fs-monitor.c).
* Infrastructure: treewide $MOUNT_PROG -> _mount conversion, temp files moved to $TMPDIR, systemd-coredump collection in check.

Build-system: configure.ac gains AC_HAVE_FILE_GETATTR and a btrfs_ioctl_received_subvol_args type check; src/Makefile adds unlink-fsync, truncate, rw_hint, fs-monitor, btrfs_ioctl and a conditional file_attr target. No new link libraries, so no DEPENDS change is needed. LICENSE checksum unchanged.

Recipe patch changes:
* Drop 0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch:
its rationale (glibc sys/mount.h vs linux/mount.h clash reached via src/vfs/utils.c) no longer applies because utils.c no longer includes sys/mount.h, and the src/Makefile hunk no longer applied anyway.
* Add 0001-locktest-do-not-tie-struct-delegation-to-the-F_GETDE.patch:
glibc 2.43 defines F_GETDELEG/F_SETDELEG but neither glibc nor the kernel UAPI declares struct delegation, so tying the struct to the "#ifndef F_GETDELEG" guard leaves it undefined and locktest fails to build with "variable has incomplete type 'struct delegation'".

Also bump the bundled unionmount-testsuite by one commit (dir-weird-open-dir.py adjusted to the upstream kernel).

---
 ...tie-struct-delegation-to-the-F_GETDE.patch | 52 +++++++++++++++++++
 ...unts_propagation-and-remove-sys-moun.patch | 31 -----------
 ...s_2025.04.27.bb => xfstests_2026.07.21.bb} |  6 +--
 3 files changed, 55 insertions(+), 34 deletions(-)
 create mode 100644 meta-filesystems/recipes-utils/xfstests/xfstests/0001-locktest-do-not-tie-struct-delegation-to-the-F_GETDE.patch
 delete mode 100644 meta-filesystems/recipes-utils/xfstests/xfstests/0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch
 rename meta-filesystems/recipes-utils/xfstests/{xfstests_2025.04.27.bb => xfstests_2026.07.21.bb} (93%)
meta-filesystems/recipes-utils/xfstests/xfstests/0001-locktest-do-not-tie-struct-delegation-to-the-F_GETDE.patch new file +52 -0
new file mode 100644
index 0000000000..4139b9fd94
@@ -0,0 +1,52 @@
+From 784139a16a03cd0c6486e4b587b995e9d5ab21dd Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 29 Jul 2026 05:10:29 +0000
+Subject: [PATCH] locktest: do not tie struct delegation to the F_GETDELEG
+ guard
+
+glibc 2.43 added F_GETDELEG/F_SETDELEG to <bits/fcntl-linux.h>, but it
+does not declare struct delegation and neither does the kernel UAPI.
+
+locktest.c defined struct delegation inside "#ifndef F_GETDELEG", which
+assumes that any libc providing the fcntl commands also provides the
+struct. On glibc 2.43+ the guard is taken, the struct is never defined
+and the build fails:
+
+  locktest.c:1065:20: error: variable has incomplete type 'struct delegation'
+  locktest.c:1365:23: error: variable has incomplete type 'struct delegation'
+  locktest.c:1615:20: error: variable has incomplete type 'struct delegation'
+
+Keep the F_GETDELEG/F_SETDELEG fallbacks guarded, but define the struct
+unconditionally since no libc declares it.
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/locktest.c | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/src/locktest.c b/src/locktest.c
+index 54ee1f0..e24a0fe 100644
+--- a/src/locktest.c
++++ b/src/locktest.c
+@@ -80,13 +80,18 @@ extern int h_errno;
+ #ifndef F_GETDELEG
+ #define F_GETDELEG	(1024 + 15)
+ #define F_SETDELEG	(1024 + 16)
++#endif
+ 
++/*
++ * glibc 2.43 added F_GETDELEG/F_SETDELEG to <bits/fcntl-linux.h> but it does
++ * not declare struct delegation, and neither does the kernel UAPI. Therefore
++ * the struct definition cannot be tied to the F_GETDELEG guard above.
++ */
+ struct delegation {
+ 	uint32_t d_flags;
+ 	uint16_t d_type;
+ 	uint16_t __pad;
+ };
+-#endif
+ 
+ static char	*prog;
+ static char	*filename = 0;
meta-filesystems/recipes-utils/xfstests/xfstests/0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch deleted +0 -31
deleted file mode 100644
index 9fdf69ff46..0000000000
@@ -1,31 +0,0 @@
-From 340e708f79b824816aacfa74e330d8acdafc5129 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Sun, 14 Aug 2022 13:33:05 -0700
-Subject: [PATCH] Drop detached_mounts_propagation and remove sys/mount.h from
- vfs/utils.c
-
-with glibc 2.36+ sys/mount.h conflicts with linux/mount.h and here
-linux/mount.h is included via xfs/xfs.h header and we need sys/mount.h
-for the mount() API prototype. Until thats resolved lets not build this
-testcase
-
-Upstream-Status: Inappropriate [Libc specific Workaround]
-
-Signed-off-by: Khem Raj <[email protected]>
----
- src/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/Makefile b/src/Makefile
-index 6ac72b36..5472ba66 100644
---- a/src/Makefile
-+++ b/src/Makefile
-@@ -34,7 +34,7 @@ LINUX_TARGETS = xfsctl bstat t_mtab getdevicesize preallo_rw_pattern_reader \
- 	dio-invalidate-cache stat_test t_encrypted_d_revalidate \
- 	attr_replace_test swapon mkswap t_attr_corruption t_open_tmpfiles \
- 	fscrypt-crypt-util bulkstat_null_ocount splice-test chprojid_fail \
--	detached_mounts_propagation ext4_resize t_readdir_3 splice2pipe \
-+	ext4_resize t_readdir_3 splice2pipe \
- 	uuid_ioctl t_snapshot_deleted_subvolume fiemap-fault min_dio_alignment
- 
- EXTRA_EXECS = dmerror fill2attr fill2fs fill2fs_check scaleread.sh \
meta-filesystems/recipes-utils/xfstests/xfstests_2026.07.21.bb renamed from meta-filesystems/recipes-utils/xfstests/xfstests_2025.04.27.bb +3 -3
similarity index 93%
rename from meta-filesystems/recipes-utils/xfstests/xfstests_2025.04.27.bb
rename to meta-filesystems/recipes-utils/xfstests/xfstests_2026.07.21.bb
index 9e86b77c5e..e03290aaa0 100644
@@ -2,17 +2,17 @@ SUMMARY = "File system QA test suite"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=74274e8a218423e49eefdea80bc55038"
 
-SRCREV = "92c428db1fe3fa4f7bd2593788bc9b71403d59ae"
-SRCREV_unionmount = "c6ab621ac19f2b96d34cd98f244e611750e2bb23"
+SRCREV = "f8833996b76765e9f1e5650fc77470e92fcf8a82"
+SRCREV_unionmount = "f48a57d2a7db5f86ff3dbc4444c3c3041e182d7d"
 SRCREV_FORMAT = "default_unionmount"
 
 SRC_URI = "git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git;branch=master;tag=v${PV} \
            git://github.com/amir73il/unionmount-testsuite.git;branch=master;protocol=https;name=unionmount;destsuffix=unionmount-testsuite \
            file://0001-add-missing-FTW_-macros-when-not-available-in-libc.patch \
-           file://0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch \
            file://0001-include-libgen.h-for-basename-API-prototype.patch \
            file://0002-Add-missing-STATX_ATTR_-defines-from-musl-sys-stat.h.patch \
            file://0001-bstat-use-uint32_t-instead-of-__uint32_t-to-fix-buil.patch \
+           file://0001-locktest-do-not-tie-struct-delegation-to-the-F_GETDE.patch \
            "
 
 
author
#4 lore raw

PATCH 5/5 exfatprogs: upgrade 1.4.1 -> 1.4.2

In reply to Khem Raj

Upstream changes (NEWS):
* dump.exfat: prevent a heap buffer overflow in name parsing.
* Install lsdosattr and chdosattr in /bin instead of /sbin (covered by the default FILES:${PN}, so packaging is unaffected).
* libexfat: use __builtin_popcountl() throughout and add an internal exfat_count_used_clusters() helper (static lib, no ABI impact).

No dependency or build-system changes; configure.ac is unchanged, so DEPENDS and the ptest install steps stay as-is.

While enabling the ptest image (meta-filesystems-image-ptest-exfatprogs) on qemux86-64, the upcase_table test cases (present since 1.4.0, so this is a pre-existing failure now exercised) failed because they used truncate and xxd -r - <file>, which are unavailable in a BusyBox core-image-minimal rootfs:

truncate: command not found
FAIL: to create corrupted image

Add 0001-tests-upcase_table-use-dd-printf-instead-of-truncate.patch, which rewrites those scripts to size the image with dd and poke the corrupted bytes with printf|dd (tools already present in the base image). ptest result on qemux86-64 is now 23 of 23 passing.

---
 ...le-use-dd-printf-instead-of-truncate.patch | 230 ++++++++++++++++++
 ...xfatprogs_1.4.1.bb => exfatprogs_1.4.2.bb} |   3 +-
 2 files changed, 232 insertions(+), 1 deletion(-)
 create mode 100644 meta-filesystems/recipes-utils/exfatprogs/exfatprogs/0001-tests-upcase_table-use-dd-printf-instead-of-truncate.patch
 rename meta-filesystems/recipes-utils/exfatprogs/{exfatprogs_1.4.1.bb => exfatprogs_1.4.2.bb} (88%)
meta-filesystems/recipes-utils/exfatprogs/exfatprogs/0001-tests-upcase_table-use-dd-printf-instead-of-truncate.patch new file +230 -0
new file mode 100644
index 0000000000..cac60c2325
@@ -0,0 +1,230 @@
+From de421347db0026110c4997ef48bdd16f50a5a65b Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 29 Jul 2026 05:34:27 +0000
+Subject: [PATCH] tests: upcase_table: use dd/printf instead of truncate and
+ xxd -r
+
+The upcase_table test scripts used `truncate` (coreutils) and
+`xxd -r - <file>` to build and corrupt the test image. In minimal
+images (e.g. Yocto core-image-minimal + BusyBox) `truncate` is often
+absent and BusyBox's `xxd` applet does not implement the two-operand
+`xxd -r - <file>` revert form, so the scripts fail with:
+
+  truncate: command not found
+  FAIL: to create corrupted image
+
+Every xxd/truncate use here reduces to "size the image to 32 MiB" and
+"write one constant byte at a computed offset", both of which `dd`
+(with printf for the byte value) does portably with tools already
+present in a base rootfs.
+
+Upstream-Status: Submitted [https://github.com/exfatprogs/exfatprogs]
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ ...le-use-dd-printf-instead-of-truncate.patch | 111 ++++++++++++++++++
+ .../0001-TableChecksum-and-upcase-table.sh    |   6 +-
+ tests/upcase_table/0002-FirstCluster.sh       |   4 +-
+ tests/upcase_table/0003-DataLength.sh         |   6 +-
+ tests/upcase_table/0004-EntryType.sh          |   4 +-
+ 5 files changed, 121 insertions(+), 10 deletions(-)
+ create mode 100644 out/0001-tests-upcase_table-use-dd-printf-instead-of-truncate.patch
+
+diff --git a/out/0001-tests-upcase_table-use-dd-printf-instead-of-truncate.patch b/out/0001-tests-upcase_table-use-dd-printf-instead-of-truncate.patch
+new file mode 100644
+index 0000000..2cec31f
+--- /dev/null
++++ b/out/0001-tests-upcase_table-use-dd-printf-instead-of-truncate.patch
+@@ -0,0 +1,111 @@
++From 65d12741714de046a37ef3cf4ae2c1660235901a Mon Sep 17 00:00:00 2001
++From: Khem Raj <[email protected]>
++Date: Wed, 29 Jul 2026 05:34:27 +0000
++Subject: [PATCH] tests: upcase_table: use dd/printf instead of truncate and
++ xxd -r
++
++The upcase_table test scripts used `truncate` (coreutils) and
++`xxd -r - <file>` to build and corrupt the test image. In minimal
++images (e.g. Yocto core-image-minimal + BusyBox) `truncate` is often
++absent and BusyBox's `xxd` applet does not implement the two-operand
++`xxd -r - <file>` revert form, so the scripts fail with:
++
++  truncate: command not found
++  FAIL: to create corrupted image
++
++Every xxd/truncate use here reduces to "size the image to 32 MiB" and
++"write one constant byte at a computed offset", both of which `dd`
++(with printf for the byte value) does portably with tools already
++present in a base rootfs.
++
++Upstream-Status: Submitted [https://github.com/exfatprogs/exfatprogs]
++
++Signed-off-by: Khem Raj <[email protected]>
++---
++ tests/upcase_table/0001-TableChecksum-and-upcase-table.sh | 6 +++---
++ tests/upcase_table/0002-FirstCluster.sh                   | 4 ++--
++ tests/upcase_table/0003-DataLength.sh                     | 6 +++---
++ tests/upcase_table/0004-EntryType.sh                      | 4 ++--
++ 4 files changed, 10 insertions(+), 10 deletions(-)
++
++diff --git a/tests/upcase_table/0001-TableChecksum-and-upcase-table.sh b/tests/upcase_table/0001-TableChecksum-and-upcase-table.sh
++index 57390e1..507d0c2 100755
++--- a/tests/upcase_table/0001-TableChecksum-and-upcase-table.sh
+++++ b/tests/upcase_table/0001-TableChecksum-and-upcase-table.sh
++@@ -3,7 +3,7 @@
++ 
++ img=${1:-"exfat.img"}
++ 
++-truncate -s 32M $img
+++dd if=/dev/zero of=$img bs=1048576 count=32 2>/dev/null
++ mkfs.exfat $img >> /dev/null
++ dump_info=$(dump.exfat $img)
++ clu_heap_off=$(echo "${dump_info}" | grep "Cluster Heap Offset (sector offset):" | cut -d ':' -f 2)
++@@ -14,8 +14,8 @@ upcase_entry_off=$(echo "${dump_info}" | grep "Upcase table entry position:" | c
++ 
++ # Make TableChecksum field corrupted
++ checksum_off=$((${upcase_entry_off}+4))
++-echo "$(printf "%x" $checksum_off):0xff" | xxd -r - $img
+++printf '\377' | dd of=$img bs=1 seek=$checksum_off conv=notrunc 2>/dev/null
++ 
++ # Make upcase table corrupted
++ upcase_off=$(((${upcase_clu} - 2) * ${clu_size} + ${clu_heap_off} * ${sector_size}))
++-echo "$(printf "%x" $upcase_off):0x7F" | xxd -r - $img
+++printf '\177' | dd of=$img bs=1 seek=$upcase_off conv=notrunc 2>/dev/null
++diff --git a/tests/upcase_table/0002-FirstCluster.sh b/tests/upcase_table/0002-FirstCluster.sh
++index 9dfb1dc..ae84555 100755
++--- a/tests/upcase_table/0002-FirstCluster.sh
+++++ b/tests/upcase_table/0002-FirstCluster.sh
++@@ -3,11 +3,11 @@
++ 
++ img=${1:-"exfat.img"}
++ 
++-truncate -s 32M $img
+++dd if=/dev/zero of=$img bs=1048576 count=32 2>/dev/null
++ mkfs.exfat $img >> /dev/null
++ dump_info=$(dump.exfat $img)
++ upcase_entry_off=$(echo "${dump_info}" | grep "Upcase table entry position:" | cut -d ':' -f 2)
++ 
++ # Make FirstCluster field corrupted
++ start_clu_off=$((${upcase_entry_off}+20))
++-echo "$(printf "%x" $start_clu_off):0x00" | xxd -r - $img
+++printf '\000' | dd of=$img bs=1 seek=$start_clu_off conv=notrunc 2>/dev/null
++diff --git a/tests/upcase_table/0003-DataLength.sh b/tests/upcase_table/0003-DataLength.sh
++index 68742b2..661d218 100755
++--- a/tests/upcase_table/0003-DataLength.sh
+++++ b/tests/upcase_table/0003-DataLength.sh
++@@ -3,7 +3,7 @@
++ 
++ img=${1:-"exfat.img"}
++ 
++-truncate -s 32M $img
+++dd if=/dev/zero of=$img bs=1048576 count=32 2>/dev/null
++ mkfs.exfat $img >> /dev/null
++ 
++ dump_info=$(dump.exfat $img)
++@@ -11,5 +11,5 @@ upcase_entry_off=$(echo "${dump_info}" | grep "Upcase table entry position:" | c
++ size_off=$((${upcase_entry_off}+24))
++ 
++ # Make DataLength field corrupted
++-echo "$(printf "%x" $size_off):0x00" | xxd -r - $img
++-echo "$(printf "%x" $(($size_off + 1))):0x00" | xxd -r - $img
+++printf '\000' | dd of=$img bs=1 seek=$size_off conv=notrunc 2>/dev/null
+++printf '\000' | dd of=$img bs=1 seek=$(($size_off + 1)) conv=notrunc 2>/dev/null
++diff --git a/tests/upcase_table/0004-EntryType.sh b/tests/upcase_table/0004-EntryType.sh
++index b34661f..74d40a7 100755
++--- a/tests/upcase_table/0004-EntryType.sh
+++++ b/tests/upcase_table/0004-EntryType.sh
++@@ -3,11 +3,11 @@
++ 
++ img=${1:-"exfat.img"}
++ 
++-truncate -s 32M $img
+++dd if=/dev/zero of=$img bs=1048576 count=32 2>/dev/null
++ mkfs.exfat $img >> /dev/null
++ 
++ dump_info=$(dump.exfat $img)
++ upcase_entry_off=$(echo "${dump_info}" | grep "Upcase table entry position:" | cut -d ':' -f 2)
++ 
++ # Make EntryType field corrupted
++-echo "$(printf "%x" $upcase_entry_off):0x7F" | xxd -r - $img
+++printf '\177' | dd of=$img bs=1 seek=$upcase_entry_off conv=notrunc 2>/dev/null
+diff --git a/tests/upcase_table/0001-TableChecksum-and-upcase-table.sh b/tests/upcase_table/0001-TableChecksum-and-upcase-table.sh
+index 57390e1..507d0c2 100755
+--- a/tests/upcase_table/0001-TableChecksum-and-upcase-table.sh
++++ b/tests/upcase_table/0001-TableChecksum-and-upcase-table.sh
+@@ -3,7 +3,7 @@
+ 
+ img=${1:-"exfat.img"}
+ 
+-truncate -s 32M $img
++dd if=/dev/zero of=$img bs=1048576 count=32 2>/dev/null
+ mkfs.exfat $img >> /dev/null
+ dump_info=$(dump.exfat $img)
+ clu_heap_off=$(echo "${dump_info}" | grep "Cluster Heap Offset (sector offset):" | cut -d ':' -f 2)
+@@ -14,8 +14,8 @@ upcase_entry_off=$(echo "${dump_info}" | grep "Upcase table entry position:" | c
+ 
+ # Make TableChecksum field corrupted
+ checksum_off=$((${upcase_entry_off}+4))
+-echo "$(printf "%x" $checksum_off):0xff" | xxd -r - $img
++printf '\377' | dd of=$img bs=1 seek=$checksum_off conv=notrunc 2>/dev/null
+ 
+ # Make upcase table corrupted
+ upcase_off=$(((${upcase_clu} - 2) * ${clu_size} + ${clu_heap_off} * ${sector_size}))
+-echo "$(printf "%x" $upcase_off):0x7F" | xxd -r - $img
++printf '\177' | dd of=$img bs=1 seek=$upcase_off conv=notrunc 2>/dev/null
+diff --git a/tests/upcase_table/0002-FirstCluster.sh b/tests/upcase_table/0002-FirstCluster.sh
+index 9dfb1dc..ae84555 100755
+--- a/tests/upcase_table/0002-FirstCluster.sh
++++ b/tests/upcase_table/0002-FirstCluster.sh
+@@ -3,11 +3,11 @@
+ 
+ img=${1:-"exfat.img"}
+ 
+-truncate -s 32M $img
++dd if=/dev/zero of=$img bs=1048576 count=32 2>/dev/null
+ mkfs.exfat $img >> /dev/null
+ dump_info=$(dump.exfat $img)
+ upcase_entry_off=$(echo "${dump_info}" | grep "Upcase table entry position:" | cut -d ':' -f 2)
+ 
+ # Make FirstCluster field corrupted
+ start_clu_off=$((${upcase_entry_off}+20))
+-echo "$(printf "%x" $start_clu_off):0x00" | xxd -r - $img
++printf '\000' | dd of=$img bs=1 seek=$start_clu_off conv=notrunc 2>/dev/null
+diff --git a/tests/upcase_table/0003-DataLength.sh b/tests/upcase_table/0003-DataLength.sh
+index 68742b2..661d218 100755
+--- a/tests/upcase_table/0003-DataLength.sh
++++ b/tests/upcase_table/0003-DataLength.sh
+@@ -3,7 +3,7 @@
+ 
+ img=${1:-"exfat.img"}
+ 
+-truncate -s 32M $img
++dd if=/dev/zero of=$img bs=1048576 count=32 2>/dev/null
+ mkfs.exfat $img >> /dev/null
+ 
+ dump_info=$(dump.exfat $img)
+@@ -11,5 +11,5 @@ upcase_entry_off=$(echo "${dump_info}" | grep "Upcase table entry position:" | c
+ size_off=$((${upcase_entry_off}+24))
+ 
+ # Make DataLength field corrupted
+-echo "$(printf "%x" $size_off):0x00" | xxd -r - $img
+-echo "$(printf "%x" $(($size_off + 1))):0x00" | xxd -r - $img
++printf '\000' | dd of=$img bs=1 seek=$size_off conv=notrunc 2>/dev/null
++printf '\000' | dd of=$img bs=1 seek=$(($size_off + 1)) conv=notrunc 2>/dev/null
+diff --git a/tests/upcase_table/0004-EntryType.sh b/tests/upcase_table/0004-EntryType.sh
+index b34661f..e7098b4 100755
+--- a/tests/upcase_table/0004-EntryType.sh
++++ b/tests/upcase_table/0004-EntryType.sh
+@@ -3,11 +3,11 @@
+ 
+ img=${1:-"exfat.img"}
+ 
+-truncate -s 32M $img
++dd if=/dev/zero of=$img bs=1048576 count=32 2>/dev/null
+ mkfs.exfat $img >> /dev/null
+ 
+ dump_info=$(dump.exfat $img)
+ upcase_entry_off=$(echo "${dump_info}" | grep "Upcase table entry position:" | cut -d ':' -f 2)
+ 
+ # Make EntryType field corrupted
+-echo "$(printf "%x" $upcase_entry_off):0x7F" | xxd -r - $img
++printf '\177' | dd of=$img bs=1 seek=$((upcase_entry_off)) conv=notrunc 2>/dev/null
meta-filesystems/recipes-utils/exfatprogs/exfatprogs_1.4.2.bb renamed from meta-filesystems/recipes-utils/exfatprogs/exfatprogs_1.4.1.bb +2 -1
similarity index 88%
rename from meta-filesystems/recipes-utils/exfatprogs/exfatprogs_1.4.1.bb
rename to meta-filesystems/recipes-utils/exfatprogs/exfatprogs_1.4.2.bb
index 89603a8c5b..47c06e683f 100644
@@ -12,8 +12,9 @@ LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
 SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz \
+           file://0001-tests-upcase_table-use-dd-printf-instead-of-truncate.patch \
            file://run-ptest"
-SRC_URI[sha256sum] = "85c133e8802cbc1191bff2477a67b376192dfb9f94bb254c05dbae79fd958f2e"
+SRC_URI[sha256sum] = "47c7c8ddeccbf50d39b903353f2cb3df79134367a4fd764fe2ce3755ff5877bf"
 
 UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
 UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)"