DA bug report logs -
#344313
cryptsetup: unable to create map with libdevmapper1.02
Reported by: Mike Hokenson <logan@dct.com>
Date: Wed, 21 Dec 2005 18:03:02 UTC
Severity: grave
Tags: patch
Found in version cryptsetup/20050111-4+b1
Fixed in version cryptsetup/20050111-5
Done: Jonas Meurer <mejo@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to
debian-bugs-dist@lists.debian.org, Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>:
Bug#344313; Package
cryptsetup.
Full text and
rfc822 format available.
Acknowledgement sent to
Mike Hokenson <logan@dct.com>:
New Bug report received and forwarded. Copy sent to
Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>.
Full text and
rfc822 format available.
Message #5 received at submit@bugs.debian.org (full text, mbox):
Package: cryptsetup
Version: 20050111-4+b1
Severity: grave
Justification: renders package unusable
After last nights upgrade to cryptsetup 20050111-4+b1, I'm unable to map new or existing devices. Only by relinking to libdevmapper1.01 does it work.
gozer:/tmp# dd if=/dev/zero of=test bs=1M count=4
4+0 records in
4+0 records out
4194304 bytes (4.2 MB) copied, 0.047132 seconds, 89.0 MB/s
gozer:/tmp# losetup /dev/loop0 test
gozer:/tmp# cryptsetup create test /dev/loop0
Command failed: Invalid argument
gozer:/tmp# ./cryptsetup-1.01 create test /dev/loop0
Enter passphrase:
A strace between the two look similar, but when cryptsetup should open the device and prompt for the passphrase, it errors out.
# 1.02
8658 open("/proc/misc", O_RDONLY|O_LARGEFILE) = 3
8658 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
8658 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
8658 read(3, " 63 device-mapper\n 1 psaux\n175 "..., 1024) = 48
8658 close(3) = 0
8658 munmap(0x40017000, 4096) = 0
8658 stat64("/dev/mapper/control", {st_mode=S_IFCHR|0600, st_rdev=makedev(10, 63), ...}) = 0
8658 open("/dev/mapper/control", O_RDWR|O_LARGEFILE) = 3
8658 open("/proc/devices", O_RDONLY|O_LARGEFILE) = 4
8658 fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
8658 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
8658 read(4, "Character devices:\n 1 mem\n 2 p"..., 1024) = 424
8658 read(4, "", 1024) = 0
8658 close(4) = 0
8658 munmap(0x40017000, 4096) = 0
8658 ioctl(3, DM_VERSION, 0x8096548) = 0
8658 ioctl(3, DM_TABLE_STATUS, 0x8096548) = -1 ENXIO (No such device or address)
8658 close(3) = 0
8658 write(2, "Command failed", 14) = 14
8658 write(2, ": Invalid argument\n", 19) = 19
8658 exit_group(1) = ?
# 1.01
8870 stat64("/dev/mapper/control", {st_mode=S_IFCHR|0600, st_rdev=makedev(10, 63), ...}) = 0
8870 open("/dev/mapper/control", O_RDWR|O_LARGEFILE) = 3
8870 ioctl(3, DM_VERSION, 0x804e328) = 0
8870 ioctl(3, DM_TABLE_STATUS, 0x804e2e8) = -1 ENXIO (No such device or address)
8870 open("/dev/loop0", O_RDONLY|O_LARGEFILE) = 4
8870 ioctl(4, BLKGETSIZE64, 0xbfa35f10) = 0
8870 close(4) = 0
8870 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
8870 open("/dev/tty", O_RDWR|O_CREAT|O_TRUNC, 0666) = 4
I found a similar report <http://article.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/1312> on the dm-crypt mailing list, but noone responded and he said crtypsetup mysteriously started working at a later date.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages cryptsetup depends on:
ii dmsetup 2:1.02.02-1 The Linux Kernel Device Mapper use
ii libc6 2.3.5-9 GNU C Library: Shared libraries an
ii libdevmapper1.02 2:1.02.02-1 The Linux Kernel Device Mapper use
ii libgcrypt11 1.2.2-1 LGPL Crypto library - runtime libr
ii libgpg-error0 1.1-4 library for common error values an
ii libpopt0 1.7-5 lib for parsing cmdline parameters
cryptsetup recommends no packages.
-- no debconf information
Information forwarded to
debian-bugs-dist@lists.debian.org, Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>:
Bug#344313; Package
cryptsetup.
Full text and
rfc822 format available.
Acknowledgement sent to
Bastian Blank <waldi@debian.org>:
Extra info received and forwarded to list. Copy sent to
Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>.
Full text and
rfc822 format available.
Message #10 received at 344313@bugs.debian.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tags 344313 patch
thanks
The attached patch fixes the problem.
Bastian
--
The sight of death frightens them [Earthers].
-- Kras the Klingon, "Friday's Child", stardate 3497.2
[diff (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]
Tags added: patch
Request was from
Bastian Blank <waldi@debian.org>
to
control@bugs.debian.org.
Full text and
rfc822 format available.
Information forwarded to
debian-bugs-dist@lists.debian.org, Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>:
Bug#344313; Package
cryptsetup.
Full text and
rfc822 format available.
Acknowledgement sent to
Martin Michlmayr <tbm@cyrius.com>:
Extra info received and forwarded to list. Copy sent to
Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>.
Full text and
rfc822 format available.
Message #17 received at 344313@bugs.debian.org (full text, mbox):
I haven't looked into this much but it seems I'm experiencing the same
bug. I get:
Starting crypto disks: root(running) home(starting)Command failed: Invalid argument
blain-backup(starting)Command failed: Invalid argument
.
After downgrading to cryptsetup_20050111-3_i386.deb and
libdevmapper1.01_1.01.00-4_i386.deb it works again.
If you have packages with this patch, I'm happy to test them.
--
Martin Michlmayr
http://www.cyrius.com/
Reply sent to
Jonas Meurer <mejo@debian.org>:
You have taken responsibility.
Full text and
rfc822 format available.
Notification sent to
Mike Hokenson <logan@dct.com>:
Bug acknowledged by developer.
Full text and
rfc822 format available.
Message #22 received at 344313-close@bugs.debian.org (full text, mbox):
Source: cryptsetup
Source-Version: 20050111-5
We believe that the bug you reported is fixed in the latest version of
cryptsetup, which is due to be installed in the Debian FTP archive:
cryptsetup_20050111-5.diff.gz
to pool/main/c/cryptsetup/cryptsetup_20050111-5.diff.gz
cryptsetup_20050111-5.dsc
to pool/main/c/cryptsetup/cryptsetup_20050111-5.dsc
cryptsetup_20050111-5_i386.deb
to pool/main/c/cryptsetup/cryptsetup_20050111-5_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 344313@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jonas Meurer <mejo@debian.org> (supplier of updated cryptsetup package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 27 Dec 2005 17:55:16 +0100
Source: cryptsetup
Binary: cryptsetup
Architecture: source i386
Version: 20050111-5
Distribution: unstable
Urgency: low
Maintainer: Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>
Changed-By: Jonas Meurer <mejo@debian.org>
Description:
cryptsetup - configures encrypted block devices
Closes: 341606 344313
Changes:
cryptsetup (20050111-5) unstable; urgency=low
.
* Redirect output of update-rc.d to /dev/null
* Create lintian override, no need for libcryptsetup{0,-dev} packages
* fix a minor typo in the cryptsetup manpage
* rebuild against new libdevmapper packages (closes: #341606)
* patch lib/libdevmapper.c, thanks to Bastian Blank for the patch.
(closes: #344313)
* add dpatch build-dependency
Files:
bfff4d06ff387ea9196682a49fbe86c8 831 admin optional cryptsetup_20050111-5.dsc
d9ea867cb9f8e4a3c50df04c162f1e32 22542 admin optional cryptsetup_20050111-5.diff.gz
3537e4978393c5924086e652531605b6 198740 admin optional cryptsetup_20050111-5_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDsXn6d6lUs+JfIQIRAnP+AJ0cT/GyfAW8G2bhxnJ1v+h3Ze6qFQCdExMx
yhC2XsSpLmFESqtdOmFCGts=
=cyQc
-----END PGP SIGNATURE-----
Bug archived.
Request was from
Debbugs Internal Request <owner@bugs.debian.org>
to
internal_control@bugs.debian.org.
(Sun, 24 Jun 2007 15:43:13 GMT)
Full text and
rfc822 format available.
Send a report that this bug log contains spam.
Don Armstrong <don@donarmstrong.com>.
Last modified:
Thu Sep 2 19:32:16 2010;
Machine Name:
crito.ucr.edu
DA bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.