]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
coreutils: Backport fix for lseek_copy loop
authorPaul Barker <paul@pbarker.dev>
Wed, 21 Jan 2026 10:41:11 +0000 (10:41 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 22 Jan 2026 14:19:46 +0000 (14:19 +0000)
commit20f2ea3756aa5f0460cb114d0473bbc656e8b97d
tree41d6189f44e9811745b0488153427a3703245e14
parent9382dee2a59a359f38e03179d01fce47c2d86372
coreutils: Backport fix for lseek_copy loop

We've seen intermittent failures on the autobuilder related to creating
hddimg images after updating to coreutils 9.9. The error message seen
is:

  install: cannot lseek '.../core-image-minimal/1.0/sources/core-image-minimal-1.0/hddimg/rootfs.img': Invalid argument

This corresponds to an invalid argument passed to lseek() in the
create_hole() function in src/copy-file-data.c in coreutils. This in
turn is being given bad arguments due to incorrect handling of loop
variables in lseek_copy().

The upstream bug report [1] refers to an infinite loop, which isn't
quite what we're seeing, but the cause is likely the same. So, we're
applying the upstream fixes.

[1]: https://github.com/coreutils/coreutils/issues/159

[YOCTO #16120]

Signed-off-by: Paul Barker <paul@pbarker.dev>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/coreutils/coreutils/0001-fix-lseek-copy-loop.patch [new file with mode: 0644]
meta/recipes-core/coreutils/coreutils/0002-fix-lseek-copy-loop.patch [new file with mode: 0644]
meta/recipes-core/coreutils/coreutils_9.9.bb