[Bug 2132150] [NEW] dd: O_DIRECT partial block writes fail

Max Gilmour 2132150 at bugs.launchpad.net
Fri Nov 21 19:22:41 UTC 2025


Public bug reported:

In the rust-coreutils versions currently in the archive, dd fails to
write partial blocks with the O_DIRECT flag. This is currently causing
autopkgtest failures for packages such as cryptsetup.

This issue is known upstream[1] and has been fixed in rust-coreutils
0.4.0[2].

Upgrading rust-coreutils to 0.4.0 will fix this bug.

================
Bug reproduction
================
Create a file with a size that's not a multiple of block size (3 8K blocks + 511 bytes):

root at test:~# for run in {1..25087}; do echo -n -e '\x42' >> test_direct_input.iso; done
root at test:~# dd if=/root/test_direct_input.iso of=/root/test_direct_output.img oflag=direct bs=8192 status=none
dd: IO error: Invalid input

This bug is reproducible for rust-coreutils 0.2.2 and 0.3.0.

[1]: https://github.com/uutils/coreutils/issues/9003
[2]: https://github.com/uutils/coreutils/pull/9016

** Affects: rust-coreutils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2132150

Title:
  dd: O_DIRECT partial block writes fail

Status in rust-coreutils package in Ubuntu:
  New

Bug description:
  In the rust-coreutils versions currently in the archive, dd fails to
  write partial blocks with the O_DIRECT flag. This is currently causing
  autopkgtest failures for packages such as cryptsetup.

  This issue is known upstream[1] and has been fixed in rust-coreutils
  0.4.0[2].

  Upgrading rust-coreutils to 0.4.0 will fix this bug.

  ================
  Bug reproduction
  ================
  Create a file with a size that's not a multiple of block size (3 8K blocks + 511 bytes):

  root at test:~# for run in {1..25087}; do echo -n -e '\x42' >> test_direct_input.iso; done
  root at test:~# dd if=/root/test_direct_input.iso of=/root/test_direct_output.img oflag=direct bs=8192 status=none
  dd: IO error: Invalid input

  This bug is reproducible for rust-coreutils 0.2.2 and 0.3.0.

  [1]: https://github.com/uutils/coreutils/issues/9003
  [2]: https://github.com/uutils/coreutils/pull/9016

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2132150/+subscriptions




More information about the foundations-bugs mailing list