[Bug 2143933] Re: cryptsetup luks2-reencryption-mangle-test fails: dd returns with SIGPIPE

Launchpad Bug Tracker 2143933 at bugs.launchpad.net
Thu Mar 12 17:07:37 UTC 2026


This bug was fixed in the package cryptsetup - 2:2.8.4-1ubuntu4

---------------
cryptsetup (2:2.8.4-1ubuntu4) resolute; urgency=medium

  * Cherry-pick fixes from upstream:
    - tests: Fix tests to not use aes-generic kernel cipher name
    - Add specific error for failed posix_fallocate call.
  * test: use gnudd as workaround in luks2-reencryption-mangle-test
    (LP: #2143933)

cryptsetup (2:2.8.4-1ubuntu3) resolute; urgency=medium

  * askpass: Fix FTBFS with glibc 2.43. (Closes: #1128538, LP: #2142888)

cryptsetup (2:2.8.4-1ubuntu2) resolute; urgency=medium

  * cryptsetup: recommend dracut over cryptsetup-initramfs (LP:
#2142775)

 -- Benjamin Drung <bdrung at ubuntu.com>  Wed, 11 Mar 2026 18:58:47 +0100

** Changed in: cryptsetup (Ubuntu)
       Status: Fix Committed => Fix Released

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

Title:
  cryptsetup luks2-reencryption-mangle-test fails: dd returns with
  SIGPIPE

Status in cryptsetup package in Ubuntu:
  Fix Released
Status in rust-coreutils package in Ubuntu:
  New

Bug description:
  cryptsetup 2:2.8.4-1ubuntu3 fails to build from source on arm64 and
  armhf because luks2-reencryption-mangle-test fails:

  ```
  [1] Reencryption with old flag is rejected
  [2] Old reencryption in-progress (journal)
  [3] Old reencryption in-progress (checksum)
  FAILED backtrace:
  140 img_update_json ./luks2-reencryption-mangle-test
  300 main ./luks2-reencryption-mangle-test
  FAIL: luks2-reencryption-mangle-test
  ```

  The failing code:

  ```
  img_update_json() {
   [...]
   local SUM1_HEX=$(_dd if=$_hdr count=$JSON_MSIZE | sha256sum | cut -d ' ' -f 1)
   echo $SUM1_HEX | xxd -r -p | _dd of=$_hdr seek=$LUKS2_BIN1_OFFSET count=64 || fail

   local SUM2_HEX=$(_dd if=$_hdr skip=$JSON_MSIZE count=$JSON_MSIZE | sha256sum | cut -d ' ' -f 1)
   echo $SUM2_HEX | xxd -r -p | _dd of=$_hdr seek=$LUKS2_BIN2_OFFSET count=64 || fail
  }
  ```

  _dd just calls dd with additional parameters. Enhancing the fail
  functions show that dd exits with code 141 (SIGPIPE).

  rust-coreutils 0.6.0-0ubuntu1 is affected. switching to gnudd solved
  this failure.

  I could reproduce this behavior on a Raspberry Pi 5 running resolute
  with linux 7.0.0-1003.3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/2143933/+subscriptions




More information about the foundations-bugs mailing list